2015-01-07 3 views
0

이 스크립트를로드 할 수 없습니다.이 스크립트를로드 할 수 없습니다. http://orangeplacehotel.com/superbudget/ems-policy. 이 코드에 문제가 있습니까? .. 내가 경고 퍼팅 시도하고 제대로 작동하지만 여전히 내가 도와주세요 .. 사이트에로드 된 플러그인을 볼 수 없습니다 감사합니다, 자바 스크립트 오류 : 알려지지 않은 유형 오류 : undefined가 함수가 아닙니다.

$(function() { 
 
    $('#nanoGallery1').nanoGallery({ 
 
     kind:'flickr', 
 
     userID:'[email protected]', 
 
     touchAutoOpenDelay: -1, 
 
     breadcrumbAutoHideTopLevel: true, 
 
     maxWidth: 948, 
 
     imageTransition : 'slide', 
 
     thumbnailWidth: 200, 
 
     thumbnailHeight: 126, 
 
     thumbnailHoverEffect: 'scaleLabelOverImage,borderDarker', 
 
     i18n: { 
 
      thumbnailImageDescription: 'view photo', 
 
      thumbnailAlbumDescription: 'open album' 
 
     }, 
 
     thumbnailLabel: { 
 
      display: true, 
 
      position: 'overImageOnMiddle', 
 
      hideIcons: true, align: 'center' 
 
     }, 
 
     thumbnailLazyLoad: true 
 
    }); 
 
}); 
 
alert("test");
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

+0

합니다 (잘린) 그것은 nanoGallery'은 놀라운 일이 아니다 기능, 아니다 '라고 포함됩니다. 당신이 스 니펫을 제공 했으므로 필자는 자체적 인 예제를 기대 했는가? –

+0

저를 위해 일합니다. 갤러리로드가 정상적으로 작동합니다. – Boldewyn

+0

실제로 갤러리가로드되고 있지만 일부 데이터가 누락되었습니다. http://prntscr.com/5phkm9 – briosheje

답변

1

오류가

는 "NanoGallery는 함수가 아닙니다 " 나는 코드가 잘 아니고 해결책을 노력하고 있지만 몇 가지 아이디어를 줄 수있는 당신이 당신의 코드를 아래

을 실행하기 전에 페이지에 여부를 포함 (nanoGaller()가 정의되어 무엇에) 플러그인을 확인해야한다고 생각

,210

먼저 jQuery 라이브러리 다음

$.prototype.nanoGallery = function(){ 
    console.log(arguments); 
} 

$(function() { 
    $('#nanoGallery1').nanoGallery({ 
     kind:'flickr', 
     userID:'[email protected]', 
     touchAutoOpenDelay: -1, 
     breadcrumbAutoHideTopLevel: true, 
     maxWidth: 948, 
     imageTransition : 'slide', 
     thumbnailWidth: 200, 
     thumbnailHeight: 126, 
     thumbnailHoverEffect: 'scaleLabelOverImage,borderDarker', 
     i18n: { 
      thumbnailImageDescription: 'view photo', 
      thumbnailAlbumDescription: 'open album' 
     }, 
     thumbnailLabel: { 
      display: true, 
      position: 'overImageOnMiddle', 
      hideIcons: true, align: 'center' 
     }, 
     thumbnailLazyLoad: true 
    }); 

}); 

alert("test"); 
+0

감사합니다. :) 내가 한 일은 첫 번째 Jquery 라이브러리를 포함하고 No-Conflict Mode에 넣은 다음 DOM 준비 함수에 대한보다 간결한 구문을 사용합니다. –

+0

이제 두 개의 하위 도메인에서 작동합니다. http://orangeplacehotel.com/boutique/ems-policy 및 http://orangeplacehotel.com/superbudget/ems-policy .. –

관련 문제