If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[RESOLVED] Cookie enabled bg image??

I am working on a site that has a few user-selected background images. I am able to get them to change when the image is clicked, but when browsing to a different page on the site, the background image goes back to the default image. I am not an expert in javascript at all, so I might be totally off on what I'm trying to do. I have tried a few different ways to put a cookie on the users computer telling it that the selected image is the user's preference for the bg image. Then when they click on a different link, an onload function getting the cookie just placed on the computer will load the image they selected on the previous page.

I don't know what that did. A few changes ago the bg image was black (and still is in the body tag) but now no bg image shows up until you select one. Should I be adding some sort of onload function to getCookie?