Hi, I have done as you say, so this is the
code for the left to right:
[
function()
{
$slide1.animate(
{
left: parseInt($slide1.css('left'),100) == 0 ?
-$slide1.outerWidth() : 350
})
}
]
It get right but affter i continue click , nothing happen ( after
s
since you are learning
rather then click you will want to use toggle on the one state you
will move right, on the other left
http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C...
probablye easiest tot ake your animate code and create 2 function one
for going left and on for right and fi
2 matches
Mail list logo