wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Toggle Links Upon Dropdown Menu Selection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Toggle Links Upon Dropdown Menu Selection" Watch "Toggle Links Upon Dropdown Menu Selection" New topic
Author

Toggle Links Upon Dropdown Menu Selection

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have figured out a JavaScript that goes to different links upon users' selection from a dropdown menu (see below). But, what I really want is to put the links behind an image instead embedding links in the <option ...> tags inside the dropdown <selection ....> tag.

That is to say, I would like the in the statment to change upon menu selection. What should I do to achieve it? Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61202
    
  66

Well, change it the way you want in the onchange handler. Where's your confusion?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Well, I would like to create a dropdown menu in the first <td> cell "without" the value attribute in each of those <option ....> tags. Then, I would like the <a href="....."></a> to toggle to different links behind the image that I put in the second <td> cell.


JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Let me answer my own question. The answer is that a reference must be established.
 
Consider Paul's rocket mass heater.
 
subject: Toggle Links Upon Dropdown Menu Selection