scott1964 — 2014-07-22T14:55:21-04:00 — #1
Hello ... just spent the last four hours trying to come up with a way to display a popup modal with a "first time visitor" greeting.
So the script would check if there is a cookie ... if there is, you just get the normal site ... if not, you get the "first time visitor" popup.
The ColorPop (http://coverpopjs.com/) thing was looking very promising but I could never get the Close Modal button to work.
You can see my efforts here: http://www.savagepixels.com/wti/first-time-visitor-popup-2.html
So, basically I'm clueless on this one and would appreciate any links, or guidance in this area. It doesn't sound all that hard and maybe that's why there isn't a ton of stuff out there. but I'm having difficulty coming up with a solution.
wolfshade — 2014-07-22T15:18:47-04:00 — #2
scott1964 — 2014-07-23T18:14:41-04:00 — #3
Awesome info. Thanks for your input.
scott1964 — 2014-07-29T14:49:41-04:00 — #4
I'm still working with this. The solution I had did not work in IE apparently because of "querySelectorAll" method.
It looks like I need to write this code from scratch to achieve what I need but I'm no where near saavy enough to do that without assistance. Is there any way you could get me going on this? Once I see the code, I can reverse engineer what is happening and understand it, but am nowhere near just writing it off the top of my head.
What I need is a block of code that deploys and then checks for cookies so it can identify first time site visitors. There should be a button in the popup to "dismiss" it. It also needs to work in all modern browsers including IE 8 and up.
Is this possible?
scott1964 — 2014-07-31T19:44:22-04:00 — #5
It worked just fine. There was a conflicting meta tag in there telling it to render as an earlier version of IE. Thanks again.