|
Image size
Buy now £25 Get support
Let the large image scale to fit inside the users screen,
Images will be scaled downwards to fit inside the users browser window without needing to scroll. This is the default.
or use the original size.
This is the original size of the image. It is not scaled, so users might have to scroll to see all the image.
Here's the code:
<html>
<head>
<title> Image size</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>
<p>Let the large image scale to fit inside the users screen,</p>
<p>
<!-- define Magic Thumb which scales the image downwards to fit inside the users browser window (by default) -->
<a href="images/imac-side-768.jpg" class="MagicThumb" rel="image-size: fit-screen"><img src="images/imac-side-90.jpg" alt=""/><span>Images will be scaled downwards to fit inside the users browser window without needing to scroll. This is the default.</span></a>
</p>
<p>or use the original size.</p>
<p>
<!-- define Magic Thumb which doesn't scale the image -->
<a href="images/imac-side-768.jpg" class="MagicThumb" rel="image-size: original"><img src="images/imac-side-90.jpg" alt=""/><span>This is the original size of the image. It is not scaled, so users might have to scroll to see all the image.</span></a>
</p>
</body>
</html>
|