JS klappt einfach nicht :(
lima-city → Forum → Die eigene Homepage → HTML, CSS & Javascript
- 
    
    guck eich mal den Code an:
 
 <html>
 <head>
 <title>Online-City</title>
 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
 <link rel="stylesheet" type="text/css" href="template/style_menu.css">
 <script type="text/javascript">
 <!--
 function menu(link) {
 top.top.location.reload();
 top.main.location.href = link;
 }
 function mover(id) {
 document.getElementById(id).style.backgroundImage = "url('template/ok.gif')";
 }
 function nomover(id) {
 document.getElementByID(id).style.backgoundImage = "url('template/button.gif')";
 }
 //-->
 </script>
 </head>
 <body>
 <table border=0 cellpadding=0 cellspacing=0 width=100>
 <tr><td height=32 id="1" OnMouseOver="mover('1')" onMouseOut="nomover('1')"><a href="javascript:menu('home.php')">Home</a></td></tr>
 <tr><td height=32 id="2" OnMouseOver="mover('2')" onMouseOut="nomover('2')"><a href="javascript:menu('login_form.php')">Login</a></td></tr>
 <tr><td height=32 id="3" OnMouseOver="mover('3')" onMouseOut="nomover('3')"><a href="javascript:menu('reg_form.php')">Anmelden</a></td></tr>
 
 <tr><td height=32 id="4" OnMouseOver="mover('4')" onMouseOut="nomover('4')"><a href="javascript:menu('downloads.php')">Downloads</a></td></tr>
 <tr><td height=32 id="5" OnMouseOver="mover('5')" onMouseOut="nomover('5')"><a href="forum/index.php" target="_top">Forum</a></td></tr>
 <tr><td height=32 id="6" OnMouseOver="mover('6')" onMouseOut="nomover('6')"><a href="javascript:menu('chat_login.php')">Chat</a></td></tr>
 <tr><td height=32 id="7" OnMouseOver="mover('7')" onMouseOut="nomover('7')"><a href="javascript:menu('shoutbox_form.php')">Shoutbox</a></td></tr>
 <tr><td height=32 id="8" OnMouseOver="mover('8')" onMouseOut="nomover('8')"><a href="javascript:menu('rules.php')">Regeln</a></td></tr>
 <tr><td height=32 id="9" OnMouseOver="mover('9')" onMouseOut="nomover('9')"><a href="javascript:menu('agb.php')">AGB</a></td></tr>
 <tr><td height=32 id="10" OnMouseOver="mover('10')" onMouseOut="nomover('10')"><a href="javascript:menu('impressum.php')">Impressum</a></td></tr>
 <tr><td height=32 id="11" OnMouseOver="mover('11')" onMouseOut="nomover('11')"><a href="javascript:menu('screenshots.php')">Screenshots</a></td></tr>
 <tr><td height=32 id="12" OnMouseOver="mover('12')" onMouseOut="nomover('12')"><a href="javascript:menu('werbung.php')">Partner</a></td></tr>
 
 <tr><td style="background-image: none"><hr></td></tr><tr><td height=32 id="13" OnMouseOver="mover('13')" onMouseOut="nomover('13')"><a href="javascript:menu('admin/login_form.php')">Admin</a></td></tr>
 </table>
 </html>
 
 
 Die Funktion menu() klappt ja aber mover() und nomover() gehen nicht. Kann mir jemand sagen wieso?
 
 EDIT: mover klappt doch. Hab grad bemerkt. Nur nomover() geht noch nicht.
 
 Beitrag ge?ndert am 13.04.2006 13:55 von jpaket
- 
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden! lima-city: Gratis werbefreier Webspace für deine eigene Homepage 
- 
    
    
 function nomover(id) {
 document.getElementByID(id).style.backgoundImage = "url('template/button.gif')";
 }
 
- 
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden! lima-city: Gratis werbefreier Webspace für deine eigene Homepage 
