Home > Web Front-end > JS Tutorial > body text

js simulation pop-up effect code revised version_advertising code

WBOY
Release: 2016-05-16 19:02:12
Original
1000 people have browsed it

Modified version of simulated pop-up effect code

The code I saw on the Internet, when the article contains a lot of content, it will always prompt

Copy code The code is as follows:
--------------------------
Windows Internet Explorer
---- -----------------------
Internet Explorer cannot open the Internet site

It should be that the page has not been loaded, so I judged, Wait until the page is loaded, then run
Copy code The code is as follows:
window.onload=function(){
var oo = new fw.com.ui.window({
range : [260,260,425,210],
title : "Warm Tips",
html : "
  • 1. Are you interested in this work? Click the "Add to Bookshelf" button, and you can view the latest chapters of the work in "My Bookshelf" at any time and immediately. Reading, you no longer need to search around when you want to read it!
  • 2. Readers’ support is the source of motivation for the author’s creation. If you think this book is good, please vote for the author! A gentle click is a strong support for the original author. Recommendation tickets are re-obtained every day. If you don’t use them today, they will expire. You can also get points for each work you recommend!
  • 3. Click Don't prompt this message, and the prompt will no longer pop up
  • Script Home ' onclick="setCookie('nofav','ok')">Don't prompt this message again
",
display : " none"
});
if(getCookie('nofav{?$article_id?}')!='ok'){
oo.show();
}
function setit (name,value){
setCookie(name,value);
oo.hide();
}
}

Mainly adding this sentence window.onload=function (){}

Because there are many files, there are pictures
For detailed demonstration: http://www.jb51.net/adtest/101/index.htm
Package download address http://www.jb51.net/adtest/101/101tanchu.rar
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template