想要在画廊图像的第一次出现时隐藏左滚动按钮,而在画廊图像的最后出现时隐藏右滚动按钮 [英] want to hide left scroll button on 1st occrence of gallory image and right scroll buton on last ocuerence of gallory image
本文介绍了想要在画廊图像的第一次出现时隐藏左滚动按钮,而在画廊图像的最后出现时隐藏右滚动按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一张图库,有多张图片.有滚动按钮左右滚动.我想在第一次出现画廊图像时隐藏左滚动按钮(它是一个图像),而在最后一次出现画廊图像时隐藏向右滚动.
请建议我该怎么做?
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?
推荐答案
从带宽使用和性能的角度来看,也许在服务器端这样做不是一个好主意.这在客户端很容易做到,尤其是使用jQuery.您可以处理事件.scroll()
,使用效果"方法.show()
和.hide()
:
http://api.jquery.com/scroll/ [ http://api.jquery.com/show/ [ http://api.jquery.com/hide/ [ http://docs.jquery.com/Main_Page [
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
这篇关于想要在画廊图像的第一次出现时隐藏左滚动按钮,而在画廊图像的最后出现时隐藏右滚动按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文