2012-07-19 3 views
-3

슬라이드 쇼 프리젠 테이션 도구를 실행하려고하는데 다음 코드는 슬라이드 쇼를 초기화하는 것으로 가정하고 있지만 '잡히지 않는 참조 오류'와 같은 오류가 발생합니다. ', 그 이유는 코드가 단순히 슬라이드 쇼를 시작해야하기 때문에 이해가 가지 않습니다.변수 자바 스크립트 오류를 ​​찾을 수 없습니다

Reveal.initialize({ 
    // Display controls in the bottom right corner 
    controls: true, 
    // Display a presentation progress bar 
    progress: false, 
    // Click above progress bar for quick navigation - only works if progress is true 
    progressNavigation: true, 
    // If true; each slide will be pushed to the browser history 
    history: false, 
    // Flags if mouse wheel navigation should be enabled 
    mouseWheel: true, 
    // Apply a 3D roll to links on hover 
    rollingLinks: true, 
    // UI style 
    theme: query.theme || 'default', // default/neon 
    // Transition style 
    transition: query.transition || 'concave' // default/cube/page/concave/linear(2d) 
}); 

enlightenment.Thanks을 기다리고 : 여기에 코드입니다.

+1

'Reveal'과 같은 것 같습니다 ... 사용하기 전에 적절한 스크립트를 포함시켜야합니다. 우리가 사용하고있는 라이브러리가 무엇인지 모르기 때문에이 모든 것을 말할 수 있습니다. –

답변

0

이 머리에

   <link rel="stylesheet" href="reveal.css"> 

       /* jQuery needs to be attached */ 
       <script src="jquery.min.js" type="text/javascript"></script> 

       /* Then just attach the Reveal plugin */ 
       <script src="jquery.reveal.js" type="text/javascript"></script> 

및 obivously, 당신이 그 각각을 다운로드하여 프로젝트에 넣어 필요가 간다 - 당신이 그것을 어디서 다운로드라는 링크가 웹 사이트에이 이잖아

+0

사실 더 많은 플러그인이 하나 있기 때문에 어떤 플러그인을 사용하고 있는지 알 수는 없지만 다운로드하여 머리에 참조를 추가 한 다음 스크립트에서 사용할 수 있습니다 –

+0

프레젠테이션 도구는 reveal.js입니다. : http : //lab.hakim.se/reveal-js/#/ – user1521855

+0

관련 라이브러리와 스크립트를 모두 포함했지만 여전히 변수가 필요합니다 – user1521855

관련 문제