Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I create a link on a list/menu dropdown box in Dreamweaver 4?

Status
Not open for further replies.

myralew

Technical User
Apr 11, 2003
2
US
How can I create a hyperlink on a list/menu dropdown box in Dreamweaver 3 so that when the item is clicked a page that is hyperlinked will open in the browser window? thanks, myralew
 
What you need is a "Jump Menu" under Insert>Form Object>Jump menu

Here is the code from a simple page I knocked up.
Code:
<%@LANGUAGE=&quot;VBSCRIPT&quot; CODEPAGE=&quot;1252&quot;%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+&quot;.location='&quot;+selObj.options[selObj.selectedIndex].value+&quot;'&quot;);
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>
<form name=&quot;form1&quot;>
  <select name=&quot;menu1&quot; onChange=&quot;MM_jumpMenu('parent',this,0)&quot;>
    <option value=&quot;Page1.html&quot; selected>Item 1</option>
    <option value=&quot;Page2.html&quot;>Item 2</option>
  </select>
</form>
</body>
</html>

Cheech [Peace][Pipe]
The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top