I am trying to create a basic javascript that shows milage between severag areas, similar to what you find on the rear road atlas.
I have tried and failed to create anything, i just think i am total useless at understanding javascript.

The basic concept is this image attached.

There would be a drop down box that lists the destinations and another with the same but would be departure.
When a person chooses example: Butte >>> Kalipsell it would show 238 and vice versa.
it seems a simple thing to do but cant get my head around it all.
Could someone create a simple script, say 3 destinations and i will fill the rest in and see if i can understand what i am doing and then ask for additional help if required?

jmrker

01-23-2012, 03:18 AM

Try this, but if you add more cities, make sure you understand the layout and how it should be altered. :eek: