Results 1 to 10 of 10

Thread: script that changes site theme by dropdown list

  1. #1
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default script that changes site theme by dropdown list

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Since these various colored images appear to be background images, you could use a style sheet switcher like:

    http://www.dynamicdrive.com/dynamici...etswitcher.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Good idea by styles though it needs an extreme site make over
    i just want a once that switches images

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

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

    Code:
    <select onchange="document.body.background=this.value">
    <option value="main.jpg">Green</option>
    <option value="whatever.jpg">Blue</option>
    </select>
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    but does this work inside tables & cells ?

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

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

  7. #7
    Join Date
    Feb 2007
    Posts
    145
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Post

    you website is all messed up when i try and use preview it. Heres a screen shot. This other person has done the same thing that you have by making his website look like a computer desktop, click here. You seriously need to rethink your design to accomadate other users and bigger screen sizes, than just your own. W3C Validation.
    Last edited by Ryan Fitton; 07-18-2007 at 10:05 AM.

  8. #8
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Last edited by ryansdistrict; 07-18-2007 at 12:51 PM. Reason: s

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    i agree with u it sux by Firefox
    Firefox, and Opera, and Konqueror, and just about everything really
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Jul 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •