2014-04-18 18 views
0

안녕하세요 모든 자바 스크립트를 사용하여 매우 새로운 그리고 난이 jquery.fullpage.js 스크롤 기능을 작동, https://github.com/alvarotrigo/fullPage.js#fullpagejs 그리고 내가 어떻게 설치해야하는지 잘 모르겠다.joomla 템플릿에 jquery.fullPage.js

내 코드 : 나는 몇 시간 동안이와 trixing하고있다

<html> 
    <head> 
    <link href="/mysite/css/jquery.fullPage.css" rel="stylesheet"> 
    <script src="/mysite/js/jquery.fullPage.js"> 
    </head> 
    <body> 
    <div class="section active"> 
     MYCONTENT 
    </div> 
    <div class="section"> 
     MYCONTENT 
    </div> 
    </body> 
</html> 
+0

Joomla에서이 작업을 수행하고 있습니까? 몇 가지 세부 사항을 추가해야합니다. – Elin

+0

위와 비슷한 구조로 템플릿을 만드는 것이 좋습니다. – ilias

+2

이것이 Joomla의 일부인 것이 확실합니까? – Lodder

답변

1

쉬운

이 내 템플릿 Joomla입니다! (예)

<head> 
//here you put the code that gets the source files for fullpage.js which you find on the github link// 
</head> 

<body> 
//here is your body and it probably have tons of <div> elements in it, in different levels like this: 
<div> 
    <div> 
     <div> 
    //here you can for example find a line of php that renders a module. 
    </div> 
    </div> 
</div> 

난 내 줌라 사이트에 fullpage.js을 구현하려고 할 때 내가 잘못했던 것은 내가 어디에 body 태그 후 레벨 2에 없었다 사업부에 섹션 클래스 퍼팅이었다

무엇 내가 그와 함께 설명 할 것은 :

<body> 
<div id="fullpag <<-this is where fullpage starts"> 
    <div class="section" > 
    YOUR CONTENT 
    </div> 
</div> 

는 ID fullpage이있는 사업부는 항상 첫 번째 레벨과 body 태그에 이어 두 번째 수준에서 항상 섹션에서 시작해야한다, 내가 진짜이 없습니다 나에 대한 이름 전화 수준 그러나 나는 모두가 이해하기를 바란다.

관련 문제