PDA

View Full Version : help :-) pop-up cookie counter



X_r
Sep 2nd, 2003, 06:14 PM
ive recently redesigned my site and all of the pages are bog-standard html, but... i want to record how many visits im getting and show a pop-up on the first page :) (i usually use PHP/ASP/CF for counters)

so im trying to kill two birds with one stone ;) basically, i need some javascript that sets a cookie and opens a pop-up, then looks to see if there is a cookie on the next visit before showing the pop-up again... pseudo:


if cookierecord is not set {
open pop-up (which will show promotion advert & insert all browser/visit stats into mysql db)
set cookierecord}
else {
do nothing
}

thanks in advance :)

X_r
Sep 2nd, 2003, 07:45 PM
anyone? :confused: