Nachdem ich es lange gefunden hatte, fand ich schließlich einen geeigneten.
Kopieren Sie den Code -Code wie folgt:
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<kopf>
<meta http-äquiv = "content-type" content = "text /html; charset = gb2312" /> />
<title> Bild Rolling </title>
</head>
<body>
<Style type = "text/css">
<!-
#Demo {
Hintergrund: #fff;
Überlauf: versteckt;
Grenze: 1PX gestrichelt #CCC;
Breite: 500px;
}
#Demo img {
Grenze: 3px fest #f2f2f2;
}
#indemo {
Float: links;
Breite: 800%;
}
#Demo1 {{{{
Float: links;
}
#Demo2 {{{
Float: links;
}
->
</style>
<div id = "Demo">
<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>
<Script>
<!-
varuled = 10;
var Tab = document.getElementById ("Demo");
var tab1 = document.getElementById ("Demo1");
var tab2 = document.getElementById ("Demo2");
tab2.innerhtml = tab1.innerhtml;
Funktion marquee () {
if (tab2.Offsetwidth-tab.scrollLeft <= 0)
tab.scrollleft- = tab1.offsetwidth
anders {
tab.scrollleft ++;
}
}
var mmar = setInterval (Festzelt, Geschwindigkeit);
tab.onmouseover = function () {clearInterval (mymar)};
tab.onmouseout = function () {mymar = setInterval (marquee, speed)};
->
</script>
</body>
</html>