Hallo,
Ich benötige für eine neue Page die ich mir basteln möchte eine Hypelinkmenüleiste. Sie soll einen Mouseovereffekt haben - soll heißen wenn man mit der Mouse drüber geht das sich ein Fenster darunter öffnet in dem weitere Link meiner Seite untergebracht werden können.Gib es soetwas irgendwo fertig als Datei oder Script zum downloaden?
Puh ich hoffe ihr habt verstanden was ich meine.
Würde mich über Hilfe sehr freuen.
MfG hunny
Hyperlinkleiste - Hilfe erbeten
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress, WoltLab & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
Meinst du sowas wie bei http://www.mitteldeutschland.com oder http://www.t-mobile.de (jeweils oben)?
-
Zitat von Zwirni
Meinst du sowas wie bei http://www.mitteldeutschland.com oder http://www.t-mobile.de (jeweils oben)?
Genau das meine ich

-
Dann kopiers dir doch
Hab gerad kein Beispiel parat, aber ich find sowas am einfachsten und sichersten mit <ul>-Aufzählungspunkten als runterklappende Menüs. Diese klappen nicht wirklich runter sondern werden nur über die css-Eigenschaft visible sichtbar geschaltet (onmouseover oder onclick) oder abgeschaltet (onmouseout). -
Hi
hilft dir evtl. sowas weiter?
Einfaches-Beispiel
Code
Alles anzeigen<form> <fieldset> <select name="select"> <optgroup label="Italienische Gerichte"> <option>Pizza</option> <option>Tortelloni</option> <option>Bifsteca</option> </optgroup> <optgroup label="Deutsche Gerichte"> <option selected="selected">Pfannkuchen</option> <option>Tafelspitz</option> <option>Fischstäbchen</option> </optgroup> <optgroup label="Süßes" disabled="disabled"> <option>Schokoriegel</option> <option>Sahneeis</option> <option>Kaugummi</option> <option>Pfefferminz</option> </optgroup> </select> </fieldset> < /form>Und das was du eigentlich möchtest geht dann so
Code
Alles anzeigen<style type="text/css"> <!-- #slidemenu { position:absolute; left:-130px; width:140px; top:80px; background-color:#99CCFF; border:none; } td.menu { font:11px/18px Verdana; } --> </style> <script type="text/javascript"> <!-- var ns4 = document.layers?1:0; var dom = document.getElementById?1:0; function slideRight() { if(dom) { menu = document.getElementById("slidemenu").style; leftend = -2; rightend = -117; if(parseInt(menu.left) < leftend) { menu.left = parseInt(menu.left)+4; getup(); } } else if(ns4) { menu = document.layers["slidemenu"]; leftend = 122; rightend = 8; if(menu.left < leftend) { menu.left+=4; getup(); } } } function getup() { if(window.back_timer) clearTimeout(back_timer); out_timer = setTimeout("slideRight()",10); } function slideLeft() { if(dom && (parseInt(menu.left) > rightend)) { menu.left = parseInt(menu.left)-4; shut(); } else if(ns4 && (menu.left > rightend)) { menu.left-=4; shut(); } } function shut() { if(window.out_timer) clearTimeout(out_timer); back_timer = setTimeout("slideLeft()",10); } //--> </script> </head> <body bgcolor="#CCFFFF"> <script type="text/javascript"> <!-- if(dom) document.write('<div id="slidemenu" style="position:absolute; left:-118px; top:80px;" onMouseover="slideRight()" onMouseout="slideLeft()">'); else if(ns4) document.write('<layer id="slidemenu" onMouseover="slideRight()" onMouseout="slideLeft()">'); var ref = new Array(); ref[0]='[url='datei1.html']Erster Link[/url]'; ref[1]='[url='datei2.html']Zweiter Link[/url]'; ref[2]='[url='datei3.html']Dritter Link[/url]'; ref[3]='[url='datei4.html']Vierter Link[/url]'; ref[4]='[url='datei5.html']Fünfter Link[/url]'; ref[5]='[url='datei6.html']Sechster Link[/url]'; document.writeln('<table border="1" cellpadding="0" cellspacing="0" width="142" height="130"><td class="menu">' + ref[0] + '</td><td rowspan="6" align="center" width="22" bgcolor="#99CCFF">[b]M e n ü[/b]</td></tr>'); for (i = 1; i < ref.length; i++) { document.writeln('<tr><td class="menu">' + ref[i] + '</td></tr>'); } document.write('</table>'); if(dom) document.write('</div>'); else document.write('</layer>'); //--> </script> [b]Überfahren Sie bitte mit dem Mauskursor das Menü.[/b] </body> </html>Grüße
K a Y a S
-
Hallo,
der zweite Code ist beinahe genau das was ich suche!
Grüße hunny -
Oder du machst es so wie Schwabenpfeil auf der neuen Startseite... das du ne überschrift hast
und daneben ist ein pfeil zum aufklappen und zuklappen! -
Hallo Hunny
habe jetzt bei mit nichts gefunden, was deinen Wünschen entspricht.
Aber evtl. kann du unter dem folgenden Link etwas finden.
ich glaube das "Zapatec DHTNL Menu" ist das was du suchst.
http://hotscripts.com/JavaScript/Scr…enus/index.html
Ansonsten suche ich mal bei mir weiter.

Hier habe ich noch ne Seite mit Tuts evtl. hilft dir das auch weiter
http://www.phpforum.de/tutorials/inde…n&rubrik=002008
Grüße
K a Y a S
-
So Hunny, ich glaube jetzt haben wir es??!!
(ist nicht von mir, selbst im Netz gefunden)
Code
Alles anzeigen<style type="text/css"> #menuBar { background-color: #c0c0c0; border: 2px solid; border-color: #f0f0f0 #808080 #808080 #f0f0f0; color: #000000; font-size: 1pt; padding: 4px 2px 4px 2px; text-align: left; width: 80%; } a.menuButton, a.menuButtonActive { background-color: transparent; border: 1px solid #c0c0c0; color: #000000; cursor: default; font-family: "MS Sans Serif", Arial, Tahoma, sans-serif; font-size: 8pt; font-style: normal; font-weight: normal; margin: 1px; padding: 2px 6px 2px 6px; position: relative; left: 0px; top: 0px; text-decoration: none; } a.menuButton:hover { background-color: transparent; border-color: #f0f0f0 #808080 #808080 #f0f0f0; color: #000000; } a.menuButtonActive, a.menuButtonActive:hover { background-color: #a0a0a0; border-color: #808080 #f0f0f0 #f0f0f0 #808080; color: #ffffff; left: 1px; top: 1px; } .menu { background-color: #c0c0c0; border: 2px solid; border-color: #f0f0f0 #808080 #808080 #f0f0f0; padding: 0px; position: absolute; text-align: left; visibility: hidden; } a.menuItem { background-color: transparent; color: #000000; cursor: default; display: block; font-family: "MS Sans Serif", Arial, Tahoma,sans-serif; font-size: 8pt; font-style: normal; font-weight: normal; margin: 0px; padding: 2px; padding-left: 12px; padding-right: 16px; text-decoration: none; white-space: nowrap; } a.menuItem:hover { background-color: #000080; color: #ffffff; } .menuItemSep { border-bottom: 1px solid #f0f0f0; border-top: 1px solid #808080; margin: 3px 4px 3px 4px; } </style> <script type="text/javascript"> // Determine browser and version. function Browser() { var ua, s, i; this.isIE = false; // Internet Explorer this.isNS = false; // Netscape this.version = null; ua = navigator.userAgent; s = "MSIE"; if ((i = ua.indexOf(s)) >= 0) { this.isIE = true; this.version = parseFloat(ua.substr(i + s.length)); return; } s = "Netscape6/"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = parseFloat(ua.substr(i + s.length)); return; } // Treat any other "Gecko" browser as NS 6.1. s = "Gecko"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = 6.1; return; } } var browser = new Browser(); // Global variable for tracking the currently active button. var activeButton = null; // Capture mouse clicks on the page so any active button can be // deactivated. if (browser.isIE) document.onmousedown = pageMousedown; if (browser.isNS) document.addEventListener("mousedown", pageMousedown, true); function pageMousedown(event) { var el; // If there is no active menu, exit. if (!activeButton) return; // Find the element that was clicked on. if (browser.isIE) el = window.event.srcElement; if (browser.isNS) el = (event.target.className ? event.target : event.target.parentNode); // If the active button was clicked on, exit. if (el == activeButton) return; // If the element clicked on was not a menu button or item, close the // active menu. if (el.className != "menuButton" && el.className != "menuItem" && el.className != "menuItemSep" && el.className != "menu") resetButton(activeButton); } function buttonClick(button, menuName) { // Blur focus from the link to remove that annoying outline. button.blur(); // Associate the named menu to this button if not already done. if (!button.menu) button.menu = document.getElementById(menuName); // Reset the currently active button, if any. if (activeButton && activeButton != button) resetButton(activeButton); // Toggle the button's state. if (button.isDepressed) resetButton(button); else depressButton(button); return false; } function buttonMouseover(button, menuName) { // If any other button menu is active, deactivate it and activate this one. // Note: if this button has no menu, leave the active menu alone. if (activeButton && activeButton != button) { resetButton(activeButton); if (menuName) buttonClick(button, menuName); } } function depressButton(button) { var w, dw, x, y; // Change the button's style class to make it look like it's depressed. button.className = "menuButtonActive"; // For IE, set an explicit width on the first menu item. This will // cause link hovers to work on all the menu's items even when the // cursor is not over the link's text. if (browser.isIE && !button.menu.firstChild.style.width) { w = button.menu.firstChild.offsetWidth; button.menu.firstChild.style.width = w + "px"; dw = button.menu.firstChild.offsetWidth - w; w -= dw; button.menu.firstChild.style.width = w + "px"; } // Position the associated drop down menu under the button and // show it. Note that the position must be adjusted according to // browser, styling and positioning. x = getPageOffsetLeft(button); y = getPageOffsetTop(button) + button.offsetHeight; if (browser.isIE) { x += 2; y += 2; } if (browser.isNS && browser.version < 6.1) y--; // Position and show the menu. button.menu.style.left = x + "px"; button.menu.style.top = y + "px"; button.menu.style.visibility = "visible"; // Set button state and let the world know which button is // active. button.isDepressed = true; activeButton = button; } function resetButton(button) { // Restore the button's style class. button.className = "menuButton"; // Hide the button's menu. if (button.menu) button.menu.style.visibility = "hidden"; // Set button state and clear active menu global. button.isDepressed = false; activeButton = null; } function getPageOffsetLeft(el) { // Return the true x coordinate of an element relative to the page. return el.offsetLeft + (el.offsetParent ? getPageOffsetLeft(el.offsetParent) : 0); } function getPageOffsetTop(el) { // Return the true y coordinate of an element relative to the page. return el.offsetTop + (el.offsetParent ? getPageOffsetTop(el.offsetParent) : 0); } </script> <div id="menuBar" ><a class="menuButton" href="" onclick="return buttonClick(this, 'fileMenu');" onmouseover="buttonMouseover(this, 'fileMenu');" >File</a ><a class="menuButton" href="" onclick="return buttonClick(this, 'editMenu');" onmouseover="buttonMouseover(this, 'editMenu');" >Edit</a ><a class="menuButton" href="" onclick="return buttonClick(this, 'viewMenu');" onmouseover="buttonMouseover(this, 'viewMenu');" >View</a ><a class="menuButton" href="" onclick="return buttonClick(this, 'toolsMenu');" onmouseover="buttonMouseover(this, 'toolsMenu');" >Tools</a ><a class="menuButton" href="" onclick="return buttonClick(this, 'optionsMenu');" onmouseover="buttonMouseover(this, 'optionsMenu');" >Options</a ><a class="menuButton" href="" onclick="return buttonClick(this, 'helpMenu');" onmouseover="buttonMouseover(this, 'helpMenu');" >Help</a ></div> <div id="fileMenu" class="menu"> [url='blank.html']File Menu Item 1[/url] [url='blank.html']File Menu Item 2[/url] [url='blank.html']File Menu Item 3[/url] <div class="menuItemSep"></div> [url='blank.html']File Menu Item 4[/url] [url='blank.html']File Menu Item 5[/url] <div class="menuItemSep"></div> [url='blank.html']File Menu Item 6[/url] </div> <div id="editMenu" class="menu"> [url='blank.html']Edit Menu Item 1[/url] <div class="menuItemSep"></div> [url='blank.html']Edit Menu Item 2[/url] [url='blank.html']Edit Menu Item 3[/url] [url='blank.html']Edit Menu Item 4[/url] <div class="menuItemSep"></div> [url='blank.html']Edit Menu Item 5[/url] </div> <div id="viewMenu" class="menu"> [url='blank.html']View Menu Item 1[/url] [url='blank.html']View Menu Item 2[/url] [url='blank.html']View Menu Item 3[/url] </div> <div id="toolsMenu" class="menu"> [url='blank.html']Tools Menu Item 1[/url] [url='blank.html']Tools Menu Item 2[/url] [url='blank.html']Tools Menu Item 3[/url] <div class="menuItemSep"></div> [url='blank.html']Tools Menu Item 4[/url] [url='blank.html']Tools Menu Item 5[/url] </div> <div id="optionsMenu" class="menu"> [url='blank.html']Options Menu Item 1[/url] [url='blank.html']Options Menu Item 2[/url] [url='blank.html']Options Menu Item 3[/url] </div> <div id="helpMenu" class="menu"> [url='blank.html']Help Menu Item 1[/url] [url='blank.html']Help Menu Item 2[/url] <div class="menuItemSep"></div> [url='blank.html']Help Menu Item 3[/url] </div> -
@ K a Y a S
das sieht sehr gut aus! Werde mal schauen ob ich es so verbauen kann. Danke Dir
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!