Js simulated pop-up effect Code revised version

Source: Internet
Author: User

Simulated pop-up effect Code revised version

Code displayed on the Internet always prompts when there are too many articlesCopy codeThe Code is as follows :---------------------------
Windows Internet Explorer
---------------------------
Internet Explorer cannot open Internet sites
It should be because the page is not fully loaded, so I decided to wait until the page is fully loaded and then run
Copy codeThe Code is as follows: window. onload = function (){
Var oo = new fw.com. ui. window ({
Range: [260,260,425,210],
Title: "Wen Xin's suggestion ",
Html: "<div class = 'dxycon '> <ul> <li> 1. Are you interested in this file? Click the "add to bookshelf" button. You can view the latest chapters of the work at any time on the "my bookshelves" Page and read them as soon as possible. You can search for them when you do not need to read them! </Li> <li> 2. reader support is the source of motivation for the author's creation. If you think this book is good, please vote for it! Your support for the original author is simple. The recommended ticket is reobtained every day. It will expire if you don't need it today, and you can get points for each recommended work! </Li> <li> 3. If you click this button, the message is not displayed. </li> <li style = 'text-align: center '> <a href = 'HTTP: // www.jb51.net' target = '_ blank'> script home </a> <a href = 'HTTP: // www.kanshule.com 'target = '_ blank'> read novels. </a> <button class = 'btn 'onclick = \ "setCookie ('noaf',' OK ') \ "> no longer prompts </button> </li> </ul> </div> ",
Display: "none"
});
If (getCookie ('nofav {? $ Article_id ?} ')! = 'OK '){
Oo. show ();
}
Function setit (name, value ){
SetCookie (name, value );
Oo. hide ();
}
}
Mainly add this sentence window. onload = function (){}

Because there are many files, there are images
See the specific Demo: http://www.jb51.net/adtest/101/index.htm
Packaging http://www.jb51.net/adtest/101/101tanchu.rar

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.