stuu
14 Aug 2006, 12:13 PM
Hi all,
Right I'm developing a page at the moment, let's say for fun, that uses some of the new Yahoo UI stuff. I have a login "box" that the user can choose to hide if they want to. When they click the close icon, it nicely animates to a closed or hidden position. Click again and it slides open. Nice. Doesn't work in IE but i've catered for that.
What i need to do is write a cookie that will remember the user's choice each time the page is refreshed, otherwise it's kind of pointless. I've never written a cookie before and am a bit simple in the ways of Javascript. Any ideas what i need to do?
I'm guessing i need to find the relevant id and it's state and then record it in the cookie. But how?
Many thanks.
Right I'm developing a page at the moment, let's say for fun, that uses some of the new Yahoo UI stuff. I have a login "box" that the user can choose to hide if they want to. When they click the close icon, it nicely animates to a closed or hidden position. Click again and it slides open. Nice. Doesn't work in IE but i've catered for that.
What i need to do is write a cookie that will remember the user's choice each time the page is refreshed, otherwise it's kind of pointless. I've never written a cookie before and am a bit simple in the ways of Javascript. Any ideas what i need to do?
I'm guessing i need to find the relevant id and it's state and then record it in the cookie. But how?
Many thanks.