Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
State Selection Script
Old 09-02-2005, 01:37 PM State Selection Script
croix's Avatar
Skilled Talker

Posts: 87
Name: Colin Roy
Location: Dallas, TX
Trades: 0
I am redesigning a webpage, and I would like to add a State Selection box, that will open a new page depending on the state chosen from a pull down menu.

I added the form tag and the pull-down menu, and entered all the state abbreviations into the label field.

I think that next i should add value to the labels, i.e. TX is the label, TX.htm is the value.

How do I make the selection redierect to that page (its in the same directory) once the state is selected?

or does anyone have a state selection script, or know where to find one? Or a tutorial for one?

I am using Dreamweaver MX, and I havent been able to find help in the help topics, and google isnt giving me the results i want.. I probably just dont know how to phrase my question to get the right results.

Thanks!
colin
colin@sliquid.com
Sliquid IT - AIM
croix is offline
Reply With Quote
View Public Profile Visit croix's homepage!
 
 
Register now for full access!
Old 09-02-2005, 02:29 PM
mikeroq's Avatar
Skilled Talker

Posts: 92
Name: Mike Roq
Location: Lakewood, CO
Trades: 1
Place this code into your header:
Code:
<script language="javascript" type="text/javascript" >
<!-- hide

function go(x){

if (document.form1.jumpmenu.value != "null") {
	document.location.href = x
	}
}

-->
</script>
Then this code is the actual menu
Code:
<form name="form1">
        <select name="jumpmenu" onChange="go(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
          <option>Jump to...</option>
          <option value=http://mikeroq.com/>mikeroq.com</option>
          <option value=http://digg.com>digg.com</option>
          <option value=http://google.com>google</option>
         
        </select>
      </form>
Hope this helps you
__________________
CodingHub.com
mikeroquemore.com
mikeroq is offline
Reply With Quote
View Public Profile Visit mikeroq's homepage!
 
Old 09-06-2005, 12:28 PM
croix's Avatar
Skilled Talker

Posts: 87
Name: Colin Roy
Location: Dallas, TX
Trades: 0
Sweet!

thanks, it works perfectly

colin
croix is offline
Reply With Quote
View Public Profile Visit croix's homepage!
 
Reply     « Reply to State Selection Script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21766 seconds with 12 queries