====请教如何让页面两侧广告随滚动条滚动!=====

meteor820828 2004-10-18 01:24:17
我是做出来了在两边出现广告,但不能随滚动条上下滚动

请问要如何修改以下代码.
<SCRIPT language=javascript>
var rightbar;
var coupletcode;
rightbar = window.screen.width-140;

coupletcode = "<DIV id=sidebar style='LEFT: 0px; POSITION: absolute; TOP: 150px; VISIBILITY: show;' width=117>32</div><DIV id=sidebar2 style='LEFT: " + rightbar + "px; POSITION: absolute; TOP: 150px; left:895px;VISIBILITY: show' width=117>32</div>";

if (window.screen.width>=1024)
{
document.write(coupletcode);
}

function InsertCouplet()
{
if (window.screen.width>=1024){
document.all.sidebar.style.visibility = "visible";
document.all.sidebar2.style.visibility = "visible";
document.all.sidebar.innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=104 HEIGHT=261 id=leftFF ALIGN=> <PARAM NAME=movie value=images/ad01.swf> <PARAM NAME=quality value=high><EMBED id=leftFFG src=images/ad01.swf wmode=transparent WIDTH=120 HEIGHT=270 NAME=you ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";
document.all.sidebar2.innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=104 HEIGHT=261 id=youFF ALIGN=><PARAM NAME=movie value=images/ad02.swf ><PARAM NAME=wmode value=transparent><PARAM NAME=quality value=high><EMBED id=youFFG src=images/ad02.swf quality=high WIDTH=120 HEIGHT=270 NAME=you ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";

}
}

InsertCouplet();
function leftFFG_DoFSCommand(command,args){
if ((command == "")&&(args =="hidecouplet")){
document.all.sidebar.style.visibility = "show";
document.all.sidebar2.style.visibility = "show";
}
}
function youFFG_DoFSCommand(command,args){
leftFFG_DoFSCommand(command,args);
}
</SCRIPT>

...全文
154 6 打赏 收藏 举报
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
moylaugh 2004-10-19
  • 打赏
  • 举报
回复
我也想要
最最简单的!
meteor820828 2004-10-19
  • 打赏
  • 举报
回复
up
meteor820828 2004-10-18
  • 打赏
  • 举报
回复
up
meteor820828 2004-10-18
  • 打赏
  • 举报
回复
楼上你的内容中还要调用一个float.js文件,我要最最简单的
sun315 2004-10-18
  • 打赏
  • 举报
回复
<!--悬停图标开始 -->
<SCRIPT language=JavaScript>
function myload1()
{
StaticLogo1.style.top=100;
StaticLogo1.style.left=window.screen.width-100;
mymove1();
}
var a;
var b;
var x=0;
function mymove1()
{
window.screen.width>800 ? a=240:a=120
b=document.body.scrollTop;
{
StaticLogo1.style.top=b+200;
StaticLogo1.style.left=a;
setTimeout('mymove1();',200);
}
}
</SCRIPT>

<!--悬停图标结束-->
<!--对联广告 -->
<SCRIPT src="float.js"></SCRIPT>
</head>
<body background="image/bg1.gif" topmargin="0">
<div align="center">
<center>
<table width="800" border="0">
<tr>
<td height="116"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="122">
<param name="_cx" value="21167">
<param name="_cy" value="3228">
<param name="FlashVars" value>
<param name="Movie" value="image/11=.swf">
<param name="Src" value="image/11=.swf">
<param name="WMode" value="Window">
<param name="Play" value="-1">
<param name="Loop" value="-1">
<param name="Quality" value="High">
<param name="SAlign" value>
<param name="Menu" value="-1">
<param name="Base" value>
<param name="AllowScriptAccess" value="always">
<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"><embed src="image/11=.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="122"></object></td>
</tr>
meteor820828 2004-10-18
  • 打赏
  • 举报
回复
up