differents jquery plugin 사이를 전환하고 싶습니다. 다른 플러그인이 활성화되었을 때 비활성화 (비활성화)합니다.enable jquery script onclick 활성화
나는 touchslider (github.com/iosscripts/iosSlider)와 3D 뷰어 (github.com/creativeaura/threesixty-slider)가있는 html 페이지가 있습니다.
단추 덕분에 2D보기 (iosslider)와 3D보기 (3 개의 60 슬라이더) 사이를 전환하고 싶습니다. 한 번에 하나만 활성화하면됩니다.
나는 (3D 뷰어가 작동하지 않습니다 내가 왜 몰라) 바이올린을 만든 : (여기http://fiddle.jshell.net/TL72w/1/는 2D 및 3D 뷰가 잘 작동 내 웹 사이트,하지만 약간의 충돌이 그들 때문에) 같은 시간에 활성화 : 영어
이$(document).ready(function() {
$("a.on.tggl").click(function() {
$(this).addClass("active");
$(this).next(".tggl").removeClass("active");
$('.container-iosSlider').css('display', 'block');
$('.360-viewer').css('display', 'none');
$('.custom_nav_bar').css('display', 'none');
return false;
});
$("a.off.tggl").click(function() {
$(this).addClass("active");
$(this).prev(".tggl").removeClass("active");
$('.container-iosSlider').css('display', 'none');
$('.360-viewer').css('display', 'block');
$('.custom_nav_bar').css('display', 'block');
return false;
});
$("a.on.pshbtn").click(function() {
$(this).addClass("active");
$("a.off.pshbtn").removeClass("active");
return false;
});
$("a.off.pshbtn").click(function() {
$(this).addClass("active");
$("a.on.pshbtn").removeClass("active");
return false;
});
});
미안 해요, 난 '다음 2D 및 3D 뷰어 (I)가 비활성화 JQuery와 뷰어를 가능하게 추가 할 수 없음이 표시 스크립트가 http://freakyshape.com/
프랑스
http://api.jquery.com/off/ 대답 주셔서 감사합니다. unbin() 또는 off()가 필요한지 확실하지 않습니다. 예를 들어, 페이지가로드되면 3D 뷰어가로드됩니다. 페이지로드시 아무 것도 표시하지 않으면 3D 토글 버튼을 클릭 할 때 3D 뷰어 스크립트를로드해야하므로 표시되지 않습니다. 스크립트를로드하고 클릭 버튼에서 스크립트를 언로드하고 싶습니다. – lolo