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...
Java Script: Onklick-problem mit firefox
Beitrag
<blockquote data-quote="Angel0203" data-source="post: 1755777" data-attributes="member: 408165"><p><span style="font-family: 'Arial'"><span style="font-size: 10px">Hallo miteinander, hab ein problemchen.</span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px">ich bin gerade dabei meine internetseite zu bauen.</span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px">ich wollte in der navigation eigentlich ein "drop-down" machen,</span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px">heißt wenn ich über einen bereich fahre, ein untermenü aufklappt.</span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px">dürfte soweit eigentlich bekannt sein.</span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px">nachdem es nicht funktioniert hat und ich nach tagen keine lust mehr hatte, hab ich mir eine onklick-ähnliche notlösung gesucht, hier mal quelltext:</span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"></span></span>[HTML]<html><head><title></title></p><p><link rel="stylesheet" href="styles.css"></link></p><p></p><p><script language="JavaScript"></p><p><!--</p><p>var referA=true;</p><p>var referB=true;</p><p>function navigation(id) {</p><p>if(id==1){</p><p>if(referA){</p><p>this.list1.style.display="block";</p><p>referA=false;</p><p>}</p><p>else{</p><p>this.list1.style.display="none";</p><p>referA=true;</p><p>}</p><p>}</p><p>}</p><p>//--></p><p></script></p><p></p><p></head></p><p><body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000"></p><p></p><p><div class="navi"></p><p></p><p><div class="home"><a href=""></a></div></p><p></p><p><div class="fotos"><a href=""></a></div></p><p></p><p><div class="arbeiten"><a href="#" onclick="navigation('1')"></a></div></p><p></p><p><div class="impressum"><a href=""></a></div></p><p></p><p><div class="dropdown" id="list1" style="display:none"></p><p><div class="foto"><a href=""></a></div></p><p><div class="grafik"><a href=""></a></div></p><p><div class="web"><a href=""></a></div></p><p></div></p><p></div></p><p></p><p></body></html>[/HTML]<span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">Eigentlich funktioniert das auch ganz gut, nur im firefox irgendwie nicht. </span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">wenn ich da auf den bereich klicke tut sich nichts.</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">Nun weiß ich nicht ob ich einfach nen fehler oder so drin habe oder es an firefox liegt.</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">Es ist auch die neuste version. firefox 4.</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">Würde mich über lösungen freuen, wenn jemand eine einfache lösung (vielleicht auch mit javascript) für einen mouseover effekt hätte, wär ich auch dankbar.</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">(Zur Info: Bin kein JavaScript-Kenner <img src="/styles/default/xenforo/smilies/zwinker.gif" class="smilie" loading="lazy" alt=";)" title="Wink ;)" data-shortname=";)" />)</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black"></span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">Die Seite ist unter:</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black"></span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">zu finden.</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black"></span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black">LG</span></span></span></span></p><p><span style="font-family: 'Arial'"><span style="font-size: 10px"><span style="color: Navy"><span style="color: Black"></span></span></span></span></p></blockquote><p></p>
[QUOTE="Angel0203, post: 1755777, member: 408165"] [FONT=Arial][SIZE=2]Hallo miteinander, hab ein problemchen. ich bin gerade dabei meine internetseite zu bauen. ich wollte in der navigation eigentlich ein "drop-down" machen, heißt wenn ich über einen bereich fahre, ein untermenü aufklappt. dürfte soweit eigentlich bekannt sein. nachdem es nicht funktioniert hat und ich nach tagen keine lust mehr hatte, hab ich mir eine onklick-ähnliche notlösung gesucht, hier mal quelltext: [/SIZE][/FONT][HTML]<html><head><title></title> <link rel="stylesheet" href="styles.css"></link> <script language="JavaScript"> <!-- var referA=true; var referB=true; function navigation(id) { if(id==1){ if(referA){ this.list1.style.display="block"; referA=false; } else{ this.list1.style.display="none"; referA=true; } } } //--> </script> </head> <body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000"> <div class="navi"> <div class="home"><a href=""></a></div> <div class="fotos"><a href=""></a></div> <div class="arbeiten"><a href="#" onclick="navigation('1')"></a></div> <div class="impressum"><a href=""></a></div> <div class="dropdown" id="list1" style="display:none"> <div class="foto"><a href=""></a></div> <div class="grafik"><a href=""></a></div> <div class="web"><a href=""></a></div> </div> </div> </body></html>[/HTML][FONT=Arial][SIZE=2][COLOR=Navy] [COLOR=Black]Eigentlich funktioniert das auch ganz gut, nur im firefox irgendwie nicht. wenn ich da auf den bereich klicke tut sich nichts. Nun weiß ich nicht ob ich einfach nen fehler oder so drin habe oder es an firefox liegt. Es ist auch die neuste version. firefox 4. Würde mich über lösungen freuen, wenn jemand eine einfache lösung (vielleicht auch mit javascript) für einen mouseover effekt hätte, wär ich auch dankbar. (Zur Info: Bin kein JavaScript-Kenner ;)) Die Seite ist unter: zu finden. LG [/COLOR][/COLOR][/SIZE][/FONT] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
Java Script: Onklick-problem mit firefox
Oben