Jump to content

Easy drop down box/menu question


mat420

Recommended Posts

I need help with a drop box.  Not a button that opens sub menus but I need a drop box like this...here the drop box is dropped down

http://irt.austincc.edu/blackboard/images/dropbox_send.gif

 

the ones where u click the little arrow on the right and more options come down

 

 

now i know how to create one of those but, how do u make it so, if drop box 1 says "size 1" and drop box 2 says "color:blue" it goes to one link

 

but if one drop box says "size 1" and the other says "color:green" it goes to another link?  thanks so much guys.

Link to comment
https://forums.phpfreaks.com/topic/105534-easy-drop-down-boxmenu-question/
Share on other sites

 

 

got it!!

 

thanks people!

 

<html>

<body>

 

 

<form name="myform"><select name="obj1"><option>blah</option></select><select name="obj2"><option>blah

 

blah</option></select><input type="button" value="Go"

 

onClick="go(document.myform.obj1.value,document.myform.obj2.value)"></form>

<script type="text/javascript">

 

function go(obj1, obj2)

{

if(obj1=="blah" && obj2=="blah blah") document.location.href="http://www.go.com";

}

</script>

maybe not. this works but..its for a site that sells brochures, these brochures have many different options

 

 

if i do an "if this do that" for every option, itll take forever and get confusing. what else can i do?

 

 

these broshires have say, 3 dif thicknesses, then 3 different fold options, 3 different color options and say ...3 different size options. what can i do to make this easier?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.