图像缩略图列表,不透明度发生变化,并在单击时添加类/删除类
我从这里的另一篇文章中获得了脚本,但由于某种原因,它在我的实现中无法正常工作。除了剥离“选定”类之外,一切正常,因此缩略图在单击后全部保持突出显示。最简单的方法是在上下文中显示:
http://www.studioimbrue.com/beta
我更改了它周围有点试图找出问题,但我找不到任何东西。
I got the script from another post on here, but for some reason it isn't working quite correctly on my implementation of it. Everything works fine except for stripping of the "selected" class, therefore the thumbnails all stay highlighted after being clicked. Easiest way is to show in context:
http://www.studioimbrue.com/beta
I changed it around a bit trying to figure out the problem but I couldn't find anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
单击时,获取组的所有其他缩略图(例如按父元素)并删除“选定的”类名
On click, get all other thumbnails of group (by parent element fo example) and remove "selected" classname