0

私はMagento 1.6.2を使用しています。FancyBox 1.3.4 で。

IE8 で、FancyBox に表示された閉じるボタンをクリックすると、次のエラーが表示されます: I am not alowed o insert images si I have to list the error:

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

Webページをデバッグした後、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 に答える