European Lee |
09-24-2004 06:03 PM |
Here is the code..
Quote:
document.write('<script language="JavaScript1.1" src="http://ar.atwola.com/file/adsPopup2.js"></script>');
var axel = Math.random() + "";
var num = axel * 1000000000000000000;
var is_client = 0;
var is_cs = 0;
is_cs = ( navigator.userAgent.indexOf('CS 2000')!=-1) ? 1 : 0;
is_client = ( (navigator.userAgent.indexOf('AOL')!=-1) || (navigator.userAgent.indexOf('CS 2000')!=-1) )? 1 : 0;
function setCookie(cookieName, cookieValue, hours, path, domain, secure)
{
var expires=new Date();
expires=new Date(expires.getTime()+(hours*60*60*1000));
document.cookie =
escape(cookieName) + '=' + escape(cookieValue)
+ ( '|' + expires.getTime() )
+ (expires ? '; EXPIRES=' + expires.toGMTString() : '')
+ (path ? '; PATH=' + path : '')
+ (domain ? '; DOMAIN=' + domain : '')
+ (secure ? '; SECURE' : '');
cookieValue = null;
return p_getCookie(cookieName);
}
function p_getCookie (cookieName) {
var cookieValue = null;
var posName = document.cookie.indexOf(escape(cookieName) + '=');
if (posName != -1) {
var posValue = posName + (escape(cookieName) + '=').length;
var endPos = document.cookie.indexOf(';', posValue);
if (endPos != -1)
cookieValue = unescape(document.cookie.substring(posValue,endPos ));
else
cookieValue = unescape(document.cookie.substring(posValue));
}
if (cookieValue hahahaha null) {
return 0;
} else {
return cookieValue;
}
}
function popit(URL,width,height,off_x,off_y,options,winname ,special)
{
if (_js12) {
if (screen) {
var bottom = screen.availHeight;
var right = screen.availWidth;
if (special hahahaha "tr" ) {
var pos_x = parseInt((right- width) - 30) ;
var pos_y = 30;
options += (',left=' + pos_x + ',top=' + pos_y );
}else if (special hahahaha "wn" ) {
var pos_x = parseInt((right- width) - 200) ;
var pos_y = 30;
options += (',left=' + pos_x + ',top=' + pos_y );
}else {
var pos_x = parseInt((right- width)/2) ;
var pos_y = parseInt((bottom - height)/2);
options += (',left=' + (pos_x + mid_off_x) + ',top=' + (pos_y + mid_off_y) );
}
}
}
var remote = window.open(URL,winname,options);
}
function do_comm()
{
if ( p_type hahahaha 0 )
URL = "http://wp.netscape.com/ex/shak/home_popups/popup_03.html?num"+num;
if ( p_type hahahaha 1 )
URL = "http://wp.netscape.com/ex/shak/home_popups/popup_hp_r.html?num"+num;
if ( p_type hahahaha 2 )
URL = "http://wp.netscape.com/ex/shak/home_popups/popup_hp_f.html?num"+num;
if ( p_type hahahaha 3 )
URL = "http://wp.netscape.com/ex/shak/home_popups/popup_hp_i.html?num"+num;
width = c_width;
height = c_height;
mid_off_x = 0;
mid_off_y = 0;
options = "scrollbars=no,resizable=no,menubar=no,status=no,t oolbar=no,location=no,directories=no,width=" + width + ",height=" + height;
popit(URL,width,height,mid_off_x,mid_off_y,options ,"commpop","tr")
}
function do_what()
{
if ( w_type hahahaha 0 ) {
URL = "http://channels.netscape.com/new/html/live/nsnew.html?num"+num;
width = 288;
height = 340;
}
else {
URL = "http://channels.netscape.com/new/html/live/npnew.html?num"+num;
width = 288;
height = 150;
}
if (_js12) {
if (screen) {
var total_width = screen.availWidth;
var center = parseInt(total_width/2) ;
mid_off_x = (-1 * center) + parseInt(width/2) + 15;
}
}
else {
mid_off_x = -200;
}
mid_off_y = 125;
options = "scrollbars=yes,resizable=yes,menubar=no,status=no ,toolbar=no,location=no,directories=no,width=" + width + ",height=" + height;
if ( w_type hahahaha 0 ) {
popit(URL,width,height,mid_off_x,mid_off_y,options ,"whatpop","tr")
}
else {
popit(URL,width,height,mid_off_x,mid_off_y,options ,"whatpop","wn")
}
}
function do_what_click()
{
if ( w_type hahahaha 0 ) {
URL = "/redir.adp?_wps_s=wp_r3-1.tonr.main&_dci_url=http%3a%2f%2fchannels%2enetsc ape%2ecom%2fnew%2fhtml%2flive%2fnsnew%2ehtml%3fnum "+num;
width = 288;
height = 340;
}
else {
URL = "/redir.adp?_wps_s=wp_r3-1.tonr.main&_dci_url=http%3a%2f%2fchannels%2enetsc ape%2ecom%2fnew%2fhtml%2flive%2fnpnew%2ehtml%3fnum "+num;
width = 288;
height = 150;
}
if (_js12) {
if (screen) {
var total_width = screen.availWidth;
var center = parseInt(total_width/2) ;
mid_off_x = (-1 * center) + parseInt(width/2) + 15;
}
}
else {
mid_off_x = -200;
}
mid_off_y = 125;
options = "scrollbars=yes,resizable=yes,menubar=no,status=no ,toolbar=no,location=no,directories=no,width=" + width + ",height=" + height;
if ( w_type hahahaha 0 ) {
popit(URL,width,height,mid_off_x,mid_off_y,options ,"whatpop","tr")
}
else {
popit(URL,width,height,mid_off_x,mid_off_y,options ,"whatpop","wn")
}
}
function do_undr()
{
adSetPopupWH('93147639','720','300','/_ads/adsPopup2.htm','P24','20','50','-1');
}
function pops()
{
var r_commpop = p_getCookie("NSCPHPAD1");
var r_whatpop = p_getCookie("RWHAT");
if ( !r_commpop && popcomm)
{
var dopop = null;
dopop = setCookie("NSCPHPAD1","set",23,"/",d_domain);
if (dopop)
{
if ( (p_type hahahaha 0) || (p_type hahahaha 1) || (p_type hahahaha 2) || (p_type hahahaha 3))
{
x = setTimeout("do_comm()",commdelay);
}
}
}
else if ( r_commpop || !popcomm )
{
if ( !r_whatpop && popwhat )
{
var dopop = null;
dopop = setCookie("RWHAT","set",2,"/",d_domain);
if (dopop)
y = setTimeout("do_what()",whatdelay);
}
}
if ( popundr )
do_undr();
} //pops()
|
Regards,
Lee
|