亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? galleria.js

?? 一個javascript做的圖片瀏覽特效的代碼
?? JS
字號:
/** * Galleria (http://monc.se/kitchen) * * Galleria is a javascript image gallery written in jQuery.  * It loads the images one by one from an unordered list and displays thumbnails when each image is loaded.  * It will create thumbnails for you if you choose so, scaled or unscaled,  * centered and cropped inside a fixed thumbnail box defined by CSS. *  * The core of Galleria lies in it's smart preloading behaviour, snappiness and the fresh absence  * of obtrusive design elements. Use it as a foundation for your custom styled image gallery. * * MAJOR CHANGES v.FROM 0.9 * Galleria now features a useful history extension, enabling back button and bookmarking for each image. * The main image is no longer stored inside each list item, instead it is placed inside a container * onImage and onThumb functions lets you customize the behaviours of the images on the site * * Tested in Safari 3, Firefox 2, MSIE 6, MSIE 7, Opera 9 *  * Version 1.0 * Februari 21, 2008 * * Copyright (c) 2008 David Hellsing (http://monc.se) * Licensed under the GPL licenses. * http://www.gnu.org/licenses/gpl.txt **/;(function($){var $$;/** *  * @desc Convert images from a simple html <ul> into a thumbnail gallery * @author David Hellsing * @version 1.0 * * @name Galleria * @type jQuery * * @cat plugins/Media *  * @example $('ul.gallery').galleria({options}); * @desc Create a a gallery from an unordered list of images with thumbnails * @options *   insert:   (selector string) by default, Galleria will create a container div before your ul that holds the image. *             You can, however, specify a selector where the image will be placed instead (f.ex '#main_img') *   history:  Boolean for setting the history object in action with enabled back button, bookmarking etc. *   onImage:  (function) a function that gets fired when the image is displayed and brings the jQuery image object. *             You can use it to add click functionality and effects. *             f.ex onImage(image) { image.css('display','none').fadeIn(); } will fadeIn each image that is displayed *   onThumb:  (function) a function that gets fired when the thumbnail is displayed and brings the jQuery thumb object. *             Works the same as onImage except it targets the thumbnail after it's loaded. ***/$$ = $.fn.galleria = function($options) {		// check for basic CSS support	if (!$$.hasCSS()) { return false; }		// init the modified history object	$.historyInit($$.onPageLoad);		// set default options	var $defaults = {		insert      : '.galleria_container',		history     : true,		clickNext   : true,		onImage     : function(image,caption,thumb) {},		onThumb     : function(thumb) {}	};		// extend the options	var $opts = $.extend($defaults, $options);		// bring the options to the galleria object	for (var i in $opts) {		$.galleria[i]  = $opts[i];	}		// if no insert selector, create a new division and insert it before the ul	var _insert = ( $($opts.insert).is($opts.insert) ) ? 		$($opts.insert) : 		jQuery(document.createElement('div')).insertBefore(this);			// create a wrapping div for the image	var _div = $(document.createElement('div')).addClass('galleria_wrapper');		// create a caption span	var _span = $(document.createElement('span')).addClass('caption');		// inject the wrapper in in the insert selector	_insert.addClass('galleria_container').append(_div).append(_span);		//-------------		return this.each(function(){				// add the Galleria class		$(this).addClass('galleria');				// loop through list		$(this).children('li').each(function(i) {						// bring the scope			var _container = $(this);			                			// build element specific options			var _o = $.meta ? $.extend({}, $opts, _container.data()) : $opts;						// remove the clickNext if image is only child			_o.clickNext = $(this).is(':only-child') ? false : _o.clickNext;						// try to fetch an anchor			var _a = $(this).find('a').is('a') ? $(this).find('a') : false;						// reference the original image as a variable and hide it			var _img = $(this).children('img').css('display','none');						// extract the original source			var _src = _a ? _a.attr('href') : _img.attr('src');						// find a title			var _title = _a ? _a.attr('title') : _img.attr('title');						// create loader image            			var _loader = new Image();						// check url and activate container if match			if (_o.history && (window.location.hash && window.location.hash.replace(/\#/,'') == _src)) {				_container.siblings('.active').removeClass('active');				_container.addClass('active');			}					// begin loader			$(_loader).load(function () {								// try to bring the alt				$(this).attr('alt',_img.attr('alt'));								//-----------------------------------------------------------------				// the image is loaded, let's create the thumbnail								var _thumb = _a ? 					_a.find('img').addClass('thumb noscale').css('display','none') :					_img.clone(true).addClass('thumb').css('display','none');								if (_a) { _a.replaceWith(_thumb); }								if (!_thumb.hasClass('noscale')) { // scaled tumbnails!					var w = Math.ceil( _img.width() / _img.height() * _container.height() );					var h = Math.ceil( _img.height() / _img.width() * _container.width() );					if (w < h) {						_thumb.css({ height: 'auto', width: _container.width(), marginTop: -(h-_container.height())/2 });					} else {						_thumb.css({ width: 'auto', height: _container.height(), marginLeft: -(w-_container.width())/2 });					}				} else { // Center thumbnails.					// a tiny timer fixed the width/height					window.setTimeout(function() {						_thumb.css({							marginLeft: -( _thumb.width() - _container.width() )/2, 							marginTop:  -( _thumb.height() - _container.height() )/2						});					}, 1);				}								// add the rel attribute				_thumb.attr('rel',_src);								// add the title attribute				_thumb.attr('title',_title);								// add the click functionality to the _thumb				_thumb.click(function() {					$.galleria.activate(_src);				});								// hover classes for IE6				_thumb.hover(					function() { $(this).addClass('hover'); },					function() { $(this).removeClass('hover'); }				);				_container.hover(					function() { _container.addClass('hover'); },					function() { _container.removeClass('hover'); }				);				// prepend the thumbnail in the container				_container.prepend(_thumb);								// show the thumbnail				_thumb.css('display','block');								// call the onThumb function				_o.onThumb(jQuery(_thumb));								// check active class and activate image if match				if (_container.hasClass('active')) {					$.galleria.activate(_src);					//_span.text(_title);				}								//-----------------------------------------------------------------								// finally delete the original image				_img.remove();							}).error(function () {								// Error handling			    _container.html('<span class="error" style="color:red">Error loading image: '+_src+'</span>');						}).attr('src', _src);		});	});};/** * * @name NextSelector * * @desc Returns the sibling sibling, or the first one ***/$$.nextSelector = function(selector) {	return $(selector).is(':last-child') ?		   $(selector).siblings(':first-child') :    	   $(selector).next();    	   };/** * * @name previousSelector * * @desc Returns the previous sibling, or the last one ***/$$.previousSelector = function(selector) {	return $(selector).is(':first-child') ?		   $(selector).siblings(':last-child') :    	   $(selector).prev();    	   };/** * * @name hasCSS * * @desc Checks for CSS support and returns a boolean value ***/$$.hasCSS = function()  {	$('body').append(		$(document.createElement('div')).attr('id','css_test')		.css({ width:'1px', height:'1px', display:'none' })	);	var _v = ($('#css_test').width() != 1) ? false : true;	$('#css_test').remove();	return _v;};/** * * @name onPageLoad * * @desc The function that displays the image and alters the active classes * * Note: This function gets called when: * 1. after calling $.historyInit(); * 2. after calling $.historyLoad(); * 3. after pushing "Go Back" button of a browser ***/$$.onPageLoad = function(_src) {			// get the wrapper	var _wrapper = $('.galleria_wrapper');		// get the thumb	var _thumb = $('.galleria img[@rel="'+_src+'"]');		if (_src) {				// new hash location		if ($.galleria.history) {			window.location = window.location.href.replace(/\#.*/,'') + '#' + _src;		}				// alter the active classes		_thumb.parents('li').siblings('.active').removeClass('active');		_thumb.parents('li').addClass('active');			// define a new image		var _img   = $(new Image()).attr('src',_src).addClass('replaced');		// empty the wrapper and insert the new image		_wrapper.empty().append(_img);		// insert the caption		_wrapper.siblings('.caption').text(_thumb.attr('title'));				// fire the onImage function to customize the loaded image's features		$.galleria.onImage(_img,_wrapper.siblings('.caption'),_thumb);				// add clickable image helper		if($.galleria.clickNext) {			_img.css('cursor','pointer').click(function() { $.galleria.next(); })		}			} else {				// clean up the container if none are active		_wrapper.siblings().andSelf().empty();				// remove active classes		$('.galleria li.active').removeClass('active');	}	// place the source in the galleria.current variable	$.galleria.current = _src;	}/** * * @name jQuery.galleria * * @desc The global galleria object holds four constant variables and four public methods: *       $.galleria.history = a boolean for setting the history object in action with named URLs *       $.galleria.current = is the current source that's being viewed. *       $.galleria.clickNext = boolean helper for adding a clickable image that leads to the next one in line *       $.galleria.next() = displays the next image in line, returns to first image after the last. *       $.galleria.prev() = displays the previous image in line, returns to last image after the first. *       $.galleria.activate(_src) = displays an image from _src in the galleria container. *       $.galleria.onImage(image,caption) = gets fired when the image is displayed. ***/$.extend({galleria : {	current : '',	onImage : function(){},	activate : function(_src) { 		if ($.galleria.history) {			$.historyLoad(_src);		} else {			$$.onPageLoad(_src);		}	},	next : function() {		var _next = $($$.nextSelector($('.galleria img[@rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');		$.galleria.activate(_next);	},	prev : function() {		var _prev = $($$.previousSelector($('.galleria img[@rel="'+$.galleria.current+'"]').parents('li'))).find('img').attr('rel');		$.galleria.activate(_prev);	}}});})(jQuery);/** * * Packed history extension for jQuery * Credits to http://www.mikage.to/ ***/jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(callback){jQuery.historyCallback=callback;var current_hash=location.hash;jQuery.historyCurrentHash=current_hash;if(jQuery.browser.msie){if(jQuery.historyCurrentHash==''){jQuery.historyCurrentHash='#'}$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=current_hash}else if($.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.isFirst=true}jQuery.historyCallback(current_hash.replace(/^#/,''));setInterval(jQuery.historyCheck,100)},historyAddHistory:function(hash){jQuery.historyBackStack.push(hash);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentDocument||ihistory.contentWindow.document;var current_hash=iframe.location.hash;if(current_hash!=jQuery.historyCurrentHash){location.hash=current_hash;jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''))}}else if($.browser.safari){if(!jQuery.dontCheck){var historyDelta=history.length-jQuery.historyBackStack.length;if(historyDelta){jQuery.isFirst=false;if(historyDelta<0){for(var i=0;i<Math.abs(historyDelta);i++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop())}else{for(var i=0;i<historyDelta;i++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift())}var cachedHash=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(cachedHash!=undefined){jQuery.historyCurrentHash=location.hash;jQuery.historyCallback(cachedHash)}}else if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf('#')>=0){jQuery.historyCallback(document.URL.split('#')[1])}else{var current_hash=location.hash;jQuery.historyCallback('')}jQuery.isFirst=true}}}else{var current_hash=location.hash;if(current_hash!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=current_hash;jQuery.historyCallback(current_hash.replace(/^#/,''))}}},historyLoad:function(hash){var newhash;if(jQuery.browser.safari){newhash=hash}else{newhash='#'+hash;location.hash=newhash}jQuery.historyCurrentHash=newhash;if(jQuery.browser.msie){var ihistory=$("#jQuery_history")[0];var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=newhash;jQuery.historyCallback(hash)}else if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(hash);var fn=function(){jQuery.dontCheck=false};window.setTimeout(fn,200);jQuery.historyCallback(hash);location.hash=newhash}else{jQuery.historyCallback(hash)}}});

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一卡二卡欧美日韩| 国产91对白在线观看九色| 99久精品国产| 亚洲品质自拍视频| 99久久99久久久精品齐齐| 国产无一区二区| 成人午夜伦理影院| 国产精品欧美精品| 91视频免费观看| 亚洲成人av一区二区| 欧美性猛交xxxx黑人交| 亚洲成人在线观看视频| 337p亚洲精品色噜噜狠狠| 日本网站在线观看一区二区三区| 欧美精品 日韩| 国产激情偷乱视频一区二区三区| 国产欧美日韩三级| 91年精品国产| 日韩avvvv在线播放| 久久久久久久久久久久久久久99| 国产91精品精华液一区二区三区 | 亚洲一区视频在线| 7777精品伊人久久久大香线蕉 | 日本一区二区久久| 欧美性做爰猛烈叫床潮| 日韩精品久久久久久| 久久精品网站免费观看| 91污片在线观看| 蜜臀精品久久久久久蜜臀| 亚洲欧洲日产国产综合网| 777亚洲妇女| 色婷婷综合在线| 激情偷乱视频一区二区三区| 亚洲国产一区二区a毛片| 欧美精品v日韩精品v韩国精品v| 国产高清精品在线| 美女视频网站久久| 午夜精品免费在线观看| 国产精品乱码一区二区三区软件| 日韩欧美一区二区三区在线| 在线观看一区不卡| 成人av免费观看| 丁香啪啪综合成人亚洲小说| 久久精品久久久精品美女| 亚洲欧美另类久久久精品| 国产日韩欧美精品电影三级在线| 日韩一区二区麻豆国产| 欧美在线不卡视频| 欧美三级三级三级爽爽爽| 91网站黄www| 99视频国产精品| 97久久超碰国产精品| 99视频超级精品| 色婷婷av一区二区三区大白胸 | 一区二区三区在线看| 中文字幕免费观看一区| 亚洲午夜精品一区二区三区他趣| 国产欧美一区二区精品性色超碰| 精品剧情v国产在线观看在线| 日韩三级伦理片妻子的秘密按摩| 91麻豆精品国产91久久久资源速度 | 99久久99久久综合| 色综合久久久久网| 欧美日韩高清在线播放| 精品日韩欧美在线| 中文字幕精品一区二区精品绿巨人| 国产精品视频一二三区| 亚洲精品网站在线观看| 日韩精品国产精品| 国产精品 欧美精品| 99久久精品免费看| 欧美色精品在线视频| 日韩一区二区三区观看| 欧美国产日本视频| 亚洲成a人在线观看| 国产一区二区0| 日本道色综合久久| 久久久影视传媒| 亚洲成人第一页| www.亚洲免费av| 日韩一区二区三区高清免费看看 | 欧美激情综合在线| 丝袜美腿成人在线| 色综合天天狠狠| 精品国产一区二区三区忘忧草| 一区二区激情视频| 国内精品伊人久久久久av影院| 91麻豆高清视频| 久久久久久**毛片大全| 日韩二区三区在线观看| 99re热视频精品| 国产精品入口麻豆原神| 精品亚洲成a人在线观看| 欧美日韩国产一二三| 亚洲精品福利视频网站| www.亚洲精品| 最新国产精品久久精品| 成人免费黄色大片| 国产精品国产精品国产专区不蜜| 久久99国产精品久久| 91精品国产综合久久精品app| 亚洲欧美偷拍三级| 91在线视频网址| 亚洲精品第一国产综合野| 色香蕉成人二区免费| 亚洲第一电影网| 91精品国产欧美一区二区| 日韩精品久久理论片| 精品国偷自产国产一区| 国产一区二区三区免费| 欧美国产一区视频在线观看| proumb性欧美在线观看| 亚洲欧美一区二区不卡| 欧美亚洲综合色| 日韩福利电影在线| 欧美mv和日韩mv的网站| 国产成人综合精品三级| 一区二区三区四区不卡视频| 欧美色成人综合| 国产乱一区二区| 亚洲一区在线观看免费| 精品对白一区国产伦| 不卡的av电影| 久久国产麻豆精品| 一区二区三区.www| 久久精品日韩一区二区三区| 欧美在线啊v一区| 经典三级一区二区| 午夜视频一区二区| 伊人色综合久久天天| 久久久亚洲精品一区二区三区| 在线观看成人小视频| 国产精品一区二区三区99| 五月激情六月综合| 亚洲资源在线观看| 亚洲区小说区图片区qvod| 国产无人区一区二区三区| 精品视频全国免费看| 成人午夜碰碰视频| 国产精品一区久久久久| 青青草伊人久久| 日韩av中文字幕一区二区三区| 亚洲视频在线观看一区| 国产亚洲欧洲一区高清在线观看| 91麻豆精品国产综合久久久久久| 在线精品视频免费播放| 色婷婷久久99综合精品jk白丝| 丁香一区二区三区| 成人在线视频首页| 色综合天天性综合| 在线观看日产精品| 欧美亚州韩日在线看免费版国语版| 97精品电影院| 精品视频一区二区三区免费| 精品视频免费在线| 日韩精品在线网站| 国产三级欧美三级日产三级99| 国产调教视频一区| 中文字幕一区二区在线观看| 亚洲人妖av一区二区| 一区二区三区国产精华| 亚洲成人免费在线观看| 黄一区二区三区| 91一区二区三区在线播放| 91麻豆国产自产在线观看| 欧美色大人视频| 国产午夜精品一区二区三区视频| 国产精品久久三| 五月天婷婷综合| 成人一区二区三区中文字幕| 日本道色综合久久| 久久综合视频网| 亚洲国产va精品久久久不卡综合| 精品在线一区二区| 欧美主播一区二区三区| 久久久不卡影院| 婷婷久久综合九色综合绿巨人| 国产在线观看免费一区| 欧美日韩一卡二卡三卡| 久久午夜羞羞影院免费观看| 亚洲一区二区精品3399| 国产精品1区2区3区| 91精品国产综合久久久久久久 | 欧美日韩国产经典色站一区二区三区| 日韩一区二区在线免费观看| 亚洲视频免费观看| 国产成人av在线影院| 日韩三级在线观看| 日韩综合在线视频| 欧美自拍偷拍一区| 午夜亚洲福利老司机| 在线亚洲精品福利网址导航| 欧美人体做爰大胆视频| 日韩一区二区免费视频| 欧美激情综合五月色丁香| 一区二区三区在线观看国产| 中文字幕一区二区三区四区不卡| 亚洲乱码中文字幕| 国产aⅴ综合色| 国产成人免费视频网站 |