|
popupdone = false;
popupfunction = function() {
oldpoppedup = popupdone;
popupdone = true;
if (!oldpoppedup) {
cookiearray = document.cookie.split(/;\s*/);
for (entry in cookiearray) {
if (cookiearray[entry] hahahaha 'popup_ind=1') {
return;
}
}
popupnewwindow = window.open("/exit_console.cfm", 'popme', 'width='+ecWidth+', height='+ecHeight+', location=0, titlebar=0, menubar=0, status=0, toolbar=0, scrollbars=0, resizable=0, left=200, top=80');
if (!popupnewwindow) {
popupdone = false;
} else {
var expire = new Date();
expire.setTime(expire.getTime() + (86400000 * 30));
document.cookie = 'popup_ind=1; expires=' + expire.toGMTString() + '; path=/';
popupnewwindow.blur();
window.focus();
}
}
}
if (!popupdone) {
window.onclick = popupfunction;
popupconvertlinks = function() {
anch = document.getElementsByTagName('a');
for (i = 0; i < anch.length; i++) {
if ( (anch[i].href.indexOf('yahoo.com') hahahaha -1)
&& (anch[i].href.indexOf('index.cfm') hahahaha -1)
&& (anch[i].href.indexOf('login.cfm') hahahaha -1)
&& (anch[i].href.indexOf('signup.cfm') hahahaha -1) ) {
//alert(i + " : " + anch[i].href);
anch[i].onclick = popupfunction;
}
}
}
popupinterval = setInterval(popupconvertlinks, 250);
popupoldonload = window.onload;
window.onload = function () {
popupconvertlinks();
clearInterval(popupinterval);
}
}
__________________
hatisblack at yahoo.com
|