2011-07-26 5 views
1

jqtouch 애니메이션 효과를 사용하고 싶습니다. 내 시나리오는 first.html 및 second.html이라는 두 개의 html 페이지가 있다고 가정합니다. First.html에는 second.html을 참조하는 앵커 태그가 있습니다. 또한 second.html에는 first.html을 참조하는 앵커 태그가 있습니다.이 href를 통해 쿼리 매개 변수도 전달합니다.이 페이지 사이에 애니메이션 효과가 있어야합니다.JQTOUCH 애니메이션 효과가 별도의 페이지에서 작동하지 않습니다.

샘플 응용 프로그램이 같은 페이지 자체에 효과를 표시하므로 jqtouch를 사용하여 효과를 줄 수 없습니다.이 효과에 관해 도움을주십시오. 스크립트에서 변경해야 할 사항과 샘플 코드를 제공해야합니다.

답변

2

당신이 JQTouch Animations Wiki에 addydmasi에서 제공하는 제안을 시도 해 봤나 감사? 관련 참조를 쉽게 참조 할 수 있도록 붙여 넣기 :

To those who want to animate between two separate web pages, try this in your <body>: 

<div id="main"><ul><li><a href="#page1" class="slide">Go to another page</a></li></ul></div> 
<div id="page1"><iframe src="http://google.com">Error</iframe></div> 
Replace the src with the file name of the second page and also "page1" with any other name. Then add this to your <head>: 

<style type="text/css">div>iframe{width:100%;height:100%;margin:0;padding:0;border-width:0;}</style> 

알려 주시면 알려주세요.

+0

안녕하세요. 답변을 주셔서 감사합니다. 여러 가지 방법을 시도했지만 iframe이 남아 있으므로 시도해 보겠습니다. –

관련 문제