Hi,

I would like to create a jump menu in a page I create for my Drupal 6.4. Is it possible? How do you do that?

Regards

Comments

WorldFallz’s picture

How do you do that?

generally, i start with a quick search.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

Pasargad’s picture

Soory I was not clear in my post. I did search and was not able to find any help. Let´s be more specific.

I create a fully perfect functioning Jump menu in Dreamweaver. The menu has a declaration of javascript which should be placed in head-tag:

<script type="text/javascript">
<!--
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}
//-->
</script>

Then in the body-tag you have the form with your options like this:

<form name="form" id="form">
  <select name="jumpMenu" id="jumpMenu">
    <option>Radiochannels</option>
    <option value="http://www.radio1.com">Radio 1</option>
    <option value="http://www.radio2.com">Radio 2</option>
    <option value="http://www.radio3.com">Radio 3</option>
  </select>
  <input type="button" name="go_button" id= "go_button" value="Go" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" />
</form>

I put this in Drupal but that is not working. Anyone who could give me some hints?

avskip’s picture

If you click on the word search in the first reply, it leads you to a variety of ways to do this using Drupal.