Jump to content
GSForum - Segélyvonal

Jump menü


benkovics
 Share

Recommended Posts

benkovics

Van egy problémám!

Csináltam egy Jump menüt.

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
}
//-->
</script>

 

A form:

     
<select name="menu1" class="style12" onFocus="MM_jumpMenu('parent.frames[\'mainFrame\']',this,1)">
 <option>Válassz márkát</option>
 <option value="parfums/armani/armani.htm" selected>Armani</option>
 <option value="parfums/c.dior/c_dior.htm">C.Dior</option>
 <option value="parfums/cacharel/cacharel.htm">Cacharel</option>
 <option value="parfums/calvinklein/calvinklein.htm">Calvin Klein</option>
 <option value="parfums/carolinaherrera/carolinaherrera.htm">Carolina Herrera</option>
 <option value="parfums/cartier/cartier.htm">Cartier</option>
 <option value="parfums/celinedion/celinedion.htm">Celine Dion</option>
 <option value="parfums/cerruti/cerutti.htm">Cerutti</option>
 <option value="parfums/chanel/chanel.htm">Chanel</option>
 <option value="parfums/chevignon/chevignon.htm">Chevignon</option>
 <option value="parfums/chopard/chopard.htm">Chopard</option>
 <option value="parfums/cindycrawford/cindyc.htm">Cindy Crawford</option>
 <option value="parfums/clinique/clinivque.htm">Clinivque</option>
 <option value="parfums/davidoff/davidoff.htm">Davidoff</option>
 <option value="parfums/diesel/diesel.htm">Diesel</option>
 <option value="parfums/dkny/dkny.htm">Dkny</option>
 <option value="parfums/dolce&gabbana/dolceg.htm">Dolce Gabbana</option>
 <option value="parfums/dunhill/dunhill.htm">Dunhill</option>
 <option value="parfums/elizabetharden/elisabetharden.htm">Elisabeth Arden</option>
 <option value="parfums/escada/escada.htm">Escada</option>
 <option value="parfums/esprit/esprit.htm">Esprit</option>
 <option value="parfums/estéelauder/estee.htm">Estée Lauder</option>
 <option value="parfums/fendi/fendi.htm">Fendi</option>
 <option value="parfums/ferrari/ferrari.htm">Ferrari</option>
 <option value="parfums/gabriellasabatini/sabatini.htm">Gabriella Sabatini</option>
 <option value="parfums/genni/genni.htm">Genni</option>
 <option value="parfums/givenchy/givenchy.htm">Givenchy</option>
 <option value="parfums/gloriavanderbilt/gloriav.htm">Gloria Vanderbilt</option>
 <option value="parfums/gres/gres.htm">Gres</option>
 <option value="parfums/gucci/gucci.htm">Gucci</option>
 <option value="parfums/guerlain/guerlain.htm">Guerlain</option>
</select>

A gondom, hogy amikor megnyitom a lapot, nem a válassz márkát jelenik meg, hanem az elsõ választási lehetõség, az Armani "gomb". :Sír: :Sír: :Sír:

Hol hibáztam?

Link to comment
Share on other sites

benkovics

Megvan!

A "selected" volt rossz helyen! :upsz:

Link to comment
Share on other sites

arpsoft

A c.dior-nál lehet, hogy gondjaid lesznek.

Szerintem rakd át aláhúzásra a pont helyett.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...