在广告里放- <!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=gb2312">
- <script language=javascript type="text/javascript">
- var hmax = 625-1;//最大高度
- var hmin = 25;//最小高度
- var h=0;
- function addCount(){
- if(h<hmax){
- h += 20;
- setTimeout("addCount()",1);
- }
- else {
- h=hmax;
- setTimeout("noneAds()",3000); //停留时间自己适当调整,1000 = 1秒
- document.getElementById("adsOPEN").style.display = "none";
- }
- document.getElementById("ads").style.display = "";
- document.getElementById("ads").style.height = h+"px";
- }
- window.onload = function showAds(){
- document.getElementById("ads").style.display = "none";
- document.getElementById("ads").style.height = "0px";
- addCount(); //慢慢打开
- // h=hmax;
- // setTimeout("noneAds()",3000); //停留时间自己适当调整,1000 = 1秒
- }
- function openAds(){
- h = 0;//高度
- addCount(); //慢慢打开
- }
- function noneAds(){
- if(h>hmin) {
- h -= 20;
- setTimeout("noneAds()",1);
- }
- else {
- h = hmin;
- document.getElementById("ads").style.display = "none";
- document.getElementById("adsOPEN").style.display = "";
- return;
- }
- document.getElementById("ads").style.height = h+"px";
- }
- </script>
- </head>
- <body>
- <div id="ads" style="overflow:hidden;top:0px;text-align:center;display:none">
- <img src="http://www.zzsky.cn/effect/images/201112/302130/shanhaiyun950-500.jpg">
- </div>
- <div id="adsOPEN" style="overflow:hidden;text-align:center">
- <a href="javascript:openAds()"><img src="http://www.zzsky.cn/effect/images/201112/302130/ad-open.gif" border="0"></a>
- </div>
- </body>
- </html>
复制代码 |
免责声明:论坛部分资源来源于网络,如有侵权请发邮件(1510974241@qq.com)告知我们,我们将在24小时内处理.
获得 土地神卡 一张
卡片说明:竞技鱼推掉敌方防御塔,获得5赏金
卡片效果:+5