473,322 Members | 1,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Dynamic CSS Selection?

Hi!

I'm trying to think of a way to do something that seems like it should be
simple. Javascript struck me as the most likely way to do it but I'm open to
other approaches if someone can think of one....

I am building a website for a client and he wants to help me choose a colour
scheme he likes. He wants me to show him 8 or 10 different schemes and he
thinks he will find at least one of those acceptable.

I would like to be able to have him go to the website, which is currently
under construction, and have a drop down box from which he can choose any of
the 10 colour schemes that I am going to create. Then, depending on which
option he chooses from the drop down, I will invoke a different CSS that
will draw the pages using that colour scheme.

I'm just not sure of the best way to do this. I can create the colour
schemes and style sheets easily enough. I'm just not sure how to redraw the
page so that it uses the CSS that is appropriate for what he has chosen from
the drop down.

I think the logical place to put the drop down is at the top of the index,
which runs down the left hand side of the page. I suppose that means I need
to create a small form with the drop down and a submit button on it and put
that form in the index. (Or maybe I should just have the drop down and as
soon as he selects anything from it, redraw the page using the appropriate
CSS). But where would I put the code that redraws the page? And how would
that code look?

Can anyone point me to examples that are reasonably similar to what I want
to do?

--

Rhino
Nov 18 '07 #1
1 1090
In article <fh**********@news.datemas.de>,
"rhino" <No***********************@anonymous.comwrote:
Hi!

I'm trying to think of a way to do something that seems like it should be
simple. Javascript struck me as the most likely way to do it but I'm open to
other approaches if someone can think of one....

I am building a website for a client and he wants to help me choose a colour
scheme he likes. He wants me to show him 8 or 10 different schemes and he
thinks he will find at least one of those acceptable.

I would like to be able to have him go to the website, which is currently
under construction, and have a drop down box from which he can choose any of
the 10 colour schemes that I am going to create. Then, depending on which
option he chooses from the drop down, I will invoke a different CSS that
will draw the pages using that colour scheme.

I'm just not sure of the best way to do this. I can create the colour
schemes and style sheets easily enough. I'm just not sure how to redraw the
page so that it uses the CSS that is appropriate for what he has chosen from
the drop down.

I think the logical place to put the drop down is at the top of the index,
which runs down the left hand side of the page. I suppose that means I need
to create a small form with the drop down and a submit button on it and put
that form in the index. (Or maybe I should just have the drop down and as
soon as he selects anything from it, redraw the page using the appropriate
CSS). But where would I put the code that redraws the page? And how would
that code look?

Can anyone point me to examples that are reasonably similar to what I want
to do?
http://www.csszengarden.com/

Doesn't really require JavaScript.

--
My personal UDP list: 127.0.0.1, 4ax.com, buzzardnews.com, googlegroups.com,
heapnode.com, localhost, ntli.net, teranews.com, vif.com, x-privat.org
Nov 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: mr_burns | last post by:
hi, is it possible to change the contents of a combo box when the contents of another are changed. for example, if i had a combo box called garments containing shirts, trousers and hats, when...
0
by: starace | last post by:
I have designed a form that has 5 different list boxes where the selections within each are used as criteria in building a dynamic query. Some boxes are set for multiple selections but these list...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
0
by: pbb | last post by:
I have a web page on which I dynamically create controls based on the selection a user makes from a dropdownlist (this ddl is not dynamic). Depending on the user's selection, the controls could be...
0
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab,...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
0
by: Alexandre Bergel | last post by:
Dear colleague, Please, note that after the workshop, best papers will be selected, and a second deadline will then be set regarding preparation of the Electronic Communications of the...
1
by: jmartmem | last post by:
Greetings, I have a nagging problem with client-side dynamic dependent list boxes that perhaps someone can help me troubleshoot. I have a form with a series of dynamic dependent list boxes....
0
by: ebernon | last post by:
The Dynamic deletion of Rows and Columns within a program is frequently desired but often hard to obtain. The Help files for VB-6 contained within Excel 2002 (XP) don’t always provide the help you...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.