请教 这段代码什么意思啊 我用的网站程序 里面有的。。 解释下什么意思。。。 在网页最后有这段代码..
<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>