CSS里也能写脚本?

<style type="text/css">
.showCSS
{

event
:expression(
onmouseover = function()
{
this.style.backgroundColor='#f0f0f0'
}

//QQ:272912705 光之翼 www.hi.baidu.com/jcomet
onmouseout = function()
{

this.style.backgroundColor='#ffffff'
}
)
}
</style>
<div class="showCSS">把鼠标放上去试试看!:)</div>

posted @ 2008-07-14 11:48  洗碗心得  阅读(225)  评论(0编辑  收藏  举报