日期:2014-05-18 浏览次数:20626 次
<head> <script language=JavaScript> function move( ) { document.getElementById("Layer1").style.left= Math.random()*500; document.getElementById("Layer1").style.top= Math.random()*500; setTimeout("move()",1000); } </script> </head> <body onload="move( )""> <DIV id="Layer1" style="position:absolute; left:14px; top:44px; width:150px; height:102px; z-index:1"> <A href="超连接"><IMG src="图片路径" width="150" height="100" border="0"></A> </DIV> <H2>随机漂浮的广告</H2> </BODY>