漂亮的照片卡在模态窗口加载

时间:2014-04-22 20:11:42

标签: javascript jquery html prettyphoto

我正在使用图库页面(www.eastcoastglassnc.com/projects.hmtl)的网站上工作。我遇到的问题是模态窗口应该出现,但它会卡在加载轮上。我知道这个问题是我可能会忽略的,所以我想我会得到一副清新的眼睛。这是我正在使用的代码。

缩略图HTML:

<div class="box col5"><a href="style/images/projects/bbt/bbt1.jpg" data-gal="prettyPhoto" title=""><span class="overlay zoom"></span><img src="style/images/projects/bbt/thumb1.png" alt=""/></a></div>

的JavaScript

$(document).ready(function(){
        $("a[data-gal^='prettyPhoto']").prettyPhoto({autoplay_slideshow: false, overlay_gallery: false, social_tools:false, deeplinking: false, theme:'pp_default', slideshow:5000, hook: 'data-gal'});
    });

的jQuery

// Find out if the picture is part of a set
        theRel = $(this).attr('data-gal');
        galleryRegExp = /\[(?:.*)\]/;
        isSet = (galleryRegExp.exec(theRel)) ? true : false;

        // Put the SRCs, TITLEs, ALTs into an array.
        pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return $(n).attr('href'); }) : $.makeArray($(this).attr('href'));
        pp_titles = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return ($(n).find('img').attr('alt')) ? $(n).find('img').attr('alt') : ""; }) : $.makeArray($(this).find('img').attr('alt'));
        pp_descriptions = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr('data-gal').indexOf(theRel) != -1) return ($(n).attr('title')) ? $(n).attr('title') : ""; }) : $.makeArray($(this).attr('title'));

你有任何输入都会很棒!

1 个答案:

答案 0 :(得分:0)

你能为firefox安装“Firebug”插件,并再次运行吗?

(如果您可以将Firebug的“控制台”的输出放入真正有用的票证中!)

我尝试访问该页面,但模式已经消失,单击图像只会导致图像,而不是prettyPhoto。 :(