Forum Moderators: mack

Message Too Old, No Replies

Looking for javascript/html help

Newbie looking for javascipt/pull down menu help

         

jdferguson

4:50 am on Aug 6, 2007 (gmt 0)

10+ Year Member



I am looking for some html pointers on how to build a few pulldown menus for a web site I am building for the readers of the small town paper I am working for. I have no html background, save for ebay and a few basic web pages.

The idea is that our town is considering impact fees and I want to explain to my readers how much their proposed project could cost them.

There are several different areas that make up the fee and a sliding scale for several of them.

I want to build a site with build several pull down menus so readers can choose from the menu item that suits their project.

There would be several menus and I want a button at the bottom that would add up the fees and display them.

Each menu would have a number/value assigned to it depending on the size/type of the building being built.

I understand how to build a simple menu that links to websites, but not how to use a pull down menu to calculate prices. I also need a null value for at least one type, affordable housing.

I've pieced together an example below of what I am trying to do.

Menu # 1 Police

<center>
<form name="form">
<select name="site" size=1>
<option value="">Type
<option value="1,000">Residential
<option value="1200">Commerical smaller than 10,000 sq feet
<option value="1600">Commerical larger than 10,000 sq feet
</select>

Menu # 2 Fire

<center>
<form name="form">
<select name="site" size=1>
<option value="">Type
<option value="1100">Residential
<option value="1200">Commerical smaller than 10,000 sq feet
<option value="1600">Commerical larger than 10,000 sq feet
</select>

After the menus (7 in all)
I'd need a button to add the values from above and calculate them in a box below. (the fee could range into tens of millions for very large projects.)

Any help is appreciated. I am using HTML tutorials but not seeing anything on how to hand code such a web site.

Best,

Joe