알라딘서재

알라딘TTB공식블로그
img {border: 0;} 1 3 5 2 4 http://blog.aladin.co.kr/trackback/ttb/3285367 $(document).ready(function() { //Set Default State of each portfolio piece $(".paging").show(); $(".paging:first").addClass("active"); rotate = function(){ var triggerID = $active.attr("alt"); $(".paging").removeClass('active'); $active.addClass('active'); replaceImg($active.attr("alt")); $("#image_reel").attr("src","http://image.aladin.co.kr/img/blog/100621_mobile_ip0"+triggerID+".jpg"); }; //Rotation + Timing Event rotateSwitch = function(idx){ play = setInterval(function(){ if(idx > 5) $active = $('.paging:first'); else { var obj; $(".paging").each(function() { if($(this).attr("alt") == idx) { obj = $(this); } }); $active = obj; } ++idx; rotate(); //Trigger the paging and slider function }, 3000); //Timer speed in milliseconds (3 seconds) }; rotateSwitch(2); //Run function on launch $(".paging").mouseover(function() { $active = $(this); clearInterval(play); rotateSwitch($(this).attr("alt")); rotate(); return false; }); replaceImg = function(idx) { $(".paging").each(function() { if($(this).attr("alt") == idx) $(this).attr("src",$(this).attr("src").replace("_off","_on")); else $(this).attr("src",$(this).attr("src").replace("_on","_off")); }); } });

  • 댓글쓰기
  • 좋아요
  • 공유하기 5) $active = $('.paging:first'); else { var obj; $(".paging").each(function() { if($(this).attr("alt") == idx) { obj = $(this); } }); $active = obj; } ++idx; rotate(); //Trigger the paging and slider function }, 3000); //Timer speed in milliseconds (3 seconds) }; rotateSwitch(2); //Run function on launch $(".paging").mouseover(function() { $active = $(this); clearInterval(play); rotateSwitch($(this).attr("alt")); rotate(); return false; }); replaceImg = function(idx) { $(".paging").each(function() { if($(this).attr("alt") == idx) $(this).attr("src",$(this).attr("src").replace("_off","_on")); else $(this).attr("src",$(this).attr("src").replace("_on","_off")); }); } }); " />
  • 찜하기
로그인 l PC버전 l 전체 메뉴 l 나의 서재