大家看看这动态栏没有反应啊!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>动态菜单栏</title>
<style>
.item{ cursor:hand;
font-family:Verdana;
font-size:20;
font-style:normal;
background-color:deeppink;
color:white;
}
.highlight{ cursor:hand;
font-family:Verdana;
font-size:20;
font-style:italic;
background-color:white;
color:blue
}
</style>
</head>
<script language="javascript">
function rollon()
{ if(window.event.srcelement.classname=="intem")
{ window.event.srcelement.classname=="highlight"; }
}
document.onmouseover=rollon;
function rolloff()
{ if( window.event.srcelement.classname=="highlight")
{window.event.srcelement.classname=="intem";}
}
document.onmouseover=rolloff;
</script>
<body>
<apan calss=item>万里长城</span>
<apan calss=item>埃菲尔铁塔</span>
<apan calss=item>巴黎圣母院</span>
<apan calss=item>上海外滩</span>
<apan calss=item>非诚勿扰专区</span>
<apan calss=item>java社区</span>
<p>请尝试将鼠标光标靠近动态菜单栏···</p>
</body>
</html>
这是全部代码,因为初学这个。请多多指教哈。谢谢!!