109、跟随鼠标的小图形

109、跟随鼠标的小图形

<STYLE type=TEXT/CSS>

.tm {

       FILTER: Alpha(Opacity=50)

}

</STYLE>

 <DIV id=Layer1  style="HEIGHT: 31px; LEFT: 409px; POSITION: absolute; TOP: 131px; WIDTH: 14px"><IMG  class=tm src="sto/girl01.gif"></DIV>

<SCRIPT>

function move_layer()

{

Layer1.style.left=event.clientX+document.body.scrollLeft+10;

Layer1.style.top=event.clientY+document.body.scrollTop+10;

top.status="鼠标X="+event.clientX + " sX=" + document.body.scrollLeft + " 鼠标Y=" + event.clientY+ "  sY=" + document.body.scrollTop;

}

document.onmousemove =move_layer;

</SCRIPT>

 

Write a comment

Comments: 0