jquery右下角自動(dòng)彈出可關(guān)閉的廣告層
右下角彈出層后,會(huì)在一定時(shí)間后自動(dòng)隱藏。
html代碼:
<!DOCTYPE HTML> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="UTF-8"> <title>jquery右下角自動(dòng)彈出關(guān)閉層</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;"> 一定時(shí)間后彈出層會(huì)自動(dòng)隱藏 </div> <div style="background-color:Silver; width:100%;height:150px;">計(jì)劃</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;">jb51.net</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">你快回來(lái)</div> <div id="keleyislide"> <a href="javaScript:void(0)" id="close" target="_self">關(guān)閉</a> <span style=" line-height:50px;">右下角滑動(dòng)彈出可重現(xiàn)層<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>
以上所述就是本文的全部?jī)?nèi)容了,希望大家能夠喜歡。
- js退彈 IE關(guān)閉時(shí)彈出廣告代碼,可以防止屏蔽
- 仿中關(guān)村在線首頁(yè)彈出式廣告插件(jQuery版)
- 基于jQuery的網(wǎng)頁(yè)右下角彈出廣告(IE7,firefox)
- 彈出廣告特效代碼(一個(gè)IP只彈出一次)
- js左右彈性滾動(dòng)對(duì)聯(lián)廣告代碼分享
- JS實(shí)現(xiàn)彈性漂浮效果的廣告代碼
- 彈出廣告特效(一個(gè)IP只彈出一次)的代碼
- emapicn.exe,winpac.exe惡意插件瘋彈廣告解決方法
- JavaScript常用的彈出廣告及背投廣告實(shí)現(xiàn)方法
- JavaScript定時(shí)器制作彈窗小廣告
相關(guān)文章
jQuery實(shí)現(xiàn)頁(yè)面滾動(dòng)時(shí)層智能浮動(dòng)定位實(shí)例探討
在博客或者微博上面也會(huì)見(jiàn)到這個(gè)效果,所以客戶就也想要這樣的效果了,接下來(lái)為大家詳細(xì)介紹下浮動(dòng)定位實(shí)現(xiàn)的過(guò)程,感興趣的朋友可以參考下哈2013-03-03基于Jquery的跨域傳輸數(shù)據(jù)(JSONP)
基于Jquery的跨域傳輸數(shù)據(jù)(JSONP) ,需要的朋友可以參考下。2011-03-03jQuery之動(dòng)畫(huà)ajax事件(實(shí)例講解)
下面小編就為大家?guī)?lái)一篇jQuery之動(dòng)畫(huà)ajax事件(實(shí)例講解)。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-07-07JQuery發(fā)送ajax請(qǐng)求時(shí)中文亂碼問(wèn)題解決
這篇文章主要介紹了JQuery發(fā)送ajax請(qǐng)求時(shí)中文亂碼問(wèn)題解決,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2019-11-11基于Jquery的$.cookie()實(shí)現(xiàn)跨越頁(yè)面tabs導(dǎo)航實(shí)現(xiàn)代碼
基于Jquery的$.cookie()實(shí)現(xiàn)跨越頁(yè)面tabs導(dǎo)航實(shí)現(xiàn)代碼,需要的朋友可以參考下。2011-03-03jquery驗(yàn)證手機(jī)號(hào)碼、郵箱格式是否正確示例代碼
本文為大家介紹下使用jquery驗(yàn)證郵箱、驗(yàn)證手機(jī)號(hào)碼,具體實(shí)現(xiàn)思路及代碼如下,感興趣的朋友可以學(xué)習(xí)下2013-07-07javascript 開(kāi)發(fā)之網(wǎng)頁(yè)兼容各種瀏覽器
這篇文章主要介紹了javascript 開(kāi)發(fā)之網(wǎng)頁(yè)兼容各種瀏覽器的相關(guān)資料,這里提供了幾種方法幫助大家掌握這樣的功能,需要的朋友可以參考下2017-09-09