[java] navigation..fehler?!

undertaker1988

Lt. Junior Grade
Registriert
Nov. 2003
Beiträge
465
[Javascript] navigation..fehler?!

. ergebniss:http://mitglied.lycos.de/undertaker17m/oben.htm
naja hier sind mal die beiden scripte.....
findet da jemand durch und weiß wo der fehler ist??? es sollte eine navbar sein


erstes: mmenu.js
Code:
/* 
DHTML Menu version 3.3.19 
Written by Andy Woolley 
Copyright 2002 (c) Milonic Solutions. All Rights Reserved. 
Plase vist [url]http://www.milonic.co.uk/menu[/url] or e-mail [email]menu3@milonic.com[/email] 
You may use this menu on your web site free of charge as long as you place prominent links to [url]http://www.milonic.co.uk/menu[/url] and 
your inform us of your intentions with your URL AND ALL copyright notices remain in place in all files including your home page 
Comercial support contracts are available on request if you cannot comply with the above rules. 
*/ 
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+="menu"+a+"=menus["+a+"];"}mt+="</script>";_d.write(mt)} 

if(navigator.appVersion.indexOf("MSIE 6.0")>0) 
{ 
effect = "Fade(duration=0.2);Alpha(style=0,opacity=8;Shadow(color='#777777', Direction=135, Strength=5)" 
} 
else 
{ 
effect = "Shadow(color='#777777', Direction=135, Strength=5)" 
} 
timegap=500 
followspeed=5
followrate=40
suboffset_top=10; 
suboffset_left=10; 
style1=[ "navy","ccccff","ffebdc","4b0082","000000",12,"normal","bold","Verdana, Arial",4,"http://www.bild.gif";,,"66ffff","000099","Purple","pink","milonicmenu/arrowdn.gif","ffffff","000099",]


zweites:menu_array.js

Code:
/* 
DHTML Menu version 3.3.19 
Written by Andy Woolley 
Copyright 2002 (c) Milonic Solutions. All Rights Reserved. 
Plase vist [url]http://www.milonic.co.uk/menu[/url] or e-mail [email]menu3@milonic.com[/email] 
You may use this menu on your web site free of charge as long as you place prominent links to [url]http://www.milonic.co.uk/menu[/url] and 
your inform us of your intentions with your URL AND ALL copyright notices remain in place in all files including your home page 
Comercial support contracts are available on request if you cannot comply with the above rules. 
*/ 
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+="menu"+a+"=menus["+a+"];"}mt+="</script>";_d.write(mt)} 

if(navigator.appVersion.indexOf("MSIE 6.0")>0) 
{ 
effect = "Fade(duration=0.2);Alpha(style=0,opacity=8;Shadow(color='#777777', Direction=135, Strength=5)" 
} 
else 
{ 
effect = "Shadow(color='#777777', Direction=135, Strength=5)" 
} 
timegap=500 
followspeed=5
followrate=40
suboffset_top=10; 
suboffset_left=10; 
style1=[ "navy","ccccff","ffebdc","4b0082","000000",12,"normal","bold","Verdana, Arial",4,"http://www.bild.gif";,,"66ffff","000099","Purple","pink","milonicmenu/arrowdn.gif","ffffff","000099",]
addmenu(menu=["mainmenu",20,125,"center",style1,1,"left",effect,0,1,1,left",

,"Home","http://www.nightfire.ch";,,"Back to the home page",1 
Format: "Menutext", "URL", "Alternate URL", "Status", "Separator Bar" 

,"News sites  ","show-menu=news",,"",1 
Um auf Untermenus zu verweisen, wird das Attribut show-menu= mit dem Namen des Untermenus verwendet. 

,"Webmaster  ","show-menu=webmaster",,"",1 
,"Downloads  ","show-menu=downloads",,"",1 
,"Search  ","show-menu=search",,"",1 
,"Other  ","show-menu=other",,"",1 
])
addmenu(menu=["news", 
,,120,1,"",style1,,"left",effect,,,,,,,,,,,, 
,"General","show-menu=generalnews",,,1 
,"Technology","show-menu=technonews",,,1 
])
addmenu(menu=["generalnews", 
,,170,1,"",style1,,"left",effect,,,,,,,,,,,, 
,"CNN","http://www.cnn.com";,,,0 
,"MSNBC","http://www.msnbc.com";,,,0 
,"ABC News","http://www.abcnews.com";,,,0 
,"Vancouver Local News","show-menu=canadanews",,,0

,"BBC News","http://news.bbc.co.uk";,,,0 
]) 

addmenu(menu=["canadanews", 
,,120,1,"",style1,,"left",effect,,,,,,,,,,,, 
,"CTV News","http://www.ctvnews.com";,,, 
,"Vancouver Sun","http://www.canada.com/vancouver/vancouversun/";,,, 
]) 

addmenu(menu=["technonews", 
,,110,1,"",style1,,"left",effect,,,,,,,,,,,, 
,"TechWeb","http://www.cnn.com";,,,0 
,"News.com","http://www.news.com";,,,0 
,"Wired News","http://www.wired.com";,,,0 
,"Slashdot","http://www.slashdot.com";,,,0 
])

addmenu(menu=["webmaster", 
,,170,1,"",style1,,"left",effect,,,,,,,,,,,, 
,"<img src=milonicmenu/nightfire.gif height=16 width=16 border=0> Nightfire Java","http://www.nightfire.ch/java/";,,,1 
,"<img src=milonicmenu/newsimage.gif border=0> Dynamic Drive","http://www.dynamicdrive.com";,,,1 
,"<img src=milonicmenu/newsimage.gif border=0> JavaScript Kit","http://www.javascriptkit.com";,,,1 
,"<img src=milonicmenu/newsimage.gif border=0> Freewarejava.Com","http://www.freewarejava.com";,,,1 
,"<img src=milonicmenu/newsimage.gif border=0> Active-X.com","http://www.active-x.com";,,,1 
,"<img src=milonicmenu/newsimage.gif border=0> Web Monkey","http://www.webmonkey.com";,,,1 
,"<img src=milonicmenu/newsimage.gif border=0> Jars","http://www.jars.com";,,,1 
]) 
addmenu(menu=["downloads",,,120,1,,style1,0,"left",effect,0,,,,,,,,,,, 
,"Download.com","http://www.download.com";,,,1 
,"Tucows","http://www.tucows.com";,,,1 
]) 
addmenu(menu=["search", 
,,140,1,"",style1,,"",effect,,,,,,,,,,,, 
,"<img src=milonicmenu/google_icon.gif border=0> Google.com", "http://www.google.com";,,,1 
,"<img src=milonicmenu/yahoo_icon.gif border=0> Yahoo", "http://www.yahoo.com";,,,1 
,"<img src=milonicmenu/av_icon.gif border=0> Altavista", "http://altavista.com";,,,1 
,"<img src=milonicmenu/excite.gif border=0> Excite", "http://www.excite.com";,,,1 
]) 
addmenu(menu=["Other",,,140,1,,style1,0,"left","randomdissolve(duration=0.5);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,, 
,"Menu Authors Site","http://www.milonic.co.uk/menu";,,"Milonic DHTML Menu Site",1 
])
dumpmenus()
 
Zuletzt bearbeitet von einem Moderator: ([code]-Tags verwenden! =))
du solltest dir mal einen ordentlichen Programmier-Stil zulegen:

- deine <script>-Tags sehen immer anders aus
- du hast einen schließenden <noscript>-Tag aber keinen öffnenden
- gleiches Spiel mit dem <html>-Tag

du solltest solche Schlampigkeits-Fehler mal bereinigen :o
 
Wenn du ernsthaft Hilfe erwartest, dann solltest du dir folgende Dinge nochmal durch den Kopf gehen lassen:
  1. Ein aussagekräftiges Topic ist generell sehr hilfreich, denn wenn ich nicht Mod wäre, hätte ich diesen Thread einfach überlesen (Übrigens: Java ist nicht Javascript, das habe ich jetzt mal geändert)
  2. BBCode zur formatierten Darstellung von Code zu verwenden trägt erheblich zur Übersichtlichkeit bei, sodass man mehr Hilfe erwarten kann (Die bisher genannten Punkte werden übrigens im festgepinnten Thread im Programmieren-Forum erläutert...)
  3. Auf ernstgemeinte Vorschläge hin zu fordern, dass andere die ganze Arbeit für dich erledigen sollen, spricht nicht gerade für Bereitschaft zur Eigeninitiative
  4. Auch wenn niemand eine völlig korrekte Rechtschreibung fordert, stoßen multiple Satzzeichen sehr gewiss negativ auf

Das Board ist kostenlos, nicht jedoch die Zeit derjenigen, die dir eventuell helfen würden... ;)
 
Zurück
Oben