Navigation mit Webspell machen

New member
Habe problem mit der Drop.Navi
siehe
Was ist falsch?! Bitte helft mir!

Code:
[I]
+++DROPDOWN NAVI-CODE+++

/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit [URL="http://www.dynamicdrive.com/"]http://www.dynamicdrive.com[/URL]
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<font size="2" face="Tahoma"><b><a href="index.php">News</a> | <a href="index.php?site=news&action=archive">N
ewsarchive</a> | <a href="index.php?site=imprint">Imprint</a> | <a href="index.php?site=guestbook">G-Book</a>
; | <a href="index.php?site=contact">Contact</a>
</b></font>'

submenu[1]='<font size="2" face="Tahoma"><b><a href="index.php?site=members">Squads</a> | <a href="index.php?site=registered_users">Communit
y Members</a> | <a href="index.php?site=joinus">Join Us</a> | <a href="index.php?site=challenge">Fight Us</a></b></font>'

submenu[2]='<font size="2" face="Tahoma"><b><a href="index.php?site=clanwars">Recent Matches</a> | <a href="index.php?site=sc_results">Last Matches</a> | <a href="index.php?site=calendar">Upcoming Matches</a></b></font>'

submenu[3]='<font size="2" face="Tahoma"><b><a href="index.php?site=files">Downloads</a> | <a href="index.php?site=demos">Demos</a> | <a href="index.php?site=gallery">Gallery</a>
</b></font>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=5000

/////No need to edit beyond here

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

    </script>

+++CODES+++

<script language="JavaScript1.2">mmLoadMenus();</scr
ipt>
<div id="describe" style="onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div>


+++BILDER VERLINKUNG+++

<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th scope="col"><img src="images/ls.elfenlied_07.jpg" width="6" height="23"/></th>
<th scope="col"><a href="" onMouseover="showit(0)"><img src="images/ls.elfenlied_08.jpg" border="0"/></a></th>
          <th scope="col"><img src="images/ls.elfenlied_09.jpg" width="8" height="23"/></th>
<th scope="col"><a href="" onMouseover="showit(1)"><img src="images/ls.elfenlied_10.jpg" border="0"/></a></th>
          <th scope="col"><img src="images/ls.elfenlied_11.jpg" width="9" height="23"/></th>
<th scope="col"><a href="" onMouseover="showit(2)"><img src="images/ls.elfenlied_12.jpg" width="81" height="23" border="0"/></a></th>
          <th scope="col"><img src="images/ls.elfenlied_13.jpg" width="9" height="23"/></th>
<th scope="col"><a href="" onMouseover="showit(3)"><img src="images/ls.elfenlied_14.jpg" width="81" height="23" border="0"/></a></th>
          <th scope="col"><img src="images/ls.elfenlied_15.jpg" width="9" height="23"/></th>
<th scope="col"><a href="" onMouseover="showit(4)"><img src="images/ls.elfenlied_16.jpg" width="81" height="23" border="0"/></a></th>
          <th scope="col" background="images/ls.elfenlied_17.jpg" width="380" height="23"/>
          <table width="58%" border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
              <th scope="col"><? include("quicksearch.php"); ?></th>
            </tr>
          </table>[/I]
 
Funzt doch.
Vielleicht solltest Du Dein Problem spezifizieren.

Übrigens:
Kann es sein dass hinter den Definitionen von submenu[n] jeweils Semikola fehlen?
Ausserdem ist ein seltsames form-Tag mitten im head-Tag der index.php .
Denk dran, in die leeren href-Attribute noch Brückenseiten mit Links zu den Untermenüpunkten reinzutun, falls jemand JavaScript aus hat.
 
Weil ich grad nix besseres zu tun hab, hab ich die Seite mal über den W3-Validator gejagt.
Sieh selbst:

Der findet das böse form-Tag auch...
 
Ich würde eventuell zum Design selbst sagen, (sofern es von dir ist ;)) dass es eigentlich CS:S heißen müsste (CSS heißt Cascading Style Sheet) und Pixelfonts etwas unscharf wirken, wenn man eine Kantenglättung im Text hat. Die Kantenglättung bei den kleinen Pixelfonts also am besten abstellen.
 

Online-Statistiken

Zurzeit aktive Mitglieder
0
Zurzeit aktive Gäste
115
Besucher gesamt
115

Neueste Themen

Beliebte Forum-Themen

X
Keine passende Antwort gefunden?