오랫동안 그것을 찾은 후에는 마침내 적절한 것을 발견했습니다.
다음과 같이 코드 코드를 복사하십시오.
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = gb2312" /> />
<title> 사진 롤링 </title>
</head>
<body>
<스타일 유형 = "텍스트/CSS">
<!-
#demo {
배경 : #fff;
오버플로 : 숨겨진;
국경 : 1px 점선 #ccc;
너비 : 500px;
}
#demo img {
국경 : 3px 고체 #f2f2f2;
}
#indemo {
플로트 : 왼쪽;
너비 : 800%;
}
#demo1 {{
플로트 : 왼쪽;
}
#demo2 {{
플로트 : 왼쪽;
}
->
</스타일>
<div id = "데모">
<div id = "Indemo">
<div id = "demo1">
<a href = "#"> <img src = "/jscss/demoimg/wall_s1.jpg"/> </a>
<a href = "#"> <img src = "/jscss/demoimg/wall_s2.jpg"/> </a>
<a href = "#"> <img src = "/jscss/demoimg/wall_s3.jpg"/> </a>
<a href = "#"> <img src = "/jscss/demoimg/wall_s4.jpg"/> </a>
<a href = "#"> <img src = "/jscss/demoimg/wall_s5.jpg"/> </a>
<a href = "#"> <img src = "/jscss/demoimg/wall_s6.jpg"/> </a>
</div>
<div id = "demo2"> </div>
</div>
</div>
<cript>
<!-
변수 = 10;
var tab = document.getElementById ( "데모");
var tab1 = document.getElementById ( "demo1");
var tab2 = document.getElementById ( "demo2");
tab2.innerhtml = tab1.innerhtml;
함수 marquee () {
if (tab2.offsetwidth-tab.scrollleft <= 0)
Tab.scrollleft- = tab1.offsetwidth
또 다른 {
Tab.scrollleft ++;
}
}
var mymar = setInterval (marquee, speed);
tab.onmouseOver = function () {clearInterVal (mymar)};
tab.onmouseout = function () {mymar = setInterval (marquee, speed)};
->
</스크립트>
</body>
</html>