请高手帮忙看看这段网页代码!~

请教 这段代码什么意思啊 我用的网站程序 里面有的。。 解释下什么意思。。。 在网页最后有这段代码..
<script language="javascript">
function openScript(url, width, height){
var Win = window.open(url,"openScript",'width=' + width + ',height=' + height +

',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
</script>

<SCRIPT FOR='EccoolAd' EVENT='fscommand()' LANGUAGE='javascript'>
AdLayer1.style.visibility='hidden';
AdLayer2.style.visibility='hidden';
</script>
<script>
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 = 20;
var y = 330;
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.10;
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 = 20;
var y = 330;
var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.10;
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='display:none;position: absolute;z-

index:1;cursor:hand' onclick=window.open('http://www.ah126.cn','_blank')><embed

src='adpic/banner5.swf' width=80 height=80 quality='high'

pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-

flash' wmode='transparent' scale='noborder'></embed></div>"+"<div id=AdLayer2

style='display:none;position: absolute;z-index:1;cursor:hand' onclick=window.open

('http://www.in263.com','_blank')><embed src='adpic/banner6.swf' width=80 height=80

quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer'

type='application/x-shockwave-flash' wmode='transparent'

scale='noborder'></embed></div>");
initEcAd()
</script>

第1个回答  2007-04-19
你可以新建一个文本文件,把代码复制进去,再把文本文件的txt后缀改成html,用浏览器打开看看效果是怎样的。
第2个回答  2007-04-19
是一个浮动广告的代码。本回答被提问者采纳
第3个回答  2007-04-19
最好的办法是把这些代码复制到frontpage中你一运行就知道是怎么回事了
相似回答