1
메뉴의 변경 카테고리에서 현재 픽롯 박스 갤러리 링크를 비활성화하려고합니다. 내 HTML That`s : 나는 완전히 pirobox을 제거하기 위해 노력하고활성 픽록 박스 링크 동적 변경 세트
<ul class="thumbs">
<li><a class="wedding" href="..." rel="iframe-201-113""><img src="..."></a></li>
<li><a class="funeral" href="..." rel="iframe-201-113""><img src="..."></a></li>
<li><a class="ceremony" href="..." rel="iframe-201-113""><img src="..."></a></li>
<li><a class="wedding" href="..." rel="iframe-201-113""><img src="..."></a></li>
...
</ul>
, 다른 링크 및 실행 pirobox에 대한 설정 'pirobox_'접두사 다시,하지만 난 pirobox을 죽일은`t. 이전에 초기화 된 링크는 여전히 작동합니다.
//On choise category
$('.nav li a').click(function(){
//kill pirobox
$($.piroBox_ext).remove();
$(".piro_overlay").remove();
$(".pirobox_content").remove();
$("#imgCache").remove();
//replace prefixes
$('ul.thumbs a').each(function(){
$(this).attr('class',$(this).attr('class').replace(/pirobox_/,''))
});
$('ul.thumbs a.'+current).each(function(){
$(this).attr('class','pirobox_'+$(this).attr('class'));
});
//init pirobox again
$().piroBox_ext({
piro_speed : 700,
bg_alpha : 0.5,
piro_scroll : true
});
return false;
});
$ .piroBox_ext이게 뭐지? –
pirobox 라이브러리의 메소드. http://www.pirolab.it/pirobox/ –