WebSite X5Help Center

 
 M.
M.
User

Make A Jump Menu  en

Author: M.
Visited 2018, Followers 2, Shared 19  
Tags: jump,menu

Hi. How can I insert a jump menu on a pages of my site? In old version X5 evo 8 I am done the next: 1. Insert HTML code choose a page 1 2 3 2. Add to the x5engine.js in program directory the next: 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; } } In Evo 8 everything was OK, but when I update to Evo 9 my jump menu is not working. What can I do? Thanks.

Posted on the
2 ANSWERS
 M.
M.
User
Author

1. Insert HTML code "

<form id="form1">

        <select name="jumpMenu1" id="jumpMenu1">

          <option value="">choose a page</option>

          <option value="1.html">1</option>

          <option value="2.html">2</option>

          <option value="3.html">3</option

        <input type="button" name="go_button" id= "go_button" value="GO" onclick="MM_jumpMenuGo('jumpMenu1','parent',1)" />

      </form>

Read more
Posted on the from M.
Luca S.
Luca S.
User

Hello,

You should recreated your HTMl code.

we suggest of insert the link to  function MM_jumpMenuGo(objId,targ,restore) with file js that you have inserted. For make them you should click on "property page" -> Tab Expert and insert the link js in the section "custom codeto insert:Before the </HEAD>tag"

After you can insert at the past 3 an object HTMl code with inserting the attachment to code an you can write the HTMl code with tag <form> and call tojavascript function.

Read more
Posted on the from Luca S.