jQuery Lightbox with proper back button support

。_饼干妹妹 提交于 2019-12-07 20:03:35

问题


After running some usability tests, I found that participants opened a jQuery Lightbox to view larger images. Then rather than clicking the 'close' button they simply hit the browser back button. That sends them to the last page rather than closing the lightbox.

Does anyone know a jQuery photo gallery that supports the described back button behavior? Or has anyone modified their jQuery Lightbox to do so?


回答1:


Try the jQuery history plugin here. You will probably have to add some custom hook function to modify the behavior of Lightbox, but it shouldn't be too hard.




回答2:


It's a bit weird to reply to question that was asked 5 years ago, but I released a gallery script that can do this - http://photoswipe.com/




回答3:


I've got another solution for You. Jquery mobile suports navigation controll. Have a look at this link how to control back button event in Jquery mobile?



来源:https://stackoverflow.com/questions/464405/jquery-lightbox-with-proper-back-button-support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!