Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-25-2004, 06:41 PM
Acid is offline Acid

Join Date: Apr 2002
Posts: 853

Send a message via ICQ to Acid
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:
<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=5 00,toolbar=0,location=0,directories=0,status=1,scr ollbars=0,menubar=0,resizable=0,left="+placementx+ ",top="+placementy+",screenX="+placementx+",screen Y="+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>
__________________
Reply With Quote
  #2  
Old 08-29-2004, 09:10 AM
the þrox™ is offline the þrox™
Registered User

Join Date: Aug 2003
Posts: 3,739

Send a message via ICQ to the þrox™ Send a message via AIM to the þrox™
why every six hours?, unless you have guests that spend 6 hours on your site i dont think its that great of a code.
__________________



----------------------------------------
[Presents: ++]

Sigs Made: [29]
Reply With Quote
  #3  
Old 08-29-2004, 09:20 AM
the þrox™ is offline the þrox™
Registered User

Join Date: Aug 2003
Posts: 3,739

Send a message via ICQ to the þrox™ Send a message via AIM to the þrox™
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>
__________________



----------------------------------------
[Presents: ++]

Sigs Made: [29]
Reply With Quote
  #4  
Old 08-29-2004, 07:30 PM
JonM is offline JonM
Registered User

Join Date: Jun 2004
Posts: 2,156

this isn't even php this is javascript
Reply With Quote
  #5  
Old 08-29-2004, 08:41 PM
the þrox™ is offline the þrox™
Registered User

Join Date: Aug 2003
Posts: 3,739

Send a message via ICQ to the þrox™ Send a message via AIM to the þrox™
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>
__________________



----------------------------------------
[Presents: ++]

Sigs Made: [29]
Reply With Quote
  #6  
Old 08-30-2004, 07:53 AM
Acid is offline Acid

Join Date: Apr 2002
Posts: 853

Send a message via ICQ to Acid
Quote:
Originally posted by Convict
why every six hours?, unless you have guests that spend 6 hours on your site i dont think its that great of a code.
I want the popup to happen more than once a day for each user.

And who cares what your personal opinion is? LMAO

thanx for the help and all, but your opinion is not relevent.
__________________
Reply With Quote
  #7  
Old 08-31-2004, 01:20 AM
Skin is offline Skin
Registered User

Join Date: Dec 2003
Posts: 2,911

Send a message via ICQ to Skin
rofl your a jackass acid
__________________
Skin18 DevaintArt | Brushes Created by ME |

Sex, Drugs & Rock n' Roll
Reply With Quote
  #8  
Old 08-31-2004, 07:11 AM
Acid is offline Acid

Join Date: Apr 2002
Posts: 853

Send a message via ICQ to Acid
Quote:
Originally posted by Skin
rofl your a jackass acid
Yet another irrelevant comment

and its you're not your, lol
__________________
Reply With Quote
  #9  
Old 08-31-2004, 05:26 PM
the þrox™ is offline the þrox™
Registered User

Join Date: Aug 2003
Posts: 3,739

Send a message via ICQ to the þrox™ Send a message via AIM to the þrox™
lol stfu maybe you should explain it to me without getting on my a--. I even tried to help you.
__________________



----------------------------------------
[Presents: ++]

Sigs Made: [29]
Reply With Quote
  #10  
Old 08-31-2004, 08:32 PM
Acid is offline Acid

Join Date: Apr 2002
Posts: 853

Send a message via ICQ to Acid
You guys...
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -5. The time now is 06:31 PM.




Powered by vBulletin®