467,163 Members | 939 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,163 developers. It's quick & easy.

Pulll Down menu referencing a list

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>
Feb 23 '08 #1
  • viewed: 1053
1 Reply
Expert 4TB
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.

Similar topics

reply views Thread by vikram.cvk@gmail.com | last post: by
6 posts views Thread by Adrienne | last post: by
4 posts views Thread by Laura K | last post: by
4 posts views Thread by TycoonUK | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.