IPB

Google Frontpage Forums Unattended CD/DVD Guide
 
Reply to this topicStart new topic
> website development, hyperlinks to dropdownbox
kabucek
post Dec 10 2007, 12:18 PM
Post #1


Junior
*

Group: Members
Posts: 91
Joined: 7-August 06
Member No.: 106895
Country Flag


Hi all,

I want to create a dropdownbox with 4 selections,
and I want to create hyperlink to each of those selections.
I know I can do this with this code:
-------------------------------------------------------
<form name="AutoListBox">
<p><select name="ListBoxURL" size="1" language="javascript" onchange="gotoLink(this.form);">
<option value="URL#1.htm">Place 1 </option>
<option value="URL #2.htm">Place 2 </option>
<option value="URL#3.htm">Place 3 </option>
<option selected> -- Select to Jump -- </option>
</select></p>
<script language="JavaScript">
<!--
function gotoLink(form) {
var OptionIndex=form.ListBoxURL.selectedIndex;
parent.location = form.ListBoxURL.options[OptionIndex].value;}
//-->
</script>
</form>
----------------------------------------------------------

But this will give the down arrow next to each selection.
Is there a way to create the same thing but without that small arrow?

Thanks.
Go to the top of the page
 
+Quote Post
Idontwantspam
post Dec 10 2007, 07:17 PM
Post #2


Nerd-in-Chief
******

Group: Members
Posts: 1077
Joined: 25-February 07
From: Somewhere
Member No.: 128497
OS: Server 2008 x86
Country Flag


If i understand your question correctly...

I think the answer is no. Dropdown boxes always have an arrow next to them.
Go to the top of the page
 
+Quote Post
Sars!
post Mar 2 2008, 01:55 PM
Post #3


Junior
*

Group: Members
Posts: 70
Joined: 21-May 06
Member No.: 96901
OS: none
Country Flag


U mean like this:
http://tornupletters.com/sars/test/test.php

Here's the script:
QUOTE
<form name="AutoListBox">
<p><select name="ListBoxURL" size="4" language="javascript" onchange="gotoLink(this.form);">
<option value="link1.html">Place 1 </option>
<option value="link2.html">Place 2 </option>
<option value="link3.html">Place 3 </option>
<option selected>Select a option to jump</option>
</select></p>
</form>
<script language="JavaScript">
<!--
function gotoLink(form) {
var OptionIndex=form.ListBoxURL.selectedIndex;
parent.location = form.ListBoxURL.options[OptionIndex].value;}
//-->
</script>


Grtz,
SaRs!

This post has been edited by Sars!: Mar 2 2008, 01:56 PM
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 4th December 2008 - 11:34 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy