求这个页面上的滚动对联代码
求这个页面上的滚动对联代码
看了
<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>
我觉得是这段,可是我加上去不会滚动