View Single Post
  #7 (permalink)  
Old 08-04-06, 03:39 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
The functions seem to be in order, but you are not sending a name to the createCookie function when you call it.
This means you'll check for a cookie named "graffiti_wall", and if it's not there, create a cookie with the name undefined.
Also, I suggest that you include a value for the cookie, even if it's just a 1.
Code:
function createCookie(name,value)
{
	var date = new Date();
	date.setTime(date.getTime()+(30*1000));
	var expires = "; expires="+date.toGMTString();
	document.cookie = name+"="+value+expires+"; path=/";
}
...
createCookie('graffiti_wall',1)
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote