Code: Alles auswählen
<div id="logindiv" style="width:220px;height:104px;display:none">
<h3>{headline}</h3>
<form action="{form_action}" method="post">
<label for="username">{label_name}</label> <input type="text" id="username" name="username" />
<br />
<label for="password">{label_pass}</label> <input type="password" id="password" name="password" />
<br />
<a href="javascript:Effect.BlindUp('logindiv');" style="float:left;">Aus</a>
<input id="loginBtn" type="submit" name="login" value="{label_login}" />
</form> </div>
<div id="effekt" style="display:block;float:left;">
<a class="login" href="javascript:Effect.BlindDown('logindiv');">Login</a>
</div>
Code: Alles auswählen
function slidein() {
var mySlide = new Fx.Slide('logindiv');
$('slidein').addEvent('click', function(e){
e = new Event(e);
mySlide.slideIn();
e.stop();
});
}
und mit
Code: Alles auswählen
<a class="login" href="#" onlick="slidein(); return false;">
Da kommt als Fehler in der FF-Fehlerkonsole "Slidein is not defined"
Hat jemand eine Idee, wie das geht? Sorry bin ein Noob, war froh dass ich mit Scriptaculous da zurande kam...
Wäre nur super wenn jemand eine Idee hat.