Dropdown box

  the kopite 08:00 03 Aug 07
Locked

Hi Guys I am puting a Drop down box on a website. Trouble is sometimes it drops UP/// other times one box will drop down but the other boxes go up. Hope this makes sense. Any ideas please Thanks Kopite

  adamcoppard 08:32 03 Aug 07

A link?
What code are you using to do this.
What browser are you looking at the drop downs in.
Is it a drop-down menu like
Please select your country: United Kingdom \/
*drop down*

  adamcoppard 08:32 03 Aug 07

A link?
What code are you using to do this.
What browser are you looking at the drop downs in.
Is it a drop-down menu like
Please select your country: United Kingdom \/
*drop down*

  adamcoppard 08:32 03 Aug 07

A link?
What code are you using to do this.
What browser are you looking at the drop downs in.
Is it a drop-down menu like
Please select your country: United Kingdom \/
*drop down*

  the kopite 08:46 03 Aug 07

Hi Guys I am using browsers IE7 and Firefox. The Code is
<Head> <!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</script>
<body><form name="Links" >
<select name="max" onChange="SelectLink()">
<option value="#">none selected</option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
</form>
Thanks Kopite

  rachwelian 16:09 03 Aug 07

Yeah, that box should always drop down... unless of course it's really close to the bottom of the screen, in which case it'll 'drop' up...

You also need to close your <head> before you start your <body>

And you need to open your <script> before you can close it...

  the kopite 16:45 03 Aug 07

Thank you rachwellan. I messed up with the code on two of the boxes sorted now so I will click resolved As for the head on the web page it is closed I just did not put it closed when I typed the code in lol Yours Kopite

This thread is now locked and can not be replied to.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

1995-2015: How technology has changed the world in 20 years

Alex Chinneck’s giant ice cube Christmas tree at Kings Cross

Apple rumours & predictions 2017: The iPhone 8, new iPads, and everything else you should expect fr7…