`
jickcai
  • 浏览: 238697 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

对联广告效果

阅读更多
转载:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>对联广告效果</title>
</head>

<body bgcolor="#66CCFF">
<script language="javascript">
<!--
//===================
// 对联广告效果脚本
// by 木鸟 2007.11.14
// www.iwms.net
// 转载及使用请保留本信息
//===================
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: absolute;visibility:hidden;z-index:1'><a href="http://www.iwms.net/buy"><img src='http://www.iwms.net/buy/pic/product_6.gif' border='0'></a></div>
<div id='AdLayer2' style='position:absolute;visibility:hidden;z-index:1'><a href="http://www.iwms.net/buy"><img src='http://www.iwms.net/buy/pic/product_8.gif' border='0'></a></div>

<div align="center" style="height:2000px">
<h3>对联效果</h3>
<br/><br/>
说明:该脚本由木鸟编写,适用于IE/Firefox/Opera。<br/><br/>
<a href="http://www.iwms.net/">www.iwms.net</a>
</div>
<h3>&nbsp;</h3>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics