Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow visitor to change background color and other CSS properties

Status
Not open for further replies.

sailingfree

Programmer
Sep 13, 2006
32
GB
Tried asking this in CSS forum but this is a server-side issue, I'm led to believe...

I'd like to allow the site visitor to select their own background color or image. How do I go about doing this? Can I do this with ASP or is this a JScript thing?

Thanks in advance....
 
Allowing the user to select their own colors is a client-side thing, probably done in javascript.

Using those values once selected and stored can be done on the server-side, by simply substituting the chosen values into the HTML. E.G.:

<span style="background-color:<%=UserChoiceBG%>;">...

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top