重组人干扰素a2b胶:图片来回滚动代码

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 06:28:13

<script type="text/javascript">
//more javascript from http://www.smallrain.net
document.write('<table align=center width=774 border=0 cellpadding=0 cellspacing=0 style=BORDER-LEFT: #cccccc 1px solid;BORDER-RIGHT: #cccccc 1px solid>');
document.write(' <tr> ');
document.write(' <td width=774 height=120 align=center class=border01 bgcolor=#FFFFFF>');
document.write(' <div id=demo style=overflow:hidden;width:750;align=center>');
document.write(' <table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 >');
document.write(' <tr>');
document.write(' <td valign=top bgcolor=ffffff id=marquePic1> ');
document.write(' <table width=90% border=0 cellspacing=0 cellpadding=0>');
document.write(' <tr align=center> ');
document.write(' <td><a href="http://www.baidu.com" target="new"><img src=/photo/1.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="http://www.chinaz.com" target="new"><img src=/photo/2.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="http://www.sohu.com" target="new"><img src=/photo/4.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="http://www.google.com" target="new"><img src=/photo/5.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="#" target="new"><img src=/photo/6.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' </tr>');
document.write(' </table>');
document.write(' </td>');
document.write(' <td id=marquePic2 valign=top></td>');
document.write(' </tr>');
document.write(' </table>');
document.write(' </div>');
document.write(' </td>');
document.write(' </tr>');
document.write(' </table>');
var speed=30
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo.scrollLeft>=marquePic1.scrollWidth){
demo.scrollLeft=0
}else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}

</script>