quirksmode,

Try this:

$('#js_innerwrapper').animate({left:"+="+$.gamewidth}, 1000,
'easeOutSine');

HTH,
Carl

quirksmode wrote:
> Hi,
>
> I need to make a div slide across the screen using the animate
> command. It works when I use the following:
>
> $('#js_innerwrapper').animate({left:"+=500"}, 1000, 'easeOutSine');
>
>
> However, i need to be able to change the 500 to be width of the div,
> which i get using:
>
> $.gamewidth = $('.gamewrapper').width();
>
>
> I then need to combine the two which does not seem to work:
>
> $('#js_innerwrapper').animate({left:"+=$.gamewidth"}, 1000,
> 'easeOutSine');
>
> Any ideas?
>
>
>
>   

Reply via email to