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.