Click to See Complete Forum and Search --> : picking up background color from previously viewed page


brixtonboy
03-08-2003, 01:36 PM
I'm trying to create a site that can be viewed with either a while or black background. I've got the javascript that changes the background color on a page, but is their a way of the next page the user views picking up the color set on the previous one? Any hwlp greatfully received:confused:

khalidali63
03-08-2003, 01:47 PM
This,to me, seems to be a matter of design,you can give user the same background colors list on both pages,or if you have to get the previous pages bg color then you will have to pass that color to the next page and then allow user see it if required.

Khalid

pyro
03-08-2003, 01:48 PM
What you will want to do is send it along as the query string and the strip it out on your next page. For example, link to your next page like this:

<a href="mypage.htm?black">your next page</a>

and then on your mypage.htm page, you can strip the value using window.location.search.