• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

FireFox Problem

Status
Für weitere Antworten geschlossen.

Furby

Neues Mitglied
Hallo Leute

Ich habe ein kleines Problem mit dem FireFox und ich hoffe ihr könnt mir helfen:
Sobald ich auf log in gehe erscheint ein in einem <span> das Formular für das Login.
Nun sollte nach dem klick auf den Button-Login die JS-Fkt abc(); aufgerufen werde.
Im IE geht’s im FireFox leider nicht hat jemand eine Idee??

HTML:
 <html>
<head>

<style type="text/css">
<!--
dd{ margin-left: 20px; padding: 0; position: absolute;  font-size: 85%; }
dl{ margin-left: 10px;  margin-top: -12px; padding: 0; position: absolute;  font-size: 85%; }

dd#linkLogin a span{ display: none; }

dd#linkLogin a
{
position: absolute;
width: 50px; height: 50px;
text-decoration: none;
}

dd#linkLogin a:hover
{
position: absolute;
top:  0px;
left: 0px;
}

dd#linkLogin a:hover span
{
 display: block;
 color: black;
 position: absolute;
 border: 1px solid #BCBCBC;
 bottom: -115%;
 padding: 5px;
}
-->

</style>

<script language="JavaScript">
<!--
 function abc()
  {
    alert("hallo!!");

  }
//-->
</script>

</head>
<body>
            <br><br><br><br><br><br>
             <dl>
               <dd id="linkLogin" >
           <a href="#" class="login_style" id="Link_login" ><b><h1> >> Login</h1>  </b>
             <span>
               <form name="Login" id="LoginForm" onSubmit="abc();">
                  <table width="200">
                   <tr>
                     <td>user:</td>
                     <td><input type="text" name="user" ></td>
                   </tr>
                   <tr>
                        <td>password:</td>
                     <td><input type="password" name="password"></td>
                   </tr>
                   <tr>
                     <td>&nbsp;</td>
                     <td><input type="submit" name="login" id="login" value="login" ></td>
                   </tr>
                 </table>
               </form>
             </span>
                 </a>
               </dd>
              </dl>

</body>
</html>
 
Werbung:
ich hab grad das script bei mir im firefox getestet. ging einwandfrei.
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben