这个是JS代码如果要整合ASP和简单呀。直接把这个JS代码用asp打印出来(图片的地方在循环出来),不要告诉你不会哦,直接复制自己去研究看看。
<script type="text/javascript"> document.write('<table align=center width=800 border=0 cellpadding=0 cellspacing=0 style=BORDER-LEFT: #cccccc 1px solid;BORDER-RIGHT: #cccccc 1px solid>'); document.write(' <tr> '); document.write(' <td width=800 height=120 align=center class=border01 bgcolor=#FFFFFF>'); document.write(' <div id=demo style=overflow:hidden;width:800;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="zuopin/cheng.jpg" target="new"><img src=zuopin/cheng.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></a></td>'); document.write(' <td><a href="zuopin/cheng1.jpg" target="new"><img src=zuopin/cheng1.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></a></td>'); document.write(' <td><a href="zuopin/chaoj.jpg" target="new"><img src=zuopin/chaoj.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></a></td>'); document.write(' <td><a href="zuopin/dong.jpg" target="new"><img src=zuopin/dong.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></a></td>'); document.write(' <td><a href="zuopin/ertong.jpg" target="new"><img src=zuopin/ertong.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></a></td>'); document.write(' <td><a href="zuopin/ou1.jpg" target="new"><img src=zuopin/ou1.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></a></td>'); document.write(' <td><a href="zuopin/ou2.jpg" target="new"><img src=zuopin/ou2.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></a></td>'); document.write(' <td><a href="zuopin/jiajia.jpg" target="new"><img src=zuopin/jiajia.jpg height=200 width=198 hspace=2 border=0 alt="小戴作品"></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>