가로 웹 페이지에서 뒤로 버튼으로 어려움을 겪고 있습니다. 현재 내가 backbutton을 사용하는 방법은 onclick = "history.go (-1)입니다. 문제는 다른 모든 버튼에서 발생하는 슬라이딩을 사용하지 못하게하는 것입니다. 나머지 웹 사이트는 잘 작동하지만, 이것은 내가 통제 할 수있는 유일한 버그입니다. 다음 웹 사이트를 방문하십시오 : www.gerardsteurvormgeving.nlanimated.scrollleft에서 history.back 사용
일부 코드는 내가 사용하는 코드입니다. "terug"onclick = "history.go (-1) 및이 텍스트에서 찾을 수있는 자바 스크립트입니다. 누군가 도와 주시면 감사하겠습니다. !!!! 미리 감사드립니다!
모두 최고입니다. ,
제라드
<!-- JavaScript -->
<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script src="main.js"></script>
<script type="text/javascript">
$(function() {
$('.blue').bind('click', function (event) {
history.pushState({}, '', $(this).attr("href"));
var $anchor = $(this);
$('html, body').stop().animate({
scrollLeft: $($anchor.attr('href')).offset().left - ($(window).width() - $($anchor.attr('href')).width())/2
}, 2500);
event.preventDefault();
});
});
HTML
<a class="blue" href="#section4" title="home" style="position: absolute; left: 94.99%; top: 7.22%; width: 0.31%; height: 3.47%; z-index: 2;"></a>
<a class="blue" href="#section2" title="contact" style="position: absolute; left: 94.92%; top: 13.06%; width: 0.46%; height: 3.33%; z-index: 2;"></a>
<a class="blue" title="terug" onclick="history.go(-1)" style="position: absolute; left: 94.96%; top: 27.64%; width: 0.38%; height: 3.75%; z-index: 2;"> </a>
<a class="blue" href="#section1" title="download pagina" style="position: absolute; left: 98.11%; top: 71.25%; width: 0.93%; height: 9.86%; z-index: 2;"></a>
<a href="subpages/7 trainingen en de teamdag/sociale vaardigheden.html" title="de keuze re-integratie trainingen - sociale vaardigheden" style="position: absolute; left: 96.46%; top: 22.22%; width: 1.88%; height: 6.53%; z-index: 2;"></a>
<a href="subpages/7 trainingen en de teamdag/beroepsorientatie.html" title="de keuze re-integratie trainingen - beroepsorientatie" style="position: absolute; left: 96.6%; top: 41.67%; width: 1.67%; height: 6.53%; z-index: 2;"></a>
<a href="subpages/7 trainingen en de teamdag/solliciteren.html" title="de keuze re-integratie trainingen - sollicitatie trainingen" style="position: absolute; left: 96.76%; top: 57.92%; width: 1.26%; height: 9.86%; z-index: 2;"></a>
</div>
안녕하세요, 답장을 보내 주셔서 감사합니다. 내 뒤로 버튼에 history.js를 사용하려고 시도했으며 뒤로 버튼을 구현하는 방법에 대한 많은 문서를 조회했습니다. 나는 그것을 뒤로 슬라이드하게 만들려고했지만, 나는 단지 올바른 코드를 얻을 수 없었다! 나를 올바른 방향으로 인도 할 수있게 도와 주시겠습니까? 나는 HTML 태그를 자바 스크립트와 일치시키는 법을 모른다. 그래서 슬라이드하고 돌아 간다. 미리 감사드립니다. !!! – TheImagery