我有一個快門(燈箱)效果的圖庫,其中懸停縮放圖層打開(與全尺寸圖像)。我使用WordPress,jQuery,下一代畫廊和featuredimagezoomer.js。刪除圖庫縮放
該腳本的問題是,它不會刪除縮放圖像覆蓋當我mouseout。我嘗試了jQuery中的empty()和remove()方法,但都沒有效果。
這是腳本:
jQuery("img#shTopImg").live('mouseover mouseout', function(event) {
if (event.type == 'mouseover') {
var imw = jQuery("img#shTopImg").width();
jQuery(this).delay(200).addimagezoom({
magnifiersize:[350, 350], zoomrange: [3, 8], rightoffset: - imw });
} else {
// remove logic goes here
}
});
而這正是它的頁面: http://baksagaspar.com/MH-work/collections/jungle-under-construction-2
你可以當它打開了一個燈箱的圖像看,你導航到其他一些圖片,它的縮放覆蓋仍然停留在屏幕上
任何幫助,請問我該如何解決這個問題?
試圖改變「別人」借「否則,如果(event.type ==‘鼠標移開’),但我認爲足夠多的is'nt – Akarun 2011-03-08 08:54:08