last day (14 days later) » 

1:27 PM
0
A: Jquery slide hide-show div with an image

FonzyHide / Show one Banner at a time: $(".homeArrow").on('click',function () { $(".homeImage").slideToggle(); }); http://jsfiddle.net/8a7GL/152/ Sliding from left to right can be achieved by a little more code in jQuery see: http://www.learningjquery.com/2009/02/slide-elements-in-different-d...

 
i want it to slide left and right
 
@al123 well you didnt mention that before, updated
 
i thought you all would assume it would slide left and right... its a banner
 
well, then follow the link, read and learn! :)
@al123 updated to reflect your questions
 
why does it glitch? :/
 
1:27 PM
it doesnt glitch, it's a basic example. if you want the first to hide before the second is show, you have to implement it in a callback. this site is not here to write code for you, it's to help you understand and learn.
 
am still trying to do this
but cant figure it out
 
1:43 PM
whats your problem
did you search for callbacks?
does it have to be generic or is it always 2 banners?
 
2:45 PM
so basically its a normal banner and when i click the arrow another banner opens
but i want it to slide right
problem on internet i found is mainly up and down
so when i click arrow the next banner apears
its a normal slider which i want to change on the click
 
3:22 PM
so why dont you use a slider?
 
3:33 PM
or jCarousle
you can modify the buttons and everything
i think its more what you want
you dont have to program it all yourself
it would be awesome if you would accept my answer tho :P
 

last day (14 days later) »