jQ Cycle 호출기 축소판에 Google Analytics 이벤트 태그를 적용하려고합니다.jQuery주기 - 페이징 엄지 손가락에서 Google Analytics 이벤트 추적
처음에는 기본 슬라이드가 해당 이벤트 추적 스크립트에 적용되었으며 미리보기 이미지 페이징도이 시점에서 정상적으로 작동합니다. 그러나 이벤트 추적을 pagerAnchorBuilder 콜백 함수에 적용하면 축소판이 사라지고 기본 슬라이드가 표시되지만 사이클이 중지됩니다. 효과적으로 모든 것이 중지됩니다.
저는 앵커 링크가있는 슬라이드를 사용하고 있습니다 : http://jquery.malsup.com/cycle/anchor.html 그리고 나는이 이전 게시물 인 'undefined'페이저 버크를 가지고 있습니다. 아래의 코드에서도 볼 수 있습니다 : jQuery Cycle plugin pagerAnchorBuilder images becoming undefined.
pagerAnchorBuilder: function(idx, slide) {
var slideurl = $('#slideshow a', this).attr('href');
return '<li class="slider-thumb"><a href="'+slide.href+'" title="'+slide.title+'" onClick="_gaq.push(['_trackEvent', 'Home-Slider-Thumb', '+slide.title+', '+slide.href+']);"><img src="'+ $(slide).find('img').attr('src')+'" width="50" height="50" class="thumb-image" /></a><p class="slide-caption">'+ $(slide).find('img').attr('alt')+'</p></li>';
}
안녕하세요 크리스천이 돌아 오셔서 감사 드리며, 꿈을 이룹니다. 감사 – redplanet