gpt4 book ai didi

javascript - 十字图像关闭灯箱

转载 作者:行者123 更新时间:2023-11-28 09:19:58 24 4
gpt4 key购买 nike

我有一个立方体,当你单击立方体时,会打开一个灯箱......现在我需要点击外部来关闭立方体......我计划实现一个十字图标来关闭立方体......你能告诉我如何包含十字图标来关闭立方体......在下面提供我的代码....

http://jsfiddle.net/rajkumart08/wWaKs/1/

 $(window).bind('resize', function() {
location.reload();

Gallery.setOptions({
size: 78,
lightbox: false,
//animation: 'drop'
//speed: 500,
//closeOnEsc: true,
//slideshow: false,
//slideshow_speed: 3000,
//cube_speed: 1000
});

})

最佳答案

if you would like to use a 'close button', like the 'X' graphic in the examples above, specify its location at the top of the lightbox.js file.

var closeButton = 'close.gif';  

http://lokeshdhakar.com/projects/lightbox/

关于javascript - 十字图像关闭灯箱,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15125588/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com