TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Cookie for username...

Page: 1 Reply
Apr 14th 2001#1630 Report
Member since: Apr 14th 2001
Posts: 9
howdy..

A webpage that Im designing at the moment has a need for a username to be displayed in plain text in a corner of a table. I know the calls that it makes, SetCookie and GetCookie, and I downloaded a behaviour for it in DW, but I couldnt implement it. Can anyone help me? Even if getting the Username involves using a popup box, then stores the input as a cookie for the next time the user logs on. Any help would be greatly appreciated.

Also, how do I get the colured forms? Eg, instead of grey, You can make your comments form blue etc. I remember a tutorial for this, does anyone have the link?


Thanks in Advance.
Reply with Quote Reply
Apr 23rd 2001#2175 Report
Member since: Apr 19th 2001
Posts: 36
you can set cookie just like this

[code]
function setcookies(){
var exp=new Date();
var oneYearNow=exp.getTime()+(365824860*60*1000);

document.cookie="username=yoursname;expires="+exp.toGMTString();
alert(document.cookie);
}

[/code]
Reply with Quote Reply
Apr 28th 2001#2508 Report
Member since: Apr 14th 2001
Posts: 9
like what?
Reply with Quote Reply
Apr 28th 2001#2515 Report
Member since: Mar 16th 2001
Posts: 2421
elestorm
I edited your post so the code would show...
Reply with Quote Reply
Apr 29th 2001#2543 Report
Member since: Apr 14th 2001
Posts: 9
ta
Reply with Quote Reply
Apr 30th 2001#2577 Report
Member since: Apr 19th 2001
Posts: 36
thank you .

but i don't know "ta" well
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum