带关闭按钮的漂浮对联html代码
代码需要同时满足以下要求:网页两侧的对联式广告条(两侧内容不同,大小可调节),带关闭按钮,可单独关闭其中任意一侧的广告条,浮动式的(可跟随网页的滚动条上下浮动),要纯ht...
代码需要同时满足以下要求:
网页两侧的对联式广告条(两侧内容不同,大小可调节),带关闭按钮,可单独关闭其中任意一侧的广告条,浮动式的(可跟随网页的滚动条上下浮动),要纯html代码,不要js代码。
谢谢!
注意,只要纯html代码,不要js. 展开
网页两侧的对联式广告条(两侧内容不同,大小可调节),带关闭按钮,可单独关闭其中任意一侧的广告条,浮动式的(可跟随网页的滚动条上下浮动),要纯html代码,不要js代码。
谢谢!
注意,只要纯html代码,不要js. 展开
2个回答
展开全部
这是网页内放的代码:
<!--对联广告条-->
<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()
<!--对联广告条-->
<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()
展开全部
这是网页内放的代码:
<!--对联广告条-->
<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()
<!--对联广告条-->
<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()
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询