HTML 对联广告

HTML 对联广告,第1张

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<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.html

http://www.sj00.com/soft/38931.htm

调用的方法很多种,经常见的<!--#include file="ddd.asp" -->,js也可以.


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/7221241.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-03
下一篇 2023-04-03

发表评论

登录后才能评论

评论列表(0条)

保存