WebSite X5Help Center

 
 M.
M.
User

Make A Jump Menu  en

Autor: M.
Visitado 2272, Seguidores 2, Compartilhado 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.

Publicado em
2 RESPOSTAS
 M.
M.
User
Autor

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>

Ler mais
Publicado em de 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.

Ler mais
Publicado em de Luca S.