| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 551 人关注过本帖
标题:对联广告,滚动条稍微动下就消失了
只看楼主 加入收藏
lish
Rank: 1
等 级:新手上路
帖 子:37
专家分:0
注 册:2007-10-8
收藏
 问题点数:0 回复次数:1 
对联广告,滚动条稍微动下就消失了
是asp的网页,js调用,滚动条稍微动下对联就消失了,并且提示script错误,js代码如下:

function initEcAd() {
document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.visibility = 'visible'
document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 0;
var y = 80;
var diff = (document.documentElement.scrollTop + y - document.all.AdLayer1.style.posTop)*.80;
var y = document.documentElement.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 0;
var y = 80;
var diff = (document.documentElement.scrollTop + y - document.all.AdLayer2.style.posTop)*.80;
var y = document.documentElement.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posRight = x");
setTimeout("MoveRightLayer('AdLayer2');", 20);
}
document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'><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='100' height='261' id=dl><param name='movie' value='images/top.swf'><param name='quality' value='high'><embed src='images/top.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='100' height='261'></embed></object></div>"
+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><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='100' height='261' id=dl><param name='movie' value='images/top.swf'><param name='quality' value='high'><embed src='images/top.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='100' height='261'></embed></object></div>");
initEcAd();
document.write("<SCRIPT FOR='dl' EVENT='fscommand()' LANGUAGE='JavaScript'>");
document.write("AdLayer1.style.visibility='hidden';");
document.write("AdLayer2.style.visibility='hidden';");
document.write("</Script>");


希望能帮忙解答额
搜索更多相关主题的帖子: 广告 对联 滚动 
2007-10-17 21:27
lish
Rank: 1
等 级:新手上路
帖 子:37
专家分:0
注 册:2007-10-8
收藏
得分:0 

晕,没人?

2007-10-17 22:50
快速回复:对联广告,滚动条稍微动下就消失了
数据加载中...
 
   



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

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