<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="imagetoolbar" content="no" />
	<title>FancyBox - fancy image zooming tool</title>
	<link rel="stylesheet" type="text/css" href="/style.css" media="screen" />
	<link rel="stylesheet" type="text/css" href="/fancybox/fancy.css" media="screen" />
	<script type="text/javascript" src="/fancybox/jquery-1.2.3.pack.js"></script>
	<script type="text/javascript" src="/fancybox/jquery.metadata.js"></script>
	<script type="text/javascript" src="/fancybox/jquery.pngFix.pack.js"></script>
	<script type="text/javascript" src="/fancybox/jquery.fancybox-1.0.0.js"></script>

	<script type="text/javascript">
		$(document).ready(function() {
			//Activate FancyBox
			$("p#test1 a").fancybox({
				'hideOnContentClick': true
			});
			
			$("p#test2 a").fancybox({
				'zoomSpeedIn':	0, 
				'zoomSpeedOut':	0, 
				'overlayShow':	true
			});
			
			$("a#custom_1").fancybox({
				'itemLoadCallback': getGroupItems
			});
			
			$("a#custom_2, a#custom_3").fancybox({
				'zoomSpeedIn':	0, 
				'zoomSpeedOut':	0
			});
			
			//Some lines for this page
			$("div#donate").bind("click", function() {
				$("#donate_form").submit()
			});
			
			$("#comment_form").attr("action", "/fancy/add_comment"); $("#age").val('fancy'); //die spamers, die...
		});

		//List can contain mixed media too
		//Parameter "o" ir optional and used to override settings, example: {url: "http://www.google.com", title: false,  o: {'frameWidth': 200} }
		var imageList = [
			{url: "/img/examples/6_b.jpg", title: "First image"},
			{url: "/img/examples/7_b.jpg", title: "Second image"},
			{url: "/img/examples/8_b.jpg", title: "Third image"}
		];
		
		function getGroupItems(opts) {
			jQuery.each(imageList, function(i, val) {
		        opts.itemArray.push(val);
		    });
		}
		
	</script>
</head>
<body>
    <div id="wrapper">
    	<div id="header">
    		<h1><a href="/">Fancybox - simple and fancy jquery plugin</a></h1>
    		<div><a href="/fancybox/fancybox_1.0.0.zip"><img id="download" src="/img/down.png" alt="Download" style="width:162px;height:46px;" /></a></div>
    	</div>
		<div id="content">
			<div id="col_left">
				<h1>testing new beta!</h1>
				<p>finally! you can preview at <a href="http://fancy.klade.lv/test/">test page</a></p>
				
				<h1>About</h1>
				<p>
					Why? Because I was bored by so many pages using lightbox and it`s clones, <br /> I wanted something fresh and Mac-like. I couldn`t find any cool alternative that would be build on top of jQuery, so the FancyBox was born. <b>Features</b>:
				</p>
				<ul>
					<li>Automatically scales large images to fit in window</li>
					<li>Adds a nice drop shadow under the zoomed item</li>
					<li>Groups related items and adds navigation through them (uses preloading)</li>
					<li>Can display images, inline and iframed content</li>
					<li>Customizable through settings and CSS</li>
				</ul>

				<h1>Examples</h1>
				<p id="test1">
					<b>Fancy single images</b>
					
					<br />
					
					<a href="/img/examples/1_b.jpg"><img alt="" src="/img/examples/1_s.jpg" /></a>

					<a title="Very fancy caption to this image" href="/img/examples/2_b.jpg"><img alt="" src="/img/examples/2_s.jpg" /></a>
					
					<a title="This is the ART" href="/img/examples/13_b.jpg"><img alt="" src="/img/examples/13_s.jpg" /></a>
				</p>
				<p>
				<select>
					<option>Pellentesque eleifend</option>
					<option>Pellentesque mi sapien</option>
				</select>
			</p>
				<p id="test2">
					<b>Grouped images (no zooming animation, adds overlay)</b>
					
					<br />
					
					<a rel="group1" href="/img/examples/4_b.jpg"><img alt="" src="/img/examples/4_s.jpg" /></a>

					<a rel="group1" title="Very fancy caption to this image" href="/img/examples/5_b.jpg"><img alt="" src="/img/examples/5_s.jpg" /></a>
					
					<a rel="group1" title="Life" href="/img/examples/10_b.jpg"><img alt="" src="/img/examples/10_s.jpg" /></a>
				</p>
				<p id="test4">
					<b>More usage examples</b>
				</p>
									
				<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<th>Custom defined image set</th>
					<th>Inline content</th>
					<th>Iframed content</th>
				</tr>
				<tr>
					<td><a id="custom_1" href="javascript:;"><img alt="" src="/img/examples/6_s.jpg" /></a></td>
					<td><a id="custom_2" href="#testube" class="{frameWidth: 425, frameHeight: 355}"><img alt="" src="/img/examples/15_s.jpg" /></a></td>
					<td><a id="custom_3" href="http://www.google.com/"><img alt="" src="/img/examples/16_s.jpg" /></a></td>
				</tr>
				</table>

				<div style="display:none" id="testube">
					<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/-_jhdZoPW1Q&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/-_jhdZoPW1Q&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
				</div>
				
		
				
				<h1>How to use</h1>

				<p>
					<b>1. Setup</b>
					
					<br />
					
					Include nessesary JS files (FancyBox uses pngFix to fix IE png transparency).
				
				
<code>/* required */
&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.fancybox.js"&gt;&lt;/script&gt;
/* optional */
&lt;script type="text/javascript" src="js/jquery.pngFix.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.metadata.js"&gt;&lt;/script&gt;
</code>
					Include FancyBox CSS file. Dont forget to change image paths.
					
<code>&lt;link rel="stylesheet" href="css/fancybox.css" type="text/css" media="screen"&gt;</code>

					<b>2. Add your images</b>
					
					<br />
					
					Add images and wrap them with a link to the zoomed version
<code>&lt;a href="image_big.jpg"&gt;&lt;img src="image_small.jpg" alt=""/&gt;&lt;/a&gt;</code>

					Optional: Use the <em>title</em> attribute if you want to show a caption
					
					<br />
					
					Optional: Use the <em>rel</em> attribute to group images
					
					<br />
					<br />
					
					<b>3. Use the plugin</b>
					
					<br />
					
					Sample examples:
					
<code>$(document).ready(function() {
	$("p#test1 a").fancybox();
	
	$("p#test2 a").fancybox({
		'hideOnContentClick': true
	});

	$("p#test3 a").fancybox({
		'zoomSpeedIn':	0, 
		'zoomSpeedOut':	0, 
		'overlayShow':	true
	});
});
</code>
				</p>
				<p>
					<b>Available options</b>
				</p>
				
				<table class="options" cellpadding="0" cellspacing="0">
				<tr>
					<td>hideOnContentClick</td>
					<td>Hides FancyBox when cliked on zoomed item <br /> (false by default)</td>
				</tr>
				<tr>
					<td>zoomSpeedIn</td>
					<td>Speed in miliseconds of the zooming-in animation <br /> (no animation if 0)</td>
				</tr>
				<tr>
					<td>zoomSpeedOut</td>
					<td>Speed in miliseconds of the zooming-out animation <br /> (no animation if 0)</td>
				</tr>
				<tr>
					<td>frameWidth</td>
					<td>Default width for iframed and inline content</td>
				</tr>
				<tr>
					<td>frameHeight</td>
					<td>Default height for iframed and inline content</td>
				</tr>
				<tr>
					<td>overlayShow</td>
					<td>If true, shows the overlay (false by default)</td>
				</tr>
				<tr>
					<td>overlayOpacity</td>
					<td>Opacity of overlay (from 0 to 1)</td>
				</tr>
				<tr>
					<td>itemLoadCallback</td>
					<td>Custom function to get group items <br /> (see example on this page source)</td>
				</tr>
				</table>
				
				<a name="comment_form"></a>
				<h1>Comments</h1>
				
				<p><a href="http://fancy.klade.lv/fancy/index/">&lsaquo; First</a>&nbsp;&nbsp;<a href="http://fancy.klade.lv/fancy/index/520">&lt;</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/510">52</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/520">53</a>&nbsp;<b>54</b>&nbsp;<a href="http://fancy.klade.lv/fancy/index/540">55</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/550">56</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/540">&gt;</a>&nbsp;&nbsp;<a href="http://fancy.klade.lv/fancy/index/870">Last &rsaquo;</a></p>
				
				<div class="comments">
		<div class="comment_body">This is the best out there, no doubt,awesome work man!!, keep it up!! thanks!!</div>
	<div class="comment_info">Posted by <b>JSidiot</b> at 2008/07/19 18:07</div>
		<div class="comment_body">Hello,<br />
<br />
Just a basic question (i think)... how to disable the scrollbar when you use the script for an iframe? <br />
<br />
Thanks for your help!</div>
	<div class="comment_info">Posted by <b>nnnay</b> at 2008/07/18 11:21</div>
		<div class="comment_body">This is nice...</div>
	<div class="comment_info">Posted by <b>maestro</b> at 2008/07/18 10:35</div>
		<div class="comment_body">看不懂<br />
I can ont understand<br />
worried</div>
	<div class="comment_info">Posted by <b><a target="blank" href="http://hi.baidu.com/1076739">fengdi</a></b> at 2008/07/18 09:51</div>
		<div class="comment_body">I wanted to know if anyone else is having issues with using FancyBox with swfobject. In IE 6/7 the flash doesn't show. THe box opens but does not display the swf file.<br />
<br />
Any help would be great!</div>
	<div class="comment_info">Posted by <b><a target="blank" href="http://designtoinspire.net">Jchand_29</a></b> at 2008/07/18 07:04</div>
		<div class="comment_body">aha, I did not know that :)<br />
<br />
In that case I will wait for a new version.<br />
<br />
Thanks,<br />
<br />
Great work by the way</div>
	<div class="comment_info">Posted by <b><a target="blank" href="http://fluxdemo.kierownik.nl">kierownik</a></b> at 2008/07/17 22:48</div>
		<div class="comment_body">@kierownik: as you maybe know, it`s not FB bug, not even jQuery`s bug, it`s because Opera changed. It would be easer if you fix your copy of jQuery js file or wait for new release</div>
	<div class="comment_info">Posted by <b><a target="blank" href="http://kac.klade.lv">KAC</a></b> at 2008/07/17 19:04</div>
		<div class="comment_body">When are you going to fix the bug that opera v9.5 is not showing the pictures?</div>
	<div class="comment_info">Posted by <b><a target="blank" href="http://fluxdemo.kierownik.nl">kierownik</a></b> at 2008/07/17 17:56</div>
		<div class="comment_body">Hi there,<br />
<br />
There's a little problem with the captions, your extension test with imgTypes is case sensitive, so if i have an image that has the extension .JPG, the title attribute is not shown.<br />
<br />
Anyway, it's just a detail, your source is good et works just fine, thanks for sharing !<br />
<br />
SnakeFast</div>
	<div class="comment_info">Posted by <b><a target="blank" href="http://vocotruyen.fr/">snakefast</a></b> at 2008/07/17 17:31</div>
		<div class="comment_body">Dear Janis, do you have any suggestions on how to close FB from inside the iFrame. Best Regards</div>
	<div class="comment_info">Posted by <b>Ulli</b> at 2008/07/17 12:14</div>
	</div>				
				<p><a href="http://fancy.klade.lv/fancy/index/">&lsaquo; First</a>&nbsp;&nbsp;<a href="http://fancy.klade.lv/fancy/index/520">&lt;</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/510">52</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/520">53</a>&nbsp;<b>54</b>&nbsp;<a href="http://fancy.klade.lv/fancy/index/540">55</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/550">56</a>&nbsp;<a href="http://fancy.klade.lv/fancy/index/540">&gt;</a>&nbsp;&nbsp;<a href="http://fancy.klade.lv/fancy/index/870">Last &rsaquo;</a></p>



				<p><b>Post your comment</b></p>	
				
								<p>
					<form id="comment_form" action="" method="post">
					<label for="nick">Nick</label> <input type="text" id="nick" name="nick" value="" /> <em>(required)</em><br />
					<label for="email">Email</label> <input type="text" id="email" name="email" value="" /> <em>(required, not shown)</em><br />
					<label for="website">Website</label> <input type="text" id="website" name="website" value="" /> <br />
					<label for="comment">Comment</label> <textarea id="comment" name="comment"></textarea>
					<input type="hidden" name="age" id="age" value="" />
					<input type="submit" value="Add" class="add" />
					</form>
				</p>


			</div>
			<div id="col_right">
				<form id="donate_form" action="https://www.paypal.com/cgi-bin/webscr" method="post">
					<input type="hidden" name="cmd" value="_donations">
					<input type="hidden" name="business" value="janis.skarnelis@gmail.com">
					<input type="hidden" name="item_name" value="FancyBox">
					<input type="hidden" name="amount" value="10.00">
					<input type="hidden" name="no_shipping" value="0">
					<input type="hidden" name="logo_custom" value="http://donate.png">
					<input type="hidden" name="no_note" value="1">
					<input type="hidden" name="currency_code" value="EUR">
					<input type="hidden" name="tax" value="0">
					<input type="hidden" name="lc" value="LV">
					<input type="hidden" name="bn" value="PP-DonationsBF">
				</form>
					
				<div id="donate">
					If you use FancyBox and like it, buy the author a beer! <img align="absmiddle" src="/img/donate.png" style="width:16px;height:16px;" alt="Donate" />
				</div>
				
				<br />
				<br />
				
				<script>
					digg_url ='http://fancy.klade.lv/';
				</script>
				<script src="http://digg.com/api/diggthis.js"></script>

			</div>
			
			<br clear="all" />
			
			<div id="footer">
				2008 - 2009 @ http://kac.klade.lv/
			</div>
		</div>
	</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4230547-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>