Java Script/carou Fred Sel에서 img 대신 text 영역을 사용


JavaScript
  1.     $('#scrollFrame').carouFredSel({
  2. ...
  3.      onBefore: function() {
  4.         $(this).children('div').css('float','left');
  5.         $(this).children('div').css('display','block');
  6.       },
  7.       onAfter: function() {
  8.         $(this).children('div').css('float','');
  9.         $(this).children('div').css('display','');
  10.       }
  11. });

HTML
  1. <div class="main_sol_product mt10" id="scrollFrame">
  2.             <div>텍스트1</div> // item 1
  3.             <div>텍스트2<br/>텍스트2</div> // item 2
  4.             <img src="/images/main_product_1.gif" alt="main_product_1" /> // item 3
  5.             <li> // item 4
  6.             <img src="/images/main_product_2.gif" alt="main_product_2" />
  7.             <img src="/images/main_product_3.gif" alt="main_product_3" />
  8.             </li>
  9. </div>


이 글에는 0 개의 댓글이 있습니다.