Problem: Mootools integration/Wechsel von Scriptaculous
Verfasst: Fr 8. Mai 2009, 12:07
Ich musste nun von Scriptaculous auf Mootools wechseln und habe bei Links ein Problem. die LoginBox z.b. ist zum aufklappen gewesen (also blinddown und blindup)... der originalcode des modultemplates war also:
Nun kam ja eine Mootools-JS dazu, das extraskript:
Nun gibts ein Problem mit dem Einbinden des Links... aus dem "a class="login" href="javascript:Effect...." muss nun ein mootools fähiger Link werden
und mit
komm ich da net weiter.
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.
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.