![]() |
DTML pop up help? Sessions cookies - I'm frustrated!
Sorry, my last thread wasn't named properly enough to target the right help
I have a site and I want to display a div layer on it, but only ONCE per session.. as to not annoy surfers. So basically they come on to the site, see the DIV pop up, click it or click close, and if they click close it sets a cookie, so it's not shown again I'm pulling my fucking hair out here. I tried modifying the code I found here, http://cssbeauty.com/skillshare/disc...using-cookies/ but the layer pops up, then disappears.. Any help in the right direction would be appreciated |
iMind is a communist
|
bump :helpme
|
it has to be that mac you own :1orglaugh
|
Quote:
retard. |
why not just start the session when you load the div, not when they click close..just an idea.
didnt look at the code, but maybe the onclose isnt working right or something. |
Thanks for the suggestions Alky..
Sadly my knowledge of code ends at HTML, so I'm havin a hard time doing anything with that script, was hoping there was a simple solution but doesn't seem to be |
Quote:
PHP Code:
|
hmm, perhaps it's time I take a PHP course..
Currently I'm using this PHP Code:
PHP Code:
It closes alright, but if I refresh the page it shows again :( |
where are you calling init from?
|
Quote:
onload=init() |
it's working .. but flashes real quick, which obviously is unsuitable :(
|
All times are GMT -7. The time now is 11:54 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc