<Stil>
.gundongnews{
Breite:218px;
Höhe: 150 Pixel;
Überlauf:versteckt;
}
.gundongnews ul{width:218px;line-height:30px;overflow:hidden;}
.gundongnews li{line-height:30px; Höhe:30px}
</style>
<script type="text/javascript">
Funktion gungun(demo,demo1,demo2,fang){
this.demo = demo;
this.demo1 = demo1;
this.demo2 = demo2;
this.fang = fang;
var Geschwindigkeit=33
demo2.innerHTML=demo1.innerHTML
Funktion Marquee(){
if(fang=="left"){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth;
anders{
demo.scrollLeft++
}
}
if(fang=="up"){
if(demo2.offsetHeight-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
anders{
demo.scrollTop++
}
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
//rongcuo
if(arguments.length!==4){
Alert("Das ist der Grund!")
}
}
Funktion getObject(objectId) {
if(document.getElementById && document.getElementById(objectId)) {
// W3C DOM
return document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
// MSIE 4 DOM
return document.all(objectId);
} else if (document.layers && document.layers[objectId]) {
// NN 4 DOM.. Hinweis: Hiermit werden keine verschachtelten Ebenen gefunden
return document.layers[objectId];
} anders {
return false;
}
}
new gungun(getObject("study_list"),getObject("study_list1"),getObject("study_list2"),"up")
</script>
<div id="study_list" class="gundongnews">
<div id="study_list1">
<ul>
<li>164101***400</li>
<li>334205***400</li>
<li>164101***400</li>
<li>334205***400</li>
<li>164101***400</li>
<li>334205***400</li>
<li>164101***400</li>
</ul>
</div>
<div id="study_list2"></div>
</div>
<script language="JavaScript" type="text/javascript">new gungun(getObject("study_list"),getObject("study_list1"),getObject("study_list2"),"up")</script>