I have a webpage called popup.htm Is there a way to add this popup window that will popup when someone first enters the forum for special notices? Needs to set a cookie not to popup again until the person leaves the forum and returns.
I know how to do it on a htm style web page and works great. Not sure about doing it on an ASP.
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" } }