对联随滚动条滚动效果

//复制到BODY下面,然后更改相关链接//
<SPAN id=showCoupletLeft style="LEFT: 5px; POSITION: absolute; TOP: 518px">
<OBJECT>
<PARAM NAME="_cx" VALUE="2646">
<PARAM NAME="_cy" VALUE="7938">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="左边FLASH路径">
<PARAM NAME="Src" VALUE="左边FLASH路径">
<PARAM NAME="WMode" VALUE="Transparent">
<PARAM NAME="Play" VALUE="0">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="0">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAddress" VALUE="">
<PARAM NAME="ProfilePort" VALUE="0"><wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr><br> &lt;embed src="左边FLASH路径" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="300"&gt;&lt;/embed&gt;<br> &lt;/OBJECT&gt;<br> &lt;/SPAN&gt;<br> &lt;SPAN id=showCoupletRight style="RIGHT: 5px; POSITION: absolute; TOP: 518px"&gt;<br> &lt;OBJECT&gt;<br> &lt;PARAM NAME="_cx" VALUE="2646"&gt;<br> &lt;PARAM NAME="_cy" VALUE="7938"&gt;<br> &lt;PARAM NAME="FlashVars" VALUE=""&gt;<br> &lt;PARAM NAME="Movie" VALUE="右边FLASH路径"&gt;<br> &lt;PARAM NAME="Src" VALUE="右边FLASH路径"&gt;<br> &lt;PARAM NAME="WMode" VALUE="Transparent"&gt;<br> &lt;PARAM NAME="Play" VALUE="0"&gt;<br> &lt;PARAM NAME="Loop" VALUE="-1"&gt;<br> &lt;PARAM NAME="Quality" VALUE="High"&gt;<br> &lt;PARAM NAME="SAlign" VALUE=""&gt;<br> &lt;PARAM NAME="Menu" VALUE="0"&gt;<br> &lt;PARAM NAME="Base" VALUE=""&gt;<br> &lt;PARAM NAME="AllowScriptAccess" VALUE=""&gt;<br> &lt;PARAM NAME="Scale" VALUE="ShowAll"&gt;<br> &lt;PARAM NAME="DeviceFont" VALUE="0"&gt;<br> &lt;PARAM NAME="EmbedMovie" VALUE="0"&gt;<br> &lt;PARAM NAME="BGColor" VALUE=""&gt;<br> &lt;PARAM NAME="SWRemote" VALUE=""&gt;<br> &lt;PARAM NAME="MovieData" VALUE=""&gt;<br> &lt;PARAM NAME="SeamlessTabbing" VALUE="1"&gt;<br> &lt;PARAM NAME="Profile" VALUE="0"&gt;<br> &lt;PARAM NAME="ProfileAddress" VALUE=""&gt;<br> &lt;PARAM NAME="ProfilePort" VALUE="0"&gt;<br> &lt;embed src="右边FLASH路径" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="300"&gt;&lt;/embed&gt;<br> &lt;/OBJECT&gt;<br> &lt;/SPAN&gt;<br> &lt;SCRIPT type=text/javascript&gt;<br> function closead()<br> {<br> document.getElementByIdx("showCoupletLeft").style.visibility='hidden';<br> document.getElementByIdx("showCoupletRight").style.visibility='hidden';<br> }<br> function MoveCouplet(LName,RName) {<br> if(screen.width&lt;1000||!document.all){<br> document.getElementByIdx(LName).style.display = 'none';<br> document.getElementByIdx(RName).style.display = 'none';<br> } else{<br> document.getElementByIdx(LName).style.posTop = -200;<br> document.getElementByIdx(LName).style.position = 'absolute';<br> document.getElementByIdx(RName).style.posTop = -200;<br> document.getElementByIdx(RName).style.position = 'absolute';<br> MoveCoupletLeft(LName);<br> MoveCoupletRight(RName);<br> }<br> }<br> function MoveCoupletLeft(LName) {<br> var x = 5;<br> var y = 10;<br> var diff = (document.documentElement.scrollTop<wbr><wbr><wbr> + y - document.getElementByIdx(LName).style.posTop)*0.4;<br> var y = document.documentElement.scrollTop + y - diff;<br> document.getElementByIdx(LName).style.posTop = y;<br> document.getElementByIdx(LName).style.posLeft = x;<br> LeftName=LName;<br> setTimeout("MoveCoupletLeft(LeftName);", 1);<br> }<br> function MoveCoupletRight(RName) {<br> var x = 5;<br> var y = 10;<br> var diff = (document.documentElement.scrollTop<wbr><wbr><wbr> + y - document.getElementByIdx(RName).style.posTop)*0.4;<br> var y = document.documentElement.scrollTop + y - diff;<br> document.getElementByIdx(RName).style.posTop = y;<br> document.getElementByIdx(RName).style.posRight = x;<br> RightName=RName;<br> setTimeout("MoveCoupletRight(RightName);", 20);<br> }<br> MoveCouplet("showCoupletLeft","showCoupletRight")<br> &lt;/SCRIPT&gt;</wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值