kanneko
06-23-2003, 09:30 AM
I need a drop down menu for my site.
I used a java script I found on a site, but i need the links to open in an other frame. I tried with the tag <option value="" target=""> and with the base target too but it doesn't work. I think I have to change something in the 1st part of the script, but i'm not really expert.....Please help me ;_;
I put here the code, so you can check better
thank you! :D
<FORM name=cs_form_name_0 method=post>
<SCRIPT language=JavaScript>
function CSURLPopupShow(formName, popupName, target) {
var popup = document[formName].elements[popupName];
if (popup.options[popup.selectedIndex].value != "")
window.open(popup.options[popup.selectedIndex].value, target);
popup.selectedIndex = 0; }
</SCRIPT>
<SELECT class=input
style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana,Geneva,Arial"
onchange="CSURLPopupShow('cs_form_name_0', 'cs_popup_name_0', '_top');"
size=1 name=cs_popup_name_0>
<option selected value="home.htm">main</option>
<option value="about.htm">about</option>
<option value="personaggi.htm">personaggi</option>
<option value="fz.htm">FZ info</option>
<option value="origin.htm">origin.htm</option>
<option value="games.htm">games</option>
</select>
</form>
I used a java script I found on a site, but i need the links to open in an other frame. I tried with the tag <option value="" target=""> and with the base target too but it doesn't work. I think I have to change something in the 1st part of the script, but i'm not really expert.....Please help me ;_;
I put here the code, so you can check better
thank you! :D
<FORM name=cs_form_name_0 method=post>
<SCRIPT language=JavaScript>
function CSURLPopupShow(formName, popupName, target) {
var popup = document[formName].elements[popupName];
if (popup.options[popup.selectedIndex].value != "")
window.open(popup.options[popup.selectedIndex].value, target);
popup.selectedIndex = 0; }
</SCRIPT>
<SELECT class=input
style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana,Geneva,Arial"
onchange="CSURLPopupShow('cs_form_name_0', 'cs_popup_name_0', '_top');"
size=1 name=cs_popup_name_0>
<option selected value="home.htm">main</option>
<option value="about.htm">about</option>
<option value="personaggi.htm">personaggi</option>
<option value="fz.htm">FZ info</option>
<option value="origin.htm">origin.htm</option>
<option value="games.htm">games</option>
</select>
</form>