View Full Version : How Do i Make A Drop Down Menu Link Open In a Iframe
lMattz
22-10-2005, 07:59 AM
Heres your basic code:
<form><select name=select size="1"
style="background-color:COLORHERE;
font size:#pt; font-family:FONTHERE;
color:COLORHERE"
onchange="location.href=
(form.select.options[form.select.selectedIndex].value)">
<option value="URL">page link</option>
<option value="URL">page link</option>
<option value="URL">page link</option>
</select></form>
But how could i get that the links to pen in a iframe instead of a new window or same window?
Sygon
22-10-2005, 10:32 AM
<form><select name=select size="1"
style="background-color:COLORHERE;
font size:#pt; font-family:FONTHERE;
color:COLORHERE"
onchange="location.href=
(form.select.options[form.select.selectedIndex].value)">
<option value="URL">page link</option>
<option value="URL">page link</option>
<option value="URL">page link</option>
</select></form>
im not 100% sure but maybe
<form><select name=select size="1"
style="background-color:COLORHERE;
font size:#pt; font-family:FONTHERE;
color:COLORHERE"
onchange="location.href=
(form.select.options[form.select.selectedIndex].value)">
<option value="URL" target="iframename">page link</option>
<option value="URL" target="iframename">>page link</option>
<option value="URL" target="iframename">>page link</option>
</select></form>
splintercell!
22-10-2005, 12:10 PM
the only way I have ever found is to use a submit button tell it to target the select to the iframe..
tleftye
22-10-2005, 12:16 PM
like sygon say add target="your frame name" behind the links
lMattz
23-10-2005, 08:34 AM
No it doesnt work what about 1 with a go button?
Sygon
23-10-2005, 08:44 AM
What do you mean?
RYANNNNN
23-10-2005, 09:11 AM
Drop down menus are ugly, unless you have a customised script.
lMattz
23-10-2005, 09:34 AM
the only way I have ever found is to use a submit button tell it to target the select to the iframe..
Like what Splinter said xD.
OR the code for a menu like habbox's. I love there one :D
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.