| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1388 人关注过本帖, 1 人收藏
标题:滚动对联代码
只看楼主 加入收藏
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏(1)
 问题点数:0 回复次数:10 
滚动对联代码
http://promote.paipai.com/act/200601/100w/index.shtml?mm=NDIxNzgxMDQ0JTdDYWlmZQ==

求这个页面上的滚动对联代码
搜索更多相关主题的帖子: 对联 代码 滚动 
2006-02-05 17:28
chain710
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2006-2-5
收藏
得分:0 
看看源代码~~~
2006-02-05 17:35
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
得分:0 

看了
<span id="showCoupletLeft" style="LEFT: 5px; POSITION: absolute; TOP: 9px">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">
<param name="movie" value="http://pics.paipai.com/newsys/promote/act/200601/100w/left.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="menu" value="0" />
<embed src="http://pics.paipai.com/newsys/promote/act/200601/100w/left.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="300"></embed>
</object><br/>
<a href="#" onclick="SeePrize(this)"><img src="http://pics.paipai.com/newsys/promote/act/200601/100w/100w_38_01.gif" width="100" height="120" border="0"/></a><br/><br/><br/>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="80" height="80">
<param name="movie" value="http://pics.paipai.com/newsys/promote/act/200601/100w/bainian.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="menu" value="0" />
<embed src="http://pics.paipai.com/newsys/promote/act/200601/100w/bainian.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="80" height="80"></embed>
</object>
</span>
<span id="showCoupletRight" style="RIGHT: 5px; POSITION: absolute; TOP: 9px">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">
<param name="movie" value="http://pics.paipai.com/newsys/promote/act/200601/100w/right.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="menu" value="0" />
<embed src="http://pics.paipai.com/newsys/promote/act/200601/100w/right.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="300"></embed>
</object><br/>
<a href="#paipai"><img src="http://pics.paipai.com/newsys/promote/act/200601/100w/100w_38_02.gif" width="100" height="120" border="0"/></a></span>
<script type="text/javascript">
function closead()
{
document.getElementById("showCoupletLeft").style.visibility='hidden';
document.getElementById("showCoupletRight").style.visibility='hidden';
}
function MoveCouplet(LName,RName) {
if(screen.width<1000||!document.all){
document.getElementById(LName).style.display = 'none';
document.getElementById(RName).style.display = 'none';
} else{
document.getElementById(LName).style.posTop = -200;
document.getElementById(LName).style.position = 'absolute';
document.getElementById(RName).style.posTop = -200;
document.getElementById(RName).style.position = 'absolute';
MoveCoupletLeft(LName);
MoveCoupletRight(RName);
}
}
function MoveCoupletLeft(LName) {
var x = 5;
var y = 10;
var diff = (document.documentElement.scrollTop + y - document.getElementById(LName).style.posTop)*0.4;
var y = document.documentElement.scrollTop + y - diff;
document.getElementById(LName).style.posTop = y;
document.getElementById(LName).style.posLeft = x;
LeftName=LName;
setTimeout("MoveCoupletLeft(LeftName);", 1);
}
function MoveCoupletRight(RName) {
var x = 5;
var y = 10;
var diff = (document.documentElement.scrollTop + y - document.getElementById(RName).style.posTop)*0.4;
var y = document.documentElement.scrollTop + y - diff;
document.getElementById(RName).style.posTop = y;
document.getElementById(RName).style.posRight = x;
RightName=RName;
setTimeout("MoveCoupletRight(RightName);", 20);
}
MoveCouplet("showCoupletLeft","showCoupletRight")
</script>
我觉得是这段,可是我加上去不会滚动


2006-02-05 17:36
chain710
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2006-2-5
收藏
得分:0 
<script type="text/javascript" src="http://www.paipai.com/js/head.js"></script>
2006-02-05 17:49
chain710
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2006-2-5
收藏
得分:0 

看看这个js,应该就是了

http://www.paipai.com/js/head.js

2006-02-05 17:49
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
得分:0 
谢谢,不过这个不是

2006-02-05 18:42
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
得分:0 
没有人知道吗,高手帮帮忙

2006-02-06 13:10
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>百万富翁中大奖</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="http://www.paipai.com/css/common/common.css" rel="stylesheet" type="text/css">
<body>
<!-- 左边部分 -->
<span id="showCoupletLeft" style="LEFT: 5px; POSITION: absolute; TOP: 9px">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">
<param name="movie" value="http://pics.paipai.com/newsys/promote/act/200601/100w/left.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="menu" value="0" />
<embed src="http://pics.paipai.com/newsys/promote/act/200601/100w/left.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="300"></embed>
</object>
<br/>
<a href="#" onclick="SeePrize(this)"><img src="http://pics.paipai.com/newsys/promote/act/200601/100w/100w_38_01.gif" width="100" height="120" border="0"/></a><br/>
<br/>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="80" height="80">
<param name="movie" value="http://pics.paipai.com/newsys/promote/act/200601/100w/bainian.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="menu" value="0" />
<embed src="http://pics.paipai.com/newsys/promote/act/200601/100w/bainian.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="80" height="80"></embed>
</object>
</span>
<!-- 右边部分 -->
<span id="showCoupletRight" style="RIGHT: 5px; POSITION: absolute; TOP: 9px">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="300">
<param name="movie" value="http://pics.paipai.com/newsys/promote/act/200601/100w/right.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="menu" value="0" />
<embed src="http://pics.paipai.com/newsys/promote/act/200601/100w/right.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="300"></embed>
</object>
<br/>
<a href="#paipai"><img src="http://pics.paipai.com/newsys/promote/act/200601/100w/100w_38_02.gif" width="100" height="120" border="0"/></a>
</span>
<script type="text/javascript">
function closead()
//关闭广告
{
document.getElementById("showCoupletLeft").style.visibility='hidden';
document.getElementById("showCoupletRight").style.visibility='hidden';
}
function MoveCouplet(LName,RName) {
//主调用函数
if(screen.width<1000||!document.all){
document.getElementById(LName).style.display = 'none';
document.getElementById(RName).style.display = 'none';
} else{
document.getElementById(LName).style.posTop = -200;
document.getElementById(LName).style.position = 'absolute';
document.getElementById(RName).style.posTop = -200;
document.getElementById(RName).style.position = 'absolute';
MoveCoupletLeft(LName);
MoveCoupletRight(RName);
}
}
function MoveCoupletLeft(LName) {
//控制左边的广告
var x = 5;
var y = 10;
var diff = (document.documentElement.scrollTop + y - document.getElementById(LName).style.posTop)*0.4;
var y = document.documentElement.scrollTop + y - diff;
document.getElementById(LName).style.posTop = y;
document.getElementById(LName).style.posLeft = x;
LeftName=LName;
setTimeout("MoveCoupletLeft(LeftName);", 1);
}
function MoveCoupletRight(RName) {
//控制右边的广告
var x = 5;
var y = 10;
var diff = (document.documentElement.scrollTop + y - document.getElementById(RName).style.posTop)*0.4;
var y = document.documentElement.scrollTop + y - diff;
document.getElementById(RName).style.posTop = y;
document.getElementById(RName).style.posRight = x;
RightName=RName;
setTimeout("MoveCoupletRight(RightName);", 20);
}
MoveCouplet("showCoupletLeft","showCoupletRight")
</script>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>
</p>
</body>
</html>

[此贴子已经被作者于2006-2-6 14:18:35编辑过]


专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2006-02-06 14:15
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
收藏
得分:0 

注意:

JS代码需要放在对联内容的后面才能实现对联滚动,什么原因偶也不知道,探索ing~~~~~~


专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2006-02-06 14:28
酷酷的鱼
Rank: 1
等 级:新手上路
威 望:1
帖 子:472
专家分:0
注 册:2005-8-9
收藏
得分:0 
谢谢老大

2006-02-06 18:06
快速回复:滚动对联代码
数据加载中...
 
   



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

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