设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 81|回复: 1
打印 上一主题 下一主题

连续滚动图片问题求助

[复制链接]
跳转到指定楼层
1#
发表于 2010-1-14 03:47:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<table width="780" height="50" border="1" bordercolor="#000000">
<tr>
<script type="text/javascript">
document.write('<table align=center width=775 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=31 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=100% border=0 cellspacing=0 cellpadding=0>');
document.write(' <tr align=center> ');
document.write(' <td><a href="http://www.cast.org.cn/" target="new"><img src="logo/castlogo.gif" width="161" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.cpst.net.cn/" target="new"><img src="logo/cpstlogo.gif" width="179" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.uisp.org.cn/uisp/index.jsp" target="new"><img src="logo/kplm.gif" width="160" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.bjkp.gov.cn/bjkpzc/index.shtml" target="new"><img src="logo/bjkpzc.jpg" width="174" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.losn.com.cn/" target="new"><img src="logo/kjzg.jpg" width="99" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.sedu.org.cn/" target="new"><img src="logo/kxjy.jpg" width="154" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.bast.net.cn/" target="new"><img src="logo/sdkjw.jpg" width="128" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.stcity.net.cn/" target="new"><img src="logo/zgkp.jpg" width="178" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.kepu.com.cn/gb/index.html" target="new"><img src="logo/zgkpbl.jpg" width="159" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.91kp.cn/site/Default.aspx" target="new"><img src="logo/zgkppd.jpg" width="174" height="50" border=0></a></td>');
document.write(' <td><a href="http://www.cstm.org.cn/" target="new"><img src="logo/zgkxjsg.jpg" width="268" height="50" 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=15
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></tr></table>
</body>
</html>
这是一个友情链接的连续滚动图片程序,鼠标放上,滚动会停止
我原来用这个程序都正常
现在只是换了换超连接和图片,怎么就不滚动了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-19 12:25 , Processed in 0.106652 second(s), 9 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

快速回复 返回顶部 返回列表