You can create an ADS. js file.Code. Call this file to the webpage where you need to pop up the advertisement.
Function openpopup (){
Document. writeln ("<script language = JavaScript> ");
Document. writeln ("window. Open ('HTTP: // siyizhu.126.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 ()
Change 'HTTP: // siyizhu.126.com 'to the URL of the advertisement to be displayed.