0

我在 Magento 1.6.2 上。使用 FancyBox 1.3.4。

在 IE8 中,我单击 FancyBox 显示的关闭按钮,我收到下一个错误:我不允许插入图像 si 我必须列出错误:

在 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&amp;skin=/jwplayer/skin/slim.zip&amp;width=726&amp;height=410&amp;file=/jwplayer/ServerRack.flv"&amp;controlbar=over&amp;autostart=true"><img src="/media/wysiwyg/biometrics/label_view_short_video-en_100.png" alt="digitus" /></a></p>

可以看到问题的我的页面: MyPage

请向下滚动并点击:

  • 观看短片
4

1 回答 1

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;
}
于 2013-02-10T16:00:39.193 回答