PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
JS Dropdown Menu läuft nicht (SAFARI)
Beitrag
<blockquote data-quote="puur" data-source="post: 1308614" data-attributes="member: 128184"><p>Hi Leute,</p><p>ich stehe hier vor einem Problem hab ein DropdownMenu das in allen Browsern.. außer im Safari läuft. Eventuell kann ja jemand helfen: </p><p>[code]</p><p>var activateMenu = function(nav) {</p><p> if(document.all && document.getElementById(nav).currentStyle){</p><p> // only MSIE supports document.all</p><p> var navroot = document.getElementById(nav);</p><p></p><p> /* Get all the list items within the menu */</p><p> var lis=navroot.getElementsByTagName("li");</p><p> for(i=0; i<lis.length;i++){</p><p> /* If the LI has another menu level */</p><p> if(lis[i].lastChild.tagName=="ul"){</p><p> /* assign the function to the LI */</p><p> lis[i].onMouseOver = function(){</p><p> /* display the inner menu */</p><p> this.lastChild.style.display="block";</p><p> }</p><p> lis[i].onMouseOut = function(){</p><p> this.lastChild.style.display="none";</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}</p><p>window.onload=function(){</p><p> // pass the function the id of the top level UL</p><p> // remove one, when only using one menu</p><p> activateMenu('dmenu');</p><p>}</p><p>[/code]</p></blockquote><p></p>
[QUOTE="puur, post: 1308614, member: 128184"] Hi Leute, ich stehe hier vor einem Problem hab ein DropdownMenu das in allen Browsern.. außer im Safari läuft. Eventuell kann ja jemand helfen: [code] var activateMenu = function(nav) { if(document.all && document.getElementById(nav).currentStyle){ // only MSIE supports document.all var navroot = document.getElementById(nav); /* Get all the list items within the menu */ var lis=navroot.getElementsByTagName("li"); for(i=0; i<lis.length;i++){ /* If the LI has another menu level */ if(lis[i].lastChild.tagName=="ul"){ /* assign the function to the LI */ lis[i].onMouseOver = function(){ /* display the inner menu */ this.lastChild.style.display="block"; } lis[i].onMouseOut = function(){ this.lastChild.style.display="none"; } } } } } window.onload=function(){ // pass the function the id of the top level UL // remove one, when only using one menu activateMenu('dmenu'); } [/code] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
JS Dropdown Menu läuft nicht (SAFARI)
Oben