Every 24 hours the page code of the window

Source: Internet
Author: User
Web page

You can create a ads.js, the following is the code for this JS file. Call this file to the page you need to eject the ad.

function Openpopup () {
Document.writeln ("<script language=javascript>");
Document.writeln ("window.open (' http://www.webjx.com ')");
Document.writeln ("</script\>");
}

function Get_cookie (Name) {
var search = Name + "="
var returnvalue = "";
if (Document.cookie.length > 0) {
offset = document.cookie.indexOf (search)
if (offset!=-1) {
Offset + = Search.length
End = Document.cookie.indexOf (";", offset);
if (end = = 1)
end = Document.cookie.length;
Returnvalue=unescape (document.cookie.substring (offset, end))
}
}
Return returnvalue;
}

function Helpor_net () {
if (Get_cookie (' popped ') = = ' ") {
Openpopup ()
Document.cookie= "Popped=yes"
}
}
Helpor_net ()

Note: The http://www.webjx.com section is replaced by the URL where you want to eject the ad.

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.