accion.js
Código:
window.onload=function(){
var foto = document.getElementById("texto");
new Effect.toggle("foto", 'slide',{duration:1,afterFinish: function(){
Effect.Appear("#foto")}});
}
Código:
<html >
<head>
<script type="text/javascript" src="prototype.js"> </script>
<script type="text/javascript" src="scriptaculous.js"> </script>
<script type="text/javascript" src="accion.js"></script>
<style type="text/css">
</style>
</head>
<body>
<div id="texto" style="background-color:green">sdgerg</div>
</body>
</html>
quiero lograr que ese div llamado texto realice el efecto q le estableci en .js pero no anda porq??
grax!