![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2007
Posts: 937
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Mar 2005
Location: Put Shoe On Head Plz
Posts: 4,575
|
iMind is a communist
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Nov 2007
Posts: 937
|
bump
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jul 2003
Posts: 2,109
|
it has to be that mac you own
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Nov 2007
Posts: 937
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Nov 2007
Posts: 937
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
Quote:
PHP Code:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Nov 2007
Posts: 937
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
where are you calling init from?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Nov 2007
Posts: 937
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Nov 2007
Posts: 937
|
it's working .. but flashes real quick, which obviously is unsuitable
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |