web/rsln-opendata/res/jquery.fancybox/index.html
changeset 120 3daa4039509a
parent 119 4c86151704e9
child 121 2b794b7901d6
equal deleted inserted replaced
119:4c86151704e9 120:3daa4039509a
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
     3 <head>
       
     4 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
       
     5 	<meta http-equiv="imagetoolbar" content="no" />
       
     6 	<title>FancyBox 1.3.4 | Demonstration</title>
       
     7 	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
       
     8 	<script>
       
     9 		!window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');
       
    10 	</script>
       
    11 	<script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
       
    12 	<script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>
       
    13 	<link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" />
       
    14  	<link rel="stylesheet" href="style.css" />
       
    15 	<script type="text/javascript">
       
    16 		$(document).ready(function() {
       
    17 			/*
       
    18 			*   Examples - images
       
    19 			*/
       
    20 
       
    21 			$("a#example1").fancybox();
       
    22 
       
    23 			$("a#example2").fancybox({
       
    24 				'overlayShow'	: false,
       
    25 				'transitionIn'	: 'elastic',
       
    26 				'transitionOut'	: 'elastic'
       
    27 			});
       
    28 
       
    29 			$("a#example3").fancybox({
       
    30 				'transitionIn'	: 'none',
       
    31 				'transitionOut'	: 'none'	
       
    32 			});
       
    33 
       
    34 			$("a#example4").fancybox({
       
    35 				'opacity'		: true,
       
    36 				'overlayShow'	: false,
       
    37 				'transitionIn'	: 'elastic',
       
    38 				'transitionOut'	: 'none'
       
    39 			});
       
    40 
       
    41 			$("a#example5").fancybox();
       
    42 
       
    43 			$("a#example6").fancybox({
       
    44 				'titlePosition'		: 'outside',
       
    45 				'overlayColor'		: '#000',
       
    46 				'overlayOpacity'	: 0.9
       
    47 			});
       
    48 
       
    49 			$("a#example7").fancybox({
       
    50 				'titlePosition'	: 'inside'
       
    51 			});
       
    52 
       
    53 			$("a#example8").fancybox({
       
    54 				'titlePosition'	: 'over'
       
    55 			});
       
    56 
       
    57 			$("a[rel=example_group]").fancybox({
       
    58 				'transitionIn'		: 'none',
       
    59 				'transitionOut'		: 'none',
       
    60 				'titlePosition' 	: 'over',
       
    61 				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
       
    62 					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
       
    63 				}
       
    64 			});
       
    65 
       
    66 			/*
       
    67 			*   Examples - various
       
    68 			*/
       
    69 
       
    70 			$("#various1").fancybox({
       
    71 				'titlePosition'		: 'inside',
       
    72 				'transitionIn'		: 'none',
       
    73 				'transitionOut'		: 'none'
       
    74 			});
       
    75 
       
    76 			$("#various2").fancybox();
       
    77 
       
    78 			$("#various3").fancybox({
       
    79 				'width'				: '75%',
       
    80 				'height'			: '75%',
       
    81 				'autoScale'			: false,
       
    82 				'transitionIn'		: 'none',
       
    83 				'transitionOut'		: 'none',
       
    84 				'type'				: 'iframe'
       
    85 			});
       
    86 
       
    87 			$("#various4").fancybox({
       
    88 				'padding'			: 0,
       
    89 				'autoScale'			: false,
       
    90 				'transitionIn'		: 'none',
       
    91 				'transitionOut'		: 'none'
       
    92 			});
       
    93 		});
       
    94 	</script>
       
    95 </head>
       
    96 <body>
       
    97 <div id="content">
       
    98 	<h1>fancybox <span>v1.3.4</span></h1>
       
    99 
       
   100 	<p>This is a demonstration. <a href="http://fancybox.net">Home page</a></p>
       
   101 
       
   102 	<hr />
       
   103 
       
   104 	<p>
       
   105 		Different animations<br />
       
   106 
       
   107 		<a id="example1" href="./example/1_b.jpg"><img alt="example1" src="./example/1_s.jpg" /></a>
       
   108 
       
   109 		<a id="example2" href="./example/2_b.jpg"><img alt="example2" src="./example/2_s.jpg" /></a>
       
   110 
       
   111 		<a id="example3" href="./example/3_b.jpg"><img alt="example3" src="./example/3_s.jpg" /></a>
       
   112 		
       
   113 		<a id="example4" href="./example/4_b.jpg"><img class="last" alt="example4" src="./example/4_s.jpg" /></a>
       
   114 	</p>
       
   115 
       
   116 	<p>
       
   117 		Different title positions<br />
       
   118 
       
   119 		<a id="example5" href="./example/5_b.jpg" title="Lorem ipsum dolor sit amet, consectetur adipiscing elit."><img alt="example4" src="./example/5_s.jpg" /></a>
       
   120 		
       
   121 		<a id="example6" href="./example/6_b.jpg" title="Etiam quis mi eu elit tempor facilisis id et neque. Nulla sit amet sem sapien. Vestibulum imperdiet porta ante ac ornare. Vivamus fringilla congue laoreet."><img alt="example5" src="./example/6_s.jpg" /></a>
       
   122 
       
   123 		<a id="example7" href="./example/7_b.jpg" title="Cras neque mi, semper at interdum id, dapibus in leo. Suspendisse nunc leo, eleifend sit amet iaculis et, cursus sed turpis."><img alt="example6" src="./example/7_s.jpg" /></a>
       
   124 
       
   125 		<a id="example8" href="./example/8_b.jpg" title="Sed vel sapien vel sem tempus placerat eu ut tortor. Nulla facilisi. Sed adipiscing, turpis ut cursus molestie, sem eros viverra mauris, quis sollicitudin sapien enim nec est. ras pulvinar placerat diam eu consectetur."><img class="last" alt="example7" src="./example/8_s.jpg" /></a>
       
   126 	</p>
       
   127 
       
   128 	<p>
       
   129 		Image gallery (ps, try using mouse scroll wheel)<br />
       
   130 
       
   131 		<a rel="example_group" href="./example/9_b.jpg" title="Lorem ipsum dolor sit amet"><img alt="" src="./example/9_s.jpg" /></a>
       
   132 
       
   133 		<a rel="example_group" href="./example/10_b.jpg" title=""><img alt="" src="./example/10_s.jpg" /></a>
       
   134 
       
   135 		<a rel="example_group" href="./example/11_b.jpg" title=""><img alt="" src="./example/11_s.jpg" /></a>
       
   136 		
       
   137 		<a rel="example_group" href="./example/12_b.jpg" title=""><img class="last" alt="" src="./example/12_s.jpg" /></a>
       
   138 	</p>
       
   139 
       
   140 	<p>
       
   141 		Various examples
       
   142 	</p>
       
   143 
       
   144 	<ul>
       
   145 		<li><a id="various1" href="#inline1" title="Lorem ipsum dolor sit amet">Inline</a></li>
       
   146 		<li><a id="various2" href="ajax.txt">Ajax</a></li>
       
   147 		<li><a id="various3" href="http://google.ca">Iframe</a></li>
       
   148 		<li><a id="various4" href="http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf">Swf</a></li>
       
   149 	</ul>
       
   150 
       
   151 	<div style="display: none;">
       
   152 		<div id="inline1" style="width:400px;height:100px;overflow:auto;">
       
   153 			Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis id et neque. Nulla sit amet sem sapien. Vestibulum imperdiet porta ante ac ornare. Nulla et lorem eu nibh adipiscing ultricies nec at lacus. Cras laoreet ultricies sem, at blandit mi eleifend aliquam. Nunc enim ipsum, vehicula non pretium varius, cursus ac tortor. Vivamus fringilla congue laoreet. Quisque ultrices sodales orci, quis rhoncus justo auctor in. Phasellus dui eros, bibendum eu feugiat ornare, faucibus eu mi. Nunc aliquet tempus sem, id aliquam diam varius ac. Maecenas nisl nunc, molestie vitae eleifend vel, iaculis sed magna. Aenean tempus lacus vitae orci posuere porttitor eget non felis. Donec lectus elit, aliquam nec eleifend sit amet, vestibulum sed nunc.
       
   154 		</div>
       
   155 	</div>
       
   156 
       
   157 	<p>
       
   158 		Ajax example will not run from your local computer and requires a server to run.
       
   159 	</p>
       
   160 	<p>
       
   161 		Photo Credit: <a href="http://www.flickr.com/people/kharied/">Katie Harris</a>
       
   162 	</p>
       
   163 </div>
       
   164 </body>
       
   165 </html>