//复制到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>
<embed src="左边FLASH路径" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100"
height="300"></embed><br>
</OBJECT><br>
</SPAN><br>
<SPAN id=showCoupletRight style="RIGHT: 5px;
POSITION: absolute; TOP: 518px"><br>
<OBJECT><br>
<PARAM NAME="_cx" VALUE="2646"><br>
<PARAM NAME="_cy" VALUE="7938"><br>
<PARAM NAME="FlashVars"
VALUE=""><br>
<PARAM NAME="Movie"
VALUE="右边FLASH路径"><br>
<PARAM NAME="Src"
VALUE="右边FLASH路径"><br>
<PARAM NAME="WMode"
VALUE="Transparent"><br>
<PARAM NAME="Play" VALUE="0"><br>
<PARAM NAME="Loop" VALUE="-1"><br>
<PARAM NAME="Quality"
VALUE="High"><br>
<PARAM NAME="SAlign" VALUE=""><br>
<PARAM NAME="Menu" VALUE="0"><br>
<PARAM NAME="Base" VALUE=""><br>
<PARAM NAME="AllowScriptAccess"
VALUE=""><br>
<PARAM NAME="Scale"
VALUE="ShowAll"><br>
<PARAM NAME="DeviceFont"
VALUE="0"><br>
<PARAM NAME="EmbedMovie"
VALUE="0"><br>
<PARAM NAME="BGColor" VALUE=""><br>
<PARAM NAME="SWRemote"
VALUE=""><br>
<PARAM NAME="MovieData"
VALUE=""><br>
<PARAM NAME="SeamlessTabbing"
VALUE="1"><br>
<PARAM NAME="Profile"
VALUE="0"><br>
<PARAM NAME="ProfileAddress"
VALUE=""><br>
<PARAM NAME="ProfilePort"
VALUE="0"><br>
<embed src="右边FLASH路径" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100"
height="300"></embed><br>
</OBJECT><br>
</SPAN><br>
<SCRIPT type=text/javascript><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<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>
</SCRIPT></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
对联随滚动条滚动效果
最新推荐文章于 2022-11-16 18:31:21 发布