Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > dropdown box

Reply
Thread Tools

dropdown box

 
 
earl
Guest
Posts: n/a
 
      11-19-2003
I've made this example page :
http://larsandre.mine.nu/clientside_menu.html

Depending on what choice the user makes in the dropdown menu I'd like to
show a different extension to the menu table. Can anyone recommend a good
method ? I was thinking either some kind of javascript or maybe css. Would
appreciate some input on this matter.


 
Reply With Quote
 
 
 
 
Disco Octopus
Guest
Posts: n/a
 
      11-19-2003
earl wrote:
> I've made this example page :
> http://larsandre.mine.nu/clientside_menu.html
>
> Depending on what choice the user makes in the dropdown menu I'd like
> to show a different extension to the menu table. Can anyone recommend
> a good method ? I was thinking either some kind of javascript or
> maybe css. Would appreciate some input on this matter.


You could do something like this...

* create two classes, one being display:none; the other being
display:block(or whatever);
* initialy, give the extra rows the class that displays them.
* OnChange of the dropdown list, change the style/class associated to the
row in the table.
* on load of your page, you could set all the dependant rows to hidden.

if javascript is turned off in the browsers, then all the rows will be
displayed, no matter what the menu item is current.

if CSS is not available from the browser, then all the rows will be
displayed, no matter what the menu item is current.






 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      11-20-2003
earl wrote:

> Depending on what choice the user makes in the dropdown menu I'd like to
> show a different extension to the menu table. Can anyone recommend a good
> method ? I was thinking either some kind of javascript or maybe css. Would
> appreciate some input on this matter.


http://www.evolt.org/article/Accessi...163/index.html

--
David Dorward http://dorward.me.uk/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
1 Gridview. Dropdown A is column from database, Dropdown B is column from database, Data in A and B must be from same row. anonymoushamster@gmail.com ASP .Net 2 11-07-2007 12:40 PM
ajax cascading dropdown: second dropdown disabled acadam ASP .Net 0 12-27-2006 10:59 AM
bind a dropdown in a column in a datagrid based on the dropdown value selected in another column of the datagrid. vishnu ASP .Net 1 03-25-2006 01:24 PM
Select dropdown box bleeds into Javascript dropdown menu Mike HTML 1 12-18-2003 09:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57