jQuery Demo: Creating A Sliding Image Puzzle Plug-In

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>jQuery Demo: Creating A Sliding Image Puzzle</title>
 
	<script type="text/javascript" src="jquery-latest.pack.js"></script>
	<script type="text/javascript" src="jquery.puzzle.js"></script>
	<script type="text/javascript">
 
		// When the document is ready, hook up the puzzle
		// functionality to the targeted DIVs.
		$(
			function(){
				$( "div.puzzle, p" ).puzzle( 100 );
			}
			);
 
	</script>
</head>
<body>
 
	<h1>
		jQuery Demo: Creating A Sliding Image Puzzle
	</h1>
 
	<p>
		Below, we are going to create a sliding image puzzle
		using a DIV that contains a given image.
	</p>
 
	<!--- First Puzzle. --->
	<div
		class="puzzle"
		style="float: left ; margin-right: 50px ;">
 
		<img
			src="./puzzle_girl1.jpg"
			width="333"
			height="500"
			alt="Puzzle Girl One"
			/>
 
	</div>
 
	<!--- Second Puzzle. --->
	<div
		class="puzzle"
		style="float: left ;">
 
		<img
			src="./puzzle_girl2.jpg"
			width="333"
			height="500"
			alt="Puzzle Girl Two"
			/>
 
	</div>
 
</body>
</html>

For Cut-and-Paste