SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    allowing users to change web site theme

    Hi

    How do i go about allowing users to my website to be able to have the flexibility to change the website color/theme across the whole site during their visit?

    Does anyone have any experience in this? Any advice, articles would be most appreciated...

    Thanks

  2. #2
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    788
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have this in my own photosite (www.francesdelrio.com/photoblog); it might be simpler than what you're looking for (I just change bg-color and font-colors, but of course you can put whatever you want in the different stylesheets..) there are JS plugins for this...

    I got mine from here,
    http://www.dynamicdrive.com/dynamici...etswitcher.htm

    but if you search for something like "html switch page theme" you might find other ones (might find better ones.. I did this about four years ago.. today I probably would look for a jQuery solution..)

    HTH...

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by maya90 View Post
    I have this in my own photosite (www.francesdelrio.com/photoblog); it might be simpler than what you're looking for (I just change bg-color and font-colors, but of course you can put whatever you want in the different stylesheets..) there are JS plugins for this...

    I got mine from here,
    Dynamic Drive DHTML Scripts- Style Sheet Switcher (v1.1)

    but if you search for something like "html switch page theme" you might find other ones (might find better ones.. I did this about four years ago.. today I probably would look for a jQuery solution..)

    HTH...
    Thanks very much for your help this is exactly what i am looking for! You have given me enough info to go and learn and find a solution for my project.

    Thank you

  4. #4
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You could do something as simple as have links and use jQuery so that on click of said link, the corresponding stylesheet is attached for the theme using the jQuery html function.

    If you are interested in this solution, I can show you some sample code

  5. #5
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    788
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If you are interested in this solution, I can show you some sample code
    actually I would like to see the code.... ;~)

    thank you...

  6. #6
    SitePoint Enthusiast AlexHedley's Avatar
    Join Date
    Dec 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've recently added a tutorial I read in a magazine that I amended for my own use, might be helpful

    http://alexhedley.com/tutorials/themeswitcher.asp
    Alex Hedley
    TechHelp Team Leader
    599CD.com


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
  •