Dr. Web
03-05-2002, 09:40 PM
ha! suckered you in with an easy question! :evilsnik:
okay, the questions are:
How do I change the bgcolor attribute of the body tag, lets say on click of a a href?
How do I change the background IMAGE src to something different onClick of, lets say a href?
So far I can change just about everything else onclick, without reloading the page (see www.noahgrey.com for the server side version of my quest). I am aware that for N4.7 users I will have to reload the page, but I am ok with that since I'll use server side code to ultimately pass different code to the browser based on type.
Also, does anyone know if Netscape6 will reflow a page?
The idea I have is to subtly change the color scheme (CSS and bg images) of the page over time, and to pass the current color scheme from page to page while the user is surfing through the site. I have most of it down, but as a nice touch I'd like to change the body background slightly with each color change as well.
I know I can put the whole page in a table and change the background of that, but some of my DHTML effects will not render in N4.7 if they are placed in tables. (dont ask me, just a know issue :D )
I also know that I could place the whole shea-bang inside a div and set the bg of that. If thats my only option, I can deal with that as well.
okay, the questions are:
How do I change the bgcolor attribute of the body tag, lets say on click of a a href?
How do I change the background IMAGE src to something different onClick of, lets say a href?
So far I can change just about everything else onclick, without reloading the page (see www.noahgrey.com for the server side version of my quest). I am aware that for N4.7 users I will have to reload the page, but I am ok with that since I'll use server side code to ultimately pass different code to the browser based on type.
Also, does anyone know if Netscape6 will reflow a page?
The idea I have is to subtly change the color scheme (CSS and bg images) of the page over time, and to pass the current color scheme from page to page while the user is surfing through the site. I have most of it down, but as a nice touch I'd like to change the body background slightly with each color change as well.
I know I can put the whole page in a table and change the background of that, but some of my DHTML effects will not render in N4.7 if they are placed in tables. (dont ask me, just a know issue :D )
I also know that I could place the whole shea-bang inside a div and set the bg of that. If thats my only option, I can deal with that as well.