Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Dreamweaver Jump Menu - onclick insted of onchange

Posted on 2006-06-12
3
Medium Priority
?
1,047 Views
Last Modified: 2012-08-13
Hello,
      I am trying to create a jump menu in dreamweaver that will go to the desired page on click of the buy now logo. Currently it will go to the page when you change option that is selected. My current code is below. Does anyone have any idea how this can be done? Thank you!!

<form id="form1" name="form1">
     <table width="100%" border="0" cellspacing="4" cellpadding="0">
      <tr>
       <td width="40%">
        <select name="menu2" onchange="MM_jumpMenu('parent',this,0)">
             <option selected="selected">Select Size</option>
             <option value="www.yahoo.com">100 Count - $8.99</option>
             <option value="www.yahoo.com">200 Count - $14.99</option>
               <option value="www.yahoo.com">500 Count - $23.99</option>
             <option value="www.yahoo.com">1000 Count - $34.99</option>                              
        </select>
       </td>
       <td width="60%">
                <input type="image" name="Button1" value="go" src="images/btn_buynow.gif" border="0" alt="Buy Now" onclick="MM_jumpMenuGo('menu2','parent',0)" />
       </td>
   </tr>
   </table>
</form>
0
Comment
Question by:rudyflyer
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
ClickCentric earned 1000 total points
ID: 16891365
<form name="form1" action="#">
<select name="menu2" size="1">
               <option selected="selected">Select Size</option>
           <option value="http://www.yahoo.com">100 Count - $8.99</option>
           <option value="http://www.yahoo.com">200 Count - $14.99</option>
           <option value="http://www.yahoo.com">500 Count - $23.99</option>
           <option value="http://www.yahoo.com">1000 Count - $34.99</option>
                 </select>
               <img src="images/btn_buynow.gif" alt="Buy Now" name="image" width="32" height="32" onclick="top.document.location = document.form1.menu2.options [document.form1.menu2.selectedIndex].value; return true;" />
</form>
0
 

Author Comment

by:rudyflyer
ID: 16893412
Thank you, that works great!
0
 
LVL 10

Expert Comment

by:ClickCentric
ID: 16895738
It was surprisingly hard to do...I forgot that image-type buttons won't work with onclick to do that in that scenario.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question