차근차근/JQuery Ajax Jstl

터치 이미지 슬라이드

예쁜꽃이피었으면 2014. 12. 24. 10:01

http://bxslider.com/



jquery.bxslider.zip



The Responsive jQuery Content Slider

 Resize your browser to see the slider adapt

How to install

Step 1: Link required files

First and most important, the jQuery library needs to be included (no need to download - link directly from Google). Next, download the package from this site and link the bxSlider CSS file (for the theme) and the bxSlider Javascript file.

<!-- jQuery library (served from Google) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!-- bxSlider Javascript file -->
<script src="/js/jquery.bxslider.min.js"></script>
<!-- bxSlider CSS file -->
<link href="/lib/jquery.bxslider.css" rel="stylesheet" />

Step 2: Create HTML markup

Create a <ul class="bxslider"> element, with a <li> for each slide. Slides can contain images, video, or any other HTML content!

<ul class="bxslider">
  <li><img src="/images/pic1.jpg" /></li>
  <li><img src="/images/pic2.jpg" /></li>
  <li><img src="/images/pic3.jpg" /></li>
  <li><img src="/images/pic4.jpg" /></li>
</ul>

Step 3: Call the bxSlider

Call .bxslider() on <ul class="bxslider">. Note that the call must be made inside of a $(document).ready() call, or the plugin will not work!

$(document).ready(function(){
  $('.bxslider').bxSlider();
});


반응형

'차근차근 > JQuery Ajax Jstl' 카테고리의 다른 글

Ajax 오류 메시지  (0) 2015.01.19
jQuery Cycle Plugin - 이미지 슬라이드  (0) 2014.12.24
Jquery 로 tab(탭) 구현하기  (0) 2014.11.14
hashchange event  (0) 2014.10.28
이미지 확대 효과 (돋보기 효과)  (0) 2014.10.20