国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

jquery右下角自動彈出可關閉的廣告層

2019-11-20 12:31:36
字體:
來源:轉載
供稿:網友

右下角彈出層后,會在一定時間后自動隱藏。

html代碼:

<!DOCTYPE HTML><html xmlns="http://www.w3.org/1999/xhtml"><head>  <meta charset="UTF-8">  <title>jquery右下角自動彈出關閉層</title><base target="_blank"/>  <script type="text/javascript" src="jquery/jquery-1.11.2.min.js"></script>  <style type="text/css">    * {      margin: 0px;      padding: 0px;    }    a {color:black;    }    #keleyislide {      width: 300px;      height: 200px;      border: 1px solid #000;      position: fixed;      bottom: 2px;      right: 2px;      display: none;      background-color: White;      z-index:9999;    }      #keleyislide a {        position: absolute;        top: 8px;        right: 8px;        font-size: 12px;        text-decoration: none;        color: Blue;      }      #keleyislide h2 {        font-size: 24px;        text-align: center;        font-family: "微軟雅黑";      }    #reshow {      position: fixed;      right: 2px;      bottom: 2px;      font-size: 12px;      display: none;      background-color: White;      cursor: pointer;      border: 1px solid #000;    }  </style></head><body>  <div style="background-color:Green; width:100%;height:150px;">keleyi.com</div>  <div style="background-color:Red; width:100%;height:150px;">歡迎</div>  <div style="background-color:Yellow; width:100%;height:150px;"> 一定時間后彈出層會自動隱藏  </div>  <div style="background-color:Silver; width:100%;height:150px;">計劃</div>  <div style="background-color:Aqua; width:100%;height:150px;">aaaa</div>  <div style="background-color:Fuchsia; width:100%;height:150px;">jihua</div>  <div style="background-color:Green; width:100%;height:150px;">VeVB.COm</div>  <div style="background-color:Blue; width:100%;height:150px;">bbbb</div>  <div style="background-color:Olive; width:100%;height:150px;">歡迎光臨</div>  <div style="background-color:Green; width:100%;height:150px;">randomvisit</div>  <div style="background-color:Purple; width:100%;height:150px;">cccc</div>  <div style="background-color:Green; width:100%;height:150px;">B</div>  <div style="background-color:Lime; width:100%;height:150px;">myslider</div>  <div style="background-color:Orange; width:100%;height:150px;">Jihua</div>  <div id="reshow">你快回來</div>  <div id="keleyislide">    <a href="javaScript:void(0)" id="close" target="_self">關閉</a>    <span style=" line-height:50px;">右下角滑動彈出可重現層<br /></span>  </div>  <script type="text/javascript">    function Jihua_Cnblogs_Com() { $("#kel"+"eyislide").slideDown("slow"); $("#reshow").hide(); }    function KeleyiAutoHide() { $("#ke"+"leyislide").slideUp("slow"); $("#reshow").show(); }    $(document).ready(function () {      setTimeout(function () {        Jihua_Cnblogs_Com();      }, 1000)      setTimeout(function () { KeleyiAutoHide(); },9000)      $("#close").click(function () {        KeleyiAutoHide();      })      $("#reshow").mouseover(function () {        Jihua_Cnblogs_Com();       })    })  </script></body></html>

以上所述就是本文的全部內容了,希望大家能夠喜歡。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 临洮县| 天长市| 禄劝| 南召县| 达孜县| 潞城市| 贺兰县| 高陵县| 若羌县| 临海市| 高雄市| 许昌县| 弥渡县| 聂拉木县| 汉中市| 洮南市| 庄河市| 专栏| 贡嘎县| 巫山县| 庆元县| 玉龙| 鄂州市| 英超| 双牌县| 陇川县| 彰化市| 五河县| 漳州市| 娄底市| 恩施市| 宜宾市| 策勒县| 大姚县| 雷山县| 永顺县| 清镇市| 杭锦后旗| 康保县| 西峡县| 镇巴县|