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="window.open(this.options[this.selectedIndex].value,'_blank')"" style="width: 100%;">
<option selected>MUSIC</option>
<option value="http://www.apple.com/">Apple</option> 
  2. <option value="http://www.nfo.net/">Big Band database</option> 
  3. <option value="http://www.ottawacarsija.com/"">Bosnian Radio</option> 
  4. <option value="http://www.chuo.fm"">CHUO-FM</option> 
  5. <option value="http://www.classicmoviemusicals.com"">Classic Movie Musicals</option> 
  6. <option value="http://www.downbeat.com"">Downbeat Magazine</option> 
  7. <option value="http://www.drummerworld.com"">Drummerworld</option> 
  8. <option value="http://www.inamellowtone.blogspot.com/"">In A Mellow Tone</option> 
  9. <option value="http://www.jazz.com/"">Jazz</option> 
  10. <option value="http:/www.jazzreview.com/"">Jazz Review</option> 
  11. <option value="http:/www.jazzstandards.com/"">Jazz Standards</option> 
  12. <option value="http://www.musicweb-international.com/RiseandFall/index.htm"">Popular Music</option> 
  13. <option value="http:/www.redhotjazz.com/"">Red Hot Jazz Archive</option> 
  14. <option value="http://www.songwritershalloffame.org/"">Songwriters Hall Of Fame</option> 
  15. <option value="http://www.touchemusic.se/"">Touche Music</option>
</select>
Feb 23 '08 #1
Share this Question
Share on Google+
1 Reply


drhowarddrfine
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.