简单的js鼠标事件

<html>
<head>
<script type="text/javascript">
function mouseOver()
{
document.b1.src ="/i/eg_mouse.jpg"
}
function mouseOut()
{
document.b1.src ="/i/eg_mouse2.jpg"
}
</script>
</head>

<body>
<a href="/index.html" target="_blank">
<img border="0" alt="Visit W3School!" src="/i/eg_mouse2.jpg" name="b1"  onmouseover="mouseOver()" onmouseout="mouseOut()" /></a>
</body>
</html>

 

 

 ------------网页居中css中不可或缺的三条语句

 #templatemo_container {

background: url(images/templaetmo_container_bg.jpg) no-repeat top;

width: 1024px;

margin: auto;

}

posted @ 2010-06-28 15:14  Jamy  阅读(488)  评论(0编辑  收藏  举报