I'm trying to mix Effect.Morph and setTimeout() to enlarge a div and
after the div finishes enlargening another div inside it appears (this
is where I use setTimeout()). The problema is that I get a error and
can't find out why.
Here is the code:
function expandir(id,newh){
new Effect.Morph('cont'+id, {
style: 'height:'+newh+'px;', // CSS Properties
duration: 0.5 // Core Effect properties
});
setTimeout("$('masinfo'+id).show()",500,id);
}
Here it says that id is not defined in the setTimeout line.
Any ideas?
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.