PDA

View Full Version : How to allow user to change the background....


SeanHall413
06-06-2011, 08:10 PM
Hello, I have been searching everywhere on the net to find a way to allow people to change the background color of my web page, I know simple php and advance HTML but I can seem to find a way! Plus I cant use MYSQL or anything which requires a web host! Please help!

gentleone
06-06-2011, 08:20 PM
You need a bit of JavaScript and alternate stylesheet(s). Here's a tutorial which was at the top of Google when I searched for 'CSS style switcher'
http://www.inetsolution.com/turnleft/post/CSS-Style-Switcher-A-quick-and-dirty-how-to.aspx

SeanHall413
06-06-2011, 08:21 PM
OK ill try it then.

gentleone
06-06-2011, 08:33 PM
I know simple php and advance HTML
Here's one with PHP... is better I think, because you don't have to rely on javascript to do the trick.
http://dev.eyedea.eu/samples/styleswitch-php/