View Full Version : changing backgroundcolor


Lîm_Gravecryer
10-30-2005, 03:40 PM
Hi, i just couldnt figure this one out:

i have a table on my site for the navigation. I want the background color to change onmouseover, change back onmouseout, but keep its onmouseover-color if it has been clicked... only way i could think of was with javascript, using a variable, but this turned out to be a bit harder than i had thought, so any solution would be really helpful!! thanx in advance


-Lim

Zohar Amihud
10-31-2005, 06:33 PM
I think that after clicking a link you are moving to another page with the same navigation bar, and you want to keep the color. So, you need to use a Session variable in the server. The variable in the client page is "living" only in the page, and when you move to another page... you do NOT have it anymore.

Another thought: If you are using any kind of frames (which I do NOT recommend at all) you can "save" the variable in the static frame, but I think this is not the case here.