Dropdown box

  the kopite 08:00 03 Aug 2007
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 2007

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 2007

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 2007

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 2007

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 2007

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 2007

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.

Elsewhere on IDG sites

What is ransomware and how do I protect my PC from Petya?

Microsoft Surface Studio – the artist's hands-on review

Original iPhone review

Comment mettre à jour Kodi ?