私たちはサイトのいくつかの場所でjQueryColorBoxを使用しており、IE8のポップアップウィンドウを閉じることはできません。Firefoxで正常に動作します。どんな助けでも大歓迎です!ありがとう、エイミー(jQuery初心者)
フォトギャラリーページの例:http://matsinc.com/photogallery/woven-vinyl-flooring
フォトギャラリーページのコードは次のとおりです。
<script type="text/javascript">
$j(document).ready(function() {
// Tool Tip
//$("a[title]").tooltip({ effect: 'slide'});
var cb_height = '566px';
if ($j.browser.msie && !$j.support.opacity) {
if ($j.browser.version == 7) {
cb_height = '598px';
}
}
var cb_html = '<div class="cbox-gallery"><h2></h2><img src="" alt="" /><div class="cbox-footer2"><a target="_blank" href="http://www.miprojectlibrary.com">Visit MI Project Library</a><br />Collect, distribute and download high resolution photos and swatches.</div></div>';
//colorbox for Photo Gallery
$j("a[rel='cb-gallery']").colorbox({
opacity: 0.5,
current: '{current} of {total}',
close: 'Close',
html: cb_html,
height: cb_height,
scrolling: false,
onComplete: function() {
var title = $j(this).attr('title');
var img = $j(this).attr('href');
$j('.cbox-gallery h2').text(title);
$j('.cbox-gallery img').attr({
'src': img,
'alt': title
});
$j('.cbox-gallery .download').attr('href', img);
//$.colorbox.resize();
}
});
});
</script>