0
colorbox를 만들었고 정상적으로 작동합니다. 문제는 내가 닫을 때 페이지에 다른 색상 상자를 열면 두 색상 상자가로드됩니다 (두 번째 색상 상자 바로 뒤에있는 첫 번째 색상 상자). 닫은 후 다른 하나를 열면 세 개의 컬러 박스 등이 생깁니다.Colorbox가 이전의 모든 colorbox를로드합니다.
Drupal 7보기에서이 작업을 수행하고 있으며 모든 이미지 필드에 colorbox 링크를 추가하고 있습니다.
colorboxes 호출에 대한 나의 코드 : ('.보기 필드 필드 - 갤러리 - 이미지 .field 콘텐츠 IMG').
$ 각 (함수() {
nid = $(this).parent().parent().parent().find('.views-field-nid .field-content').html();
href = $(this).attr('href');
//$(this).attr('href', 'gallery-slideshow/' + nid +'?width=500&height=500&iframe=true');
href = 'gallery-slideshow/' + nid;
$(this).colorbox({href: href});
//$(this).attr('href', 'http://www.cnn.com?width=500&height=500&iframe=true');
//$(this).addClass('colorbox-load init-colorbox-load-processed cboxElement');
});
당신이 왜이 코드를 사용하여 설명하십시오 수 는이 colorbox를 엽니 다 뷰 자체에서 출력을 다시 작성할 수 있습니다 ?.필요한 기능을 적어 두십시오. 그러면 필요한 결과를 얻을 수 있도록 도와 줄 수 있습니다. – Aniruddhsinh