<estilo>
.gundongnews{
ancho: 218 px;
altura: 150 px;
desbordamiento: oculto;
}
.gundongnews ul{ancho:218px;alto de línea:30px;desbordamiento:hidden;}
.gundongnews li{line-height:30px; altura: 30px}
</estilo>
<tipo de script="texto/javascript">
función gungun(demo,demo1,demo2,fang){
this.demo = demostración;
this.demo1 = demostración1;
this.demo2 = demostración2;
this.colmillo = colmillo;
velocidad var=33
demo2.innerHTML=demo1.innerHTML
función marquesina(){
si(colmillo=="izquierda"){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth;
demás{
demo.scrollLeft++
}
}
si(colmillo=="arriba"){
if(demo2.offsetHeight-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
demás{
demo.scrollTop++
}
}
}
var MyMar=setInterval(Marquesina,velocidad)
demo.onmouseover=función() {clearInterval(MyMar)}
demo.onmouseout=función() {MyMar=setInterval(Marquesina,velocidad)}
//rongcuo
if(argumentos.longitud!==4){
alerta("错误的参数!")
}
}
función obtenerObjeto(objetoId) {
if(document.getElementById && document.getElementById(objectId)) {
// W3C DOM
devolver document.getElementById(objectId);
} else if (document.all && document.all(objectId)) {
// MSIE 4DOM
devolver documento.all(objectId);
} else if (document.capas && documento.capas[objectId]) {
// NN 4 DOM.. nota: esto no encontrará capas anidadas
devolver documento.capas[objectId];
} demás {
devolver falso;
}
}
new gungun(getObject("study_list"),getObject("study_list1"),getObject("study_list2"),"arriba")
</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"),"arriba")</script>