<%@ page語言=“ java” import =“ java.util。 ” http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns =“ http://www.w.w3.org/1999999/xhtml”> charset = gb2312“/> <title> </title> </title> </head> <body> <style type =“ text/css”> <! - #demo {背景:#fff; vellflow; hidden; hidden; hidden; border:1px dashed#ccc; width:1000px;} 800%;}#demo1 {float:left;}#demo2 {float:left;} - > </style> <div id =“ demo”> <div id =“ indemo”> <div id =“ demo1”> <a href =“ src =“圖像/小美景2.jpg”/> </a> <a href =“#”> <img src =“ images/圖3.jpg”/> </a> <a href =“ href =“>”> <img src =“ images/images/rigage/jpg” images/jpg“/> /></a><a href="#"><img src="images/小美女2.jpg" /></a></div><div id="demo2"></div></div></div><script>var speed=50;var tab=document.getElementById("demo");var tab1=document.getElementById("demo1");var tab2 = document.getElementById(“ demo2”); tab2.innerhtml = tab1.innerhtml; function marquee(){if(tab2.offsetwidth-tab.scrollleft <= 0) mymar = setInterval(marque,speed); tab.onmouseover = function(){clear Interval(mymar)}; tab.onmouseout = function(){mymar = setInterval(setInterval(marquee,speed)}; </script> </script> </script> </script> </script> </script> </script> </body> </html>