<script language="javascript">
<!--
var m_layer1,m_layer2
function initMove() {
m_layer1=document.getElementById("AdLayer1")
m_layer2=document.getElementById("AdLayer2")
m_layer1.style.top = "-200px"
m_layer1.style.visibility = 'visible'
m_layer2.style.top = "-200px"
m_layer2.style.visibility = 'visible'
MoveLayers()
window.onscroll=MoveLayers
}
function MoveLayers() {
var x = 5// 左右边距
var y = 100// 顶距
var st=document.documentElement.scrollTop
var cw=document.documentElement.clientWidth
var y = st + y
m_layer1.style.top = y+"px"
m_layer1.style.left = x+"px"
m_layer2.style.top = y+"px"
m_layer2.style.left = cw-m_layer2.clientWidth-x+"px"
}
window.setTimeout("initMove()",600)
//-->
</script>
<div id='AdLayer1' style='position: absolutevisibility:hiddenz-index:1'><script type="text/javascript"><!--
google_ad_client = "pub-498498484994498"
/* 160x600, 创建于 09-5-22 */
google_ad_slot = "0666243606"
google_ad_width = 160
google_ad_height = 600
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/sfsfs.js">
</script></div>
<div id='AdLayer2' style='position:absolutevisibility:hiddenz-index:1'><script type="text/javascript"><!--
google_ad_client = "pub-498498484994498"
/* 160x600, 创建于 09-5-22 */
google_ad_slot = "0666243606"
google_ad_width = 160
google_ad_height = 600
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/sfsfs.js">
</script></div>
http://www.aspprogram.cn/html/soft/2007123170955.htmlhttp://www.sj00.com/soft/38931.htm
调用的方法很多种,经常见的<!--#include file="ddd.asp" -->,js也可以.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)