<html>
<head>
<title>Caption</title>
<!-- link to magicthumb.css file -->
<link href="magicthumb/magicthumb.css" rel="stylesheet" type="text/css" media="screen"/>
<!-- link to magicthumb.js file -->
<script src="magicthumb/magicthumb.js" type="text/javascript"></script>
</head>
<body>
<h4>Place a text caption under the image, or to the left or right.</h4>
<p>
<!-- define Magic Thumb with a caption under the image -->
<a href="images/imac-side-300.jpg" class="MagicThumb" rel="caption-position: bottom"><img src="images/imac-side-50.jpg" alt=""/><span>This caption is positioned under the image.</span></a>
<!-- define Magic Thumb with a caption to the left of the image -->
<a href="images/imac-side-300.jpg" class="MagicThumb" rel="caption-position: left"><img src="images/imac-side-50.jpg"/><span>This caption is to the left of the image.</span></a>
<!-- define Magic Thumb with a caption to the right of the image -->
<a href="images/imac-side-300.jpg" class="MagicThumb" rel="caption-position: right"><img src="images/imac-side-50.jpg"/><span>This caption is to the right of the image.</span></a>
</p>
<h4>The caption can come from 5 sources: <span>, image alt tag, image title tag, link title tag or a div.</h4>
<p>
<!-- define Magic Thumb with a caption from the image alt tag -->
<a href="images/imac-side-300.jpg" class="MagicThumb" rel="caption-source: img:alt"><img src="images/imac-side-50.jpg" alt="This caption comes from the image alt tag."/></a>
<!-- define Magic Thumb with a caption from the image title tag -->
<a href="images/imac-side-300.jpg" class="MagicThumb" rel="caption-source: img:title"><img src="images/imac-side-50.jpg" title="This caption comes from the image title tag."/></a>
<!-- define Magic Thumb with a caption from the link title tag -->
<a href="images/imac-side-300.jpg" class="MagicThumb" rel="caption-source: a:title" title="This caption comes from the link title tag."><img src="images/imac-side-50.jpg"/></a>
</p>
<p>
<!-- define Magic Thumb with a caption from the external div -->
<a href="images/imac-backtoback-600.jpg" class="MagicThumb" rel="caption-source:#ex-caption; caption-position:right; caption-width:240"><img src="images/imac-backtoback-50.jpg" alt=""/></a>
</p>
<div id="ex-caption" class="MagicThumb-external-caption">
<h2>Caption</h2>
<p>This caption is aligned to the right of the image.</p>
<p>The content comes from a div, so you can format it any way you like.</p>
<ol>
<li>You can place lists in captions.</li>
<li>And other HTML formatting.</li>
<li>And even images!</li>
</ol>
<p><img src="images/imac-family-50.jpg" alt="" /> <img src="images/imac-backtoback-50.jpg" alt="" /> <img src="images/imac-side-50.jpg" alt="" /></p>
<p>This div is hidden until the image is enlarged by the addition of the class "MagicThumb-external-caption" to the div. Without this class, the div will also show on your page.</p>
<p>Try for yourself! <a href="http://www.magictoolbox.com/contact/">Contact us</a> if you get stuck.</p>
</div>
</body>
</html>