Hi all, currently i am learning script.aculo.us.. and i have some
question on a bit of syntax here..


//css
#box {
width:  300px;
height: 300px;
position: relative;
background-color: #ddd;
}


//html
<div id="box"></div>



//js script

new Effect.Morph('box', {style:    "left: 50px; top: 50px;",duration:
1.0});

new Effect.Move('box', { x: 50, y: 50 });

new Effect.Scale('box', 150);

########
all the above works
########

$('box').morph({top: "125px", left: "150px"}, { duration: 1.0 });
#######//this is working


########
the one below does not work?? why..
########

$('box').move({top: "125px", left: "150px"});

$('box')..scale(150);


could any one explain to me?..
thanks
--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to