티스토리 뷰
jQuery HTML5 Fullscreen Slideshow
This jQuery plugin lets you create fullscreen galleries where the slides are shown on the entire screen using the fullscreen APIs provided by Firefox 10+ and Chrome 15+ (and possibly Safari 5.1+).
In all other browsers it falls back to displaying the slideshow in the entire viewport.
Example (click image to view)
Pictures take from Wikimedia Commons Picture of the Year 2007.
Usage
$(function(){ // initialize the slideshow $('.image img').fullscreenslides(); // All events are bound to this container element var $container = $('#fullscreenSlideshowContainer'); $container //This is triggered once: .bind("init", function() { // The slideshow does not provide its own UI, so add your own // check the fullscreenstyle.css for corresponding styles $container .append('<div class="ui" id="fs-close">×</div>') .append('<div class="ui" id="fs-loader">Loading...</div>') .append('<div class="ui" id="fs-prev"><</div>') .append('<div class="ui" id="fs-next">></div>') .append('<div class="ui" id="fs-caption"><span></span></div>'); // Bind to the ui elements and trigger slideshow events $('#fs-prev').click(function(){ // You can trigger the transition to the previous slide $container.trigger("prevSlide"); }); $('#fs-next').click(function(){ // You can trigger the transition to the next slide $container.trigger("nextSlide"); }); $('#fs-close').click(function(){ // You can close the slide show like this: $container.trigger("close"); }); }) // When a slide starts to load this is called .bind("startLoading", function() { // show spinner $('#fs-loader').show(); }) // When a slide stops to load this is called: .bind("stopLoading", function() { // hide spinner $('#fs-loader').hide(); }) // When a slide is shown this is called. // The "loading" events are triggered only once per slide. // The "start" and "end" events are called every time. // Notice the "slide" argument: .bind("startOfSlide", function(event, slide) { // set and show caption $('#fs-caption span').text(slide.title); $('#fs-caption').show(); }) // before a slide is hidden this is called: .bind("endOfSlide", function(event, slide) { $('#fs-caption').hide(); }); });
License
© Copyright 2012 by Eike Send
The code is licensed under the MIT and the GPLv2 Licenses, just like jQuery.
출처:http://eikes.github.com/jquery.fullscreen.js/?utm_source=html5weekly&utm_medium=email
'Software Story' 카테고리의 다른 글
Facebook 내 프로필의 보안과 나의 명성을 알아 봅시다!!! Secure.me (0) | 2012.05.09 |
---|---|
개발자 사람이라면 당연 최고의 폰트!!!! Bitstream vera sans mono + 맑은 고딕 (0) | 2012.04.25 |
The Windows NT Command Shell (0) | 2011.03.06 |
Windows CMD 정릴 (0) | 2011.03.06 |
New JS APIs of HTML5 (1) | 2010.07.29 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- /etc/sysconfig/i18n
- /usr/lib/jni
- 1.3
- 1.5.1
- 1.8.x
- 12.04
- 12.10
- 13
- 3.0
- 3G
- 3월
- 4.0
- 4.0+
- 4.X
- 4G
- 5
- 64
- 64bit
- 777
- admin
- Adobe
- adobe air
- Adobeair
- Air
- ajax
- AJP
- Altool
- Altool bar
- AMD64
- Andoird
- Andrew's Eggtart
- Andrew's Eggtart & Coffee
- android
- Angel in Us
- Apache
- Apache + PHP 설치
- Apache + PHP 수동 설치
- Apache + PHP 수동 세팅
- API
- APIS
- APM 설치
- APM설치
- apple
- Application
- apps
- apt-get
- apt-get --purge
- Band of Dynamic Brothers
- Beta
- Big sur
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함