Nekromancer Posted April 19, 2009 Report Share Posted April 19, 2009 (edited) вот как бы такой код:$(document).ready(function(){ $('#test').click(function(){ $("#conteiner").animate({ left: "50px", top: "50px" }, 'fast'); });});как блин сделать чтоб контеинер принимал позицию переменной?тупо так не канаетleft: test+"px" Edited April 19, 2009 by Nekromancer Quote Link to comment Share on other sites More sharing options...
0 Nekromancer Posted April 19, 2009 Author Report Share Posted April 19, 2009 (edited) всё, сорри.. переменную объявлял за приделами $(document).ready.. не думал что это влияет Edited April 19, 2009 by Nekromancer Quote Link to comment Share on other sites More sharing options...
Question
Nekromancer
вот как бы такой код:
$(document).ready(function(){$('#test').click(function(){
$("#conteiner").animate({
left: "50px",
top: "50px"
}, 'fast');
});
});
как блин сделать чтоб контеинер принимал позицию переменной?
тупо так не канает
Edited by NekromancerLink to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.