带关闭按钮的漂浮对联html代码

代码需要同时满足以下要求:网页两侧的对联式广告条(两侧内容不同,大小可调节),带关闭按钮,可单独关闭其中任意一侧的广告条,浮动式的(可跟随网页的滚动条上下浮动),要纯ht... 代码需要同时满足以下要求:
网页两侧的对联式广告条(两侧内容不同,大小可调节),带关闭按钮,可单独关闭其中任意一侧的广告条,浮动式的(可跟随网页的滚动条上下浮动),要纯html代码,不要js代码。
谢谢!
注意,只要纯html代码,不要js.
展开
 我来答
714864161
2008-03-01 · 超过10用户采纳过TA的回答
知道答主
回答量:84
采纳率:0%
帮助的人:43.8万
展开全部
这是网页内放的代码:
<!--对联广告条-->
<SCRIPT FOR='EccoolAd' EVENT='fscommand()' LANGUAGE='JavaScript'>
AdLayer1.style.visibility='hidden';
AdLayer2.style.visibility='hidden';
</script>
<script src=EccoolAd.js></script>

flash中关闭按扭为close_btn
flash文件EccoolAdb.swf可以把下面JS中代码改为你的FLASH名
flash中关闭代码:
close_btn.onRelease = function() {
fscommand("quit");//作为HTML中EccoolAD对象的响应事件
}

这是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 = 5;
var y = 340;
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
var y = document.body.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 = 5;
var y = 340;
var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
var y = document.body.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'><EMBED src='EccoolAda.swf' quality=high WIDTH=100 HEIGHT=100 TYPE='application/x-shockwave-flash' id=EccoolAd></EMBED></div>"
+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><EMBED src='EccoolAdb.swf' quality=high WIDTH=100 HEIGHT=100 TYPE='application/x-shockwave-flash' id=EccoolAd></EMBED></div>");
initEcAd()
端涛狂高懿
2019-11-19 · TA获得超过4100个赞
知道大有可为答主
回答量:3157
采纳率:27%
帮助的人:193万
展开全部
这是网页内放的代码:
<!--对联广告条-->
<SCRIPT
FOR='EccoolAd'
EVENT='fscommand()'
LANGUAGE='JavaScript'>
AdLayer1.style.visibility='hidden';
AdLayer2.style.visibility='hidden';
</script>
<script
src=EccoolAd.js></script>
flash中关闭按扭为close_btn
flash文件EccoolAdb.swf可以把下面JS中代码改为你的FLASH名
flash中关闭代码:
close_btn.onRelease
=
function()
{
fscommand("quit");//作为HTML中EccoolAD对象的响应事件
}
这是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
=
5;
var
y
=
340;
var
diff
=
(document.body.scrollTop
+
y
-
document.all.AdLayer1.style.posTop)*.40;
var
y
=
document.body.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
=
5;
var
y
=
340;
var
diff
=
(document.body.scrollTop
+
y
-
document.all.AdLayer2.style.posTop)*.40;
var
y
=
document.body.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'><EMBED
src='EccoolAda.swf'
quality=high
WIDTH=100
HEIGHT=100
TYPE='application/x-shockwave-flash'
id=EccoolAd></EMBED></div>"
+"<div
id=AdLayer2
style='position:
absolute;visibility:hidden;z-index:1'><EMBED
src='EccoolAdb.swf'
quality=high
WIDTH=100
HEIGHT=100
TYPE='application/x-shockwave-flash'
id=EccoolAd></EMBED></div>");
initEcAd()
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式