Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have one gallory , there are multiple images. there is scroll buttons left and right scrolls . i want to hide left scroll button (it's a image) on 1st occurence of gallory image and right scroll on the last occurence of gallory image.
pls suggest what i have to do?
Posted
Comments
Sergey Alexandrovich Kryukov 7-Feb-12 3:07am    
What is "gallory"? My guess was: a photo album of galloping horses. Is that correct? :-)
--SA

1 solution

Maybe doing this on server side is not a best idea, from the standpoint of bandwidth usage and performance. This is easy to do on client side, especially with jQuery. You can handle the event .scroll(), use "effect" methods .show() and .hide():

http://api.jquery.com/scroll/[^],
http://api.jquery.com/show/[^],
http://api.jquery.com/hide/[^].

See more: http://docs.jquery.com/Main_Page[^].

—SA
 
Share this answer
 
Comments
pritamsp 7-Feb-12 3:22am    
ya..
u r right.
i am going to try this.
Sergey Alexandrovich Kryukov 7-Feb-12 12:20pm    
If you agree this is reasonable, please accept this answer (green button) -- thanks.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900