1
갤러리 페이지 (www.eastcoastglassnc.com/projects.hmtl)가있는 사이트에서 작업하고 있습니다. 내가 겪고있는 문제는 모달 윈도우가 있어야하는 것처럼 보이지만 로딩 휠에 달라 붙는다. 나는 그 문제가 아마도 내가 바라 보는 것이기 때문에 내가 새로운 눈을 갖게 될 것이라고 생각했다. 여기에 내가 작업하고있는 코드가있다.prettyPhoto가 모달 창에서로드에 걸렸습니다
축소판 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>
자바 스크립트
$(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'));
당신이 좋은 것 가지고 모든 입력!
파이어 버그 오류가 "너무 재귀"이며, JQuery와-1.6.2.min.js 파일의 코드를 던졌습니다 라인 (16) 정확한 오류 메시지 :. 너무 많은 재귀 에 http : // eastcoastglassnc.com/style/js/jquery-1.6.2.min.js 행 16 – Mark