音乐模式 |静音模式
免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
热搜: 英雄联盟 王者荣耀 使命召唤 SClub代码 ($asdfgh=$db->fetch_array($q2)) echo('' . $asdfgh[tagname] . ''); }
返回列表 下一主题 ›› ‹‹ 上一主题 发帖



在广告里放
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=gb2312">
  5. <script language=javascript type="text/javascript">
  6. var hmax = 625-1;//最大高度
  7. var hmin = 25;//最小高度
  8. var h=0;
  9. function addCount(){
  10.         if(h<hmax){
  11.                 h += 20;
  12.                 setTimeout("addCount()",1);
  13.         }
  14.         else {
  15.                 h=hmax;
  16.                 setTimeout("noneAds()",3000); //停留时间自己适当调整,1000 = 1秒
  17.                 document.getElementById("adsOPEN").style.display = "none";
  18.         }
  19.         document.getElementById("ads").style.display = "";
  20.         document.getElementById("ads").style.height = h+"px";
  21. }
  22. window.onload = function showAds(){
  23.         document.getElementById("ads").style.display = "none";
  24.         document.getElementById("ads").style.height = "0px";
  25.         addCount(); //慢慢打开
  26. //        h=hmax;
  27. //        setTimeout("noneAds()",3000); //停留时间自己适当调整,1000 = 1秒
  28. }
  29. function openAds(){
  30.         h = 0;//高度
  31.         addCount(); //慢慢打开
  32. }
  33. function noneAds(){
  34.         if(h>hmin)        {
  35.                 h -= 20;
  36.                 setTimeout("noneAds()",1);
  37.         }
  38.         else {
  39.                 h = hmin;
  40.                 document.getElementById("ads").style.display = "none";
  41.                 document.getElementById("adsOPEN").style.display = "";
  42.                 return;
  43.         }
  44.         document.getElementById("ads").style.height = h+"px";
  45. }
  46. </script>
  47. </head>
  48. <body>
  49. <div id="ads" style="overflow:hidden;top:0px;text-align:center;display:none">
  50.         <img src="http://www.zzsky.cn/effect/images/201112/302130/shanhaiyun950-500.jpg">
  51. </div>
  52. <div id="adsOPEN" style="overflow:hidden;text-align:center">
  53.         <a href="javascript:openAds()"><img src="http://www.zzsky.cn/effect/images/201112/302130/ad-open.gif" border="0"></a>
  54. </div>
  55. </body>
  56. </html>
复制代码
附件: 您需要登录才可以下载或查看附件。没有帐号?加入我们【中文注册】  
免责声明:论坛部分资源来源于网络,如有侵权请发邮件(1510974241@qq.com)告知我们,我们将在24小时内处理.

获得 土地神卡 一张

卡片说明:竞技鱼推掉敌方防御塔,获得5赏金

卡片效果:+5

收藏收藏 转播转播 分享分享 分享淘帖 顶0 踩0 发送到手机穿越
逆流而上,不进则退

返回列表 下一主题 ›› ‹‹ 上一主题

站点已稳定运行: |