Chockee
You can mess with this one it is set for an entry pop behind but you can change the values for what you want it to do.
Brad
Add this to your html page
The Code
And Upload this to the server the cookie will reset when you close your browser
___________________________
function openpopup(){
var popurl=”http://www.your-site here.com/popup.htm”
winpops=window.open(popurl,””,”width=800,height=550,toolbar=1,location=1,directories=0,status=1,scrollbars=1,menubar=1,resizable,”)
window.focus();
}
function get_cookie(Name) {
var search = Name + “=”
var returnvalue = “”;
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(“;”, offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie(‘poppedup’)==”){
openpopup()
document.cookie=”poppedup=yes”
}
}
loadornot()