窗口左边的滚动广告
<SCRIPT language="JavaScript" event="onload" for="window">
initAd();//载入页面后,调用函数initAd()
</SCRIPT>
<script language="JavaScript">
<!--
function initAd() {
document.all.AdLayer.style.posTop = -200;
//设置onLoad事件激发以后,广告层相对于固定后的y方向位置
document.all.AdLayer.style.visibility = 'visible'//设置层为可见
MoveLayer('AdLayer');//调用函数MoveLayer()
}
function MoveLayer(layerName) {
var x = 902;//浮动广告层固定于浏览器的x方向位置
var y = 150;//浮动广告层固定于浏览器的y方向位置
var diff = (document.body.scrollTop + y - document.all.AdLayer.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("MoveLayer('AdLayer');", 20);//设置20毫秒后再调用函数MoveLayer()
}
//-->
</script>
<!--下面为一个ID为AdLayer的层(如ID名不为AdLayer,
上面MoveLayer()内的AdLayer也要作相应修改),包括一张带链接的图片-->
<div id="AdLayer" style="Z-INDEX: 20; LEFT: 855px; VISIBILITY: hidden; WIDTH: 96px; POSITION: absolute; TOP: 30px; HEIGHT: 180px"><IMG height="96" src="Images/up1.gif" width="105" border="0">
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
客服一号</A><br>
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
客服二号</A><br>
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
客服三号</A><br>
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
批发洽谈</A> <IMG height="30" src="Images/down1.gif" width="105" border="0">
</div>
<SCRIPT language="JavaScript" event="onload" for="window">
initAd();//载入页面后,调用函数initAd()
</SCRIPT>
<script language="JavaScript">
<!--
function initAd() {
document.all.AdLayer.style.posTop = -200;
//设置onLoad事件激发以后,广告层相对于固定后的y方向位置
document.all.AdLayer.style.visibility = 'visible'//设置层为可见
MoveLayer('AdLayer');//调用函数MoveLayer()
}
function MoveLayer(layerName) {
var x = 902;//浮动广告层固定于浏览器的x方向位置
var y = 150;//浮动广告层固定于浏览器的y方向位置
var diff = (document.body.scrollTop + y - document.all.AdLayer.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("MoveLayer('AdLayer');", 20);//设置20毫秒后再调用函数MoveLayer()
}
//-->
</script>
<!--下面为一个ID为AdLayer的层(如ID名不为AdLayer,
上面MoveLayer()内的AdLayer也要作相应修改),包括一张带链接的图片-->
<div id="AdLayer" style="Z-INDEX: 20; LEFT: 855px; VISIBILITY: hidden; WIDTH: 96px; POSITION: absolute; TOP: 30px; HEIGHT: 180px"><IMG height="96" src="Images/up1.gif" width="105" border="0">
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
客服一号</A><br>
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
客服二号</A><br>
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
客服三号</A><br>
<IMG src="Images/qq.gif"> <A href=" http://wpa.qq.com/msgrd?V=1&Uin=17273980&Site=文锦苑&Menu=yes" target="blank">
批发洽谈</A> <IMG height="30" src="Images/down1.gif" width="105" border="0">
</div>