By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

Pulll Down menu referencing a list

P: 1
This is the code I am using at the moment for my pull down menu. It works great. I was wondering if it is possible to have the pull down menu reference a list file instead of entering each item separately like I did below. The reason is that if I make changes to the list file, it will be easier for me to maintain the pull down menu. Especially if I have the drop down code appearing on several pages on my web site.

Right now if I made a change to my links below and I have this code in three separate pages on my web site, I would have to make three separate changes. If I had my pull down menus referencing the same list file, then all I would have to do is make changes to that list file and all of my three pull down menus would reflect the changes made.

I know that there must me an answer to this question. Thanks!!

Expand|Select|Wrap|Line Numbers
  1. <select name="select15" onChange="[this.selectedIndex].value,'_blank')"" style="width: 100%;">
<option selected>MUSIC</option>
<option value="">Apple</option> 
  2. <option value="">Big Band database</option> 
  3. <option value=""">Bosnian Radio</option> 
  4. <option value=""">CHUO-FM</option> 
  5. <option value=""">Classic Movie Musicals</option> 
  6. <option value=""">Downbeat Magazine</option> 
  7. <option value=""">Drummerworld</option> 
  8. <option value=""">In A Mellow Tone</option> 
  9. <option value=""">Jazz</option> 
  10. <option value="http:/"">Jazz Review</option> 
  11. <option value="http:/"">Jazz Standards</option> 
  12. <option value=""">Popular Music</option> 
  13. <option value="http:/"">Red Hot Jazz Archive</option> 
  14. <option value=""">Songwriters Hall Of Fame</option> 
  15. <option value=""">Touche Music</option>
Feb 23 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 7,435
Not with html/css. HTML is not a programming language. You might be able to have the links get redirected on the server side, though.
Feb 23 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.