View Full Version : script that changes site theme by dropdown list

07-17-2007, 03:01 PM
hello please check my site http://RyansDistrict.com
I want to allow members to change the theme by drop down list
please i want to allow the drop down list to change the images to change the site color like
look at the task bar let is say that its madeup of an image called blue.gif i want the script to switch this image to another by drop down list to green.gif or so
i hope i was clear
Plz can u help me

07-17-2007, 03:19 PM
Since these various colored images appear to be background images, you could use a style sheet switcher like:


07-17-2007, 06:56 PM
Good idea by styles though it needs an extreme site make over
i just want a once that switches images

07-17-2007, 09:20 PM
What you have there (I looked at your source code) is pretty non-standard. So, this non-standard solution will work:

<select onchange="document.body.background=this.value">
<option value="main.jpg">Green</option>
<option value="whatever.jpg">Blue</option>

Just make sure to change whatever.jpg to the one for the blue themed image. You can add other options as well, if you like.

07-18-2007, 06:23 AM
but does this work inside tables & cells ?

anyway what is the way to modify several images together not just one image :)

07-18-2007, 08:05 AM

Ryan Fitton
07-18-2007, 09:52 AM
you website is all messed up when i try and use preview it. Heres a screen shot (http://h1.ripway.com/ryanfitton/screenshot001.png). This other person has done the same thing that you have by making his website look like a computer desktop, click here (http://www.rambo.id.uw.edu.pl/). You seriously need to rethink your design to accomadate other users and bigger screen sizes, than just your own. W3C Validation (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.ryansdistrict.com). :mad:

07-18-2007, 12:49 PM
i agree with u it sux by Firefox
Try to browse it by IE then looks fine
anyways it need major recoding
btw if u can help me with the scrolling stuff in FF i would be glad

07-18-2007, 12:59 PM
i agree with u it sux by FirefoxFirefox, and Opera, and Konqueror, and just about everything really :p

07-18-2007, 01:02 PM
i agree
It only looks fine in the rubbish browser IE
Am always glad for your help in fixing it in other browsers and feedbacks are always welcome