|
Web design and Programming Discuss website creation and other programming topics. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
Cookie time
Can someone help me with this code? I would like this popup to happen every 6 hours. I've done some searchin, but still cant figure it out.
Thanx for your help. Quote:
__________________
![]() ![]() ![]() |
#3
|
||
|
Now im not great with codeing for PHP but should this be lowercase?
<script> function PopUp(PopUpUrl){ var ScreenWidth=window.screen.width; var ScreenHeight=window.screen.height; var movefromedge=0; placementx=movefromedge; placementy=movefromedge; WinPop=window.open(PopUpUrl,""," width=355,height=500,toolbar=0,location=0,director ies=0,status=1,scrollbars=0,menubar=0,resizable=0, left="+placementx+",top="+placementy+",screenX="+p lacementx+",screenY="+placementy+","); } function CheckCookie(PopName) { var ReturnVal = ""; var PopV = PopName + "="; if (document.cookie.length > 1) { OffSet = document.cookie.indexOf(PopV); if (OffSet != -1) { OffSet += PopV.length; End = document.cookie.indexOf(";", OffSet); if (End == -1) End = document.cookie.length; ReturnVal=unescape(document.cookie.substring(OffSe t, End)); } } return ReturnVal; } function LOadIt(){ if (CheckCookie("Popped")==""){ PopUp('http://www.kushfilms.com/img/popup/SNpopup.html'); document.cookie="Popped=yes"; } } </script> |
#4
|
||
|
this isn't even php this is javascript
![]() |
#5
|
||
|
It may also be these 2 equal signs, not sure though.
<script> function PopUp(PopUpUrl){ var ScreenWidth=window.screen.width; var ScreenHeight=window.screen.height; var movefromedge=0; placementx=movefromedge; placementy=movefromedge; WinPop=window.open(PopUpUrl,""," width=355,height=500,toolbar=0,location=0,director ies=0,status=1,scrollbars=0,menubar=0,resizable=0, left="+placementx+",top="+placementy+",screenX="+p lacementx+",screenY="+placementy+","); } function CheckCookie(PopName) { var ReturnVal = ""; var PopV = PopName + "="; if (document.cookie.length > 1) { OffSet = document.cookie.indexOf(PopV); if (OffSet != -1) { OffSet += PopV.length; End = document.cookie.indexOf(";", OffSet); if (End == -1) End = document.cookie.length; ReturnVal=unescape(document.cookie.substring(OffSe t, End)); } } return ReturnVal; } function LOadIt(){ if (CheckCookie("Popped")==""){ PopUp('http://www.kushfilms.com/img/popup/SNpopup.html'); document.cookie="Popped=yes"; } } </script> |
#6
|
|||
|
Quote:
And who cares what your personal opinion is? LMAO thanx for the help and all, but your opinion is not relevent.
__________________
![]() ![]() ![]() |
#7
|
||
|
rofl your a jackass acid
|
#8
|
|||
|
Quote:
![]() ![]() and its you're not your, lol
__________________
![]() ![]() ![]() |
#10
|
||
|
You guys...
__________________
![]() ![]() ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I would like the time to say... | atholon | Web design and Programming | 15 | 08-03-2011 11:02 PM |
Age confirm cookie | Chrispy | Tech Support | 7 | 08-30-2007 03:03 AM |
Its About Time... | Uber-Pirate | Gaming Talk | 5 | 05-20-2007 11:04 PM |
My Very First Time... | Skin | Humor & Jokes | 13 | 06-12-2004 02:54 AM |
unset cookie? | BeBop | Web design and Programming | 5 | 10-05-2003 10:13 AM |