我在Magento 1.6.2上。与FancyBox 1.3.4。
在IE8中,我点击FancyBox显示的关闭按钮,我收到下一个错误: 我没有插入图片我必须列出错误:
在Chrome,Firefox,Opera,Safari中我的网站没有显示任何错误,视频可以随时打开和关闭。 请给我一些线索如何解决这个问题。
FancyBox嵌入代码:
jQuery("a[rel=iframe_flv_digitus]").fancybox({
'type': 'iframe',
'width': 746,
'height': 430,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'overlayColor': '#000000',
'overlayOpacity': '0.4',
'padding' : 0,
'wmode': 'transparent',
'scrolling': 'no',
centerOnScroll: true
});
致电视频:
<p><a rel="iframe_flv_digitus" href="/jwplayer/player.swf?allowscriptaccess=always&skin=/jwplayer/skin/slim.zip&width=726&height=410&file=/jwplayer/ServerRack.flv"&controlbar=over&autostart=true"><img src="/media/wysiwyg/biometrics/label_view_short_video-en_100.png" alt="digitus" /></a></p>
我可以看到问题的页面: MyPage
请向下滚动并点击:
答案 0 :(得分:0)
调试网页后,js文件scp_product_extension.js中出现错误,第321行:
if(productId) {
new Ajax.Updater(destElement, imgUrl, {
method: 'get',
/* Cristian - inlocuiesc linia de mai jos cu cea de sub ea pentru ca in SCP dupa alegerea unei optiuni sa pot descide specificatiile in lightbox */
/*evalScripts: false,*/
evalScripts: true,
/* end Cristian*/
/*onComplete: function() {
//Product.Zoom needs the *image* (not just the html source from the ajax)
//to have loaded before it works, hence image object and onload handler
if ($('image')){
var imgObj = new Image();
/*imgObj.onload = function() {product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint'); };
imgObj.src = $('image').src; ----- Cristian - am renuntat la aceasta instructiune pentru a putea utiliza lightbox in SCP dupa selectarea unei optiuni
} else {
destElement.innerHTML = defaultZoomer;
/*product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint')----- Cristian - am renuntat la aceasta instructiune pentru a putea utiliza lightbox in SCP dupa selectarea unei optiuni
}
}
}*/);
} else {
destElement.innerHTML = defaultZoomer;
/*product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');----- Cristian - am renuntat la aceasta instructiune pentru a putea utiliza lightbox in SCP dupa selectarea unei optiuni*/
}
};
将此条件块更改为:
if(productId) {
new Ajax.Updater(destElement, imgUrl, {
method: 'get',
/* Cristian - inlocuiesc linia de mai jos cu cea de sub ea pentru ca in SCP dupa alegerea unei optiuni sa pot descide specificatiile in lightbox */
/*evalScripts: false,*/
evalScripts: true
/* end Cristian*/
/*onComplete: function() {
//Product.Zoom needs the *image* (not just the html source from the ajax)
//to have loaded before it works, hence image object and onload handler
if ($('image')){
var imgObj = new Image();
/*imgObj.onload = function() {product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint'); };
imgObj.src = $('image').src; ----- Cristian - am renuntat la aceasta instructiune pentru a putea utiliza lightbox in SCP dupa selectarea unei optiuni
} else {
destElement.innerHTML = defaultZoomer;
/*product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint')----- Cristian - am renuntat la aceasta instructiune pentru a putea utiliza lightbox in SCP dupa selectarea unei optiuni
}
}*/
});
} else {
destElement.innerHTML = defaultZoomer;
}