Home >Web Front-end >JS Tutorial >js pop-up window code can specify the pop-up interval_advertising code

js pop-up window code can specify the pop-up interval_advertising code

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 18:23:491377browse

The code is as follows:

Copy code The code is as follows:

"); //Set the content of the pop-up window
Set();
}


The current setting is 10 seconds, mainly to facilitate testing. After success, you can make changes according to your own needs,

For example, 5 minutes
var Time=300;
One hour
var Time=3600;
Then modify the pop-up address. What I set here is the advertising code. Of course, you can also modify it into a pop-up page. Modify line 13 For
window.open("http://www.jb51.net/","","width=800,height=500");
window.open("http://www.baidu .com/","","width=800,height=500");
How about it, have you mastered it?
Statement:
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