您好,有没有办法检测用户关闭的SqueezeBox?
发布于 2012-06-21 19:08:46
Squeezebox为此提供了一个事件。
this.fireEvent('onClose', [this.content]);
因此,当你制作挤压框时,只需添加:
SqueezeBox.initialize({
onClose: function() {
alert('dont close me');
},
other: 'options'
});顺便说一句,这真的很老了。你应该得到一个更新的lightbox。
发布于 2012-06-21 15:41:01
一种简单的方法是:Squeezebox的close按钮的id为sbox-btn-close,因此您可以使用jQuery将单击事件附加到该按钮。
$('#sbox-btn-close').click(function(){
alert('Squeezebox closed');
});https://stackoverflow.com/questions/11133004
复制相似问题