avalonbyeaw.com의 nav에 scrollTo 스크립트가 성공적으로 구현되었으며 내 클라이언트가 홈페이지의 링크를 추가하려고합니다. 진정해? 나는 그렇지 않다. 스크롤하지 않을뿐만 아니라 nav 링크에서 제거한 URL에 #finishes
을 추가합니다. 나는 어딘가에 함수에 대한 링크를 추가 할 필요가 있다고 생각한다. 나는 그것을 이해할 수 없다.scrollTo 플러그인이 외부 탐색 링크가 아닙니다.
<div id="nav-finishes" class="nav"><a href="#finishes" class="panel panel-finishes" alt="finishes"><img src="images/spacer.gif" height="10" width="79" border="0" /></a></div>
비 작동 링크 piecemaker의 XML 피드에 추가 탐색 링크 HTML 작업
자바 스크립트
$(document).ready(function() {
$('a.panel').click(function() {
$('a.panel').removeClass('selected');
$(this).addClass('selected');
current = $(this);
$('#wrapper').scrollTo($(this).attr('href'), 800);
return false;
});
$(window).resize(function() {
resizePanel();
});
});
function resizePanel() {
width = $(window).width();
height = $(window).height();
mask_width = width * $('.item').length;
$('#debug').html(width + ' ' + height + ' ' + mask_width);
//$('#wrapper, .page').css({width: width, height: height});
//$('#stage').css({width: mask_width, height: height});
$('#wrapper').scrollTo($('a.selected').attr('href'), 0);
}
<Text><p>Avalon by EAW features automotive-class finishes on all trim pieces. <a href="#finishes" class="panel">Optional premium enclosure finishes</a> set these systems in a class by themselves.</p></Text>
을 제거 할 수 있습니다를, 철자가 맞으면 도움이 될 것입니다. 잘 링크하지만 애니메이션을 만들지 않습니다. 여전히 그 부분을 이해할 수는 없습니다. 누군가? –
플래시 내부에서 js 환경에 액세스하는 방법을 알고 있습니까? – Fresheyeball
귀하의 링크가 표준 행동을 취하고 있습니다. – Fresheyeball