473,411 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

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>
</select>
Feb 23 '08 #1
1 1212
drhowarddrfine
7,435 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

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

Similar topics

0
by: vikram.cvk | last post by:
Hello Experts, Im trying to design a CSS vertical drop down menu which should have the following functionality. Home About Us | -->Overview
6
by: Adrienne | last post by:
http://www.intraproducts.com/beta/infinicall/index.asp has a drop down menu on Investor Relations. The markup and CSS are both valid, and most of the time, the menu drops down correctly. However,...
17
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If...
4
by: Laura K | last post by:
I have a drop down menu which has a list of subcategories and the initial value is "please choose a Subcategory". When the user chooses a subcategory they are taken to a new page where the drop...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: SQLjunky | last post by:
Hello, Contrary to what my screen name indicates, i'm actually quite new to SQL. Having said that, I'll get right into my problem. I'm trying to query an mssql database to return to the value...
22
by: Archanak | last post by:
Hi, I am using 2-level CSS Drop Down Menu in my perl/CGI program. here is the code. #!c:/perl/bin/perl.exe use CGI qw(:standard);
0
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of...
0
by: rahullko05 | last post by:
i have designed a menu list program in which i'm facing a problem where the last li item (white crappie) shifts down when i hover mouse pointer to just above li item (ozrack bazz) of white crappie...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.