| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 814 人关注过本帖
标题:连续滚动图片问题求助
取消只看楼主 加入收藏
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
 问题点数:0 回复次数:1 
连续滚动图片问题求助

<%@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>
这是一个友情链接的连续滚动图片程序,鼠标放上,滚动会停止
我原来用这个程序都正常
现在只是换了换超连接和图片,怎么就不滚动了

搜索更多相关主题的帖子: dtd loose target 滚动 
2006-01-13 15:45
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
得分:0 


<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>
这是一个友情链接的连续滚动图片程序,鼠标放上,滚动会停止
我原来用这个程序都正常
现在只是换了换超连接和图片,怎么就不滚动了


2006-01-13 15:46
快速回复:连续滚动图片问题求助
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.055776 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved