|
Global options
Customise your zoom via the <script> tag instead of the rel attribute.
Here's the code:
<html>
<head>
<title>Magic Zoom: Global options</title>
<!-- link to magiczoom.css file -->
<link href="magiczoom.css" rel="stylesheet" type="text/css" media="screen"/>
<!-- link to magiczoom.js file -->
<script src="magiczoom.js" type="text/javascript"></script>
<script type="text/javascript">
MagicZoom.options = {
'opacity': 30,
'drag-mode': true,
'show-title': 'bottom'
};
</script>
</head>
<body>
<p>Customise your zoom via the <script> tag instead of the rel attribute.</p>
<!-- define Magic Zoom -->
<a href="images/r1-blue-3.jpg" class="MagicZoom" title="Blue Yamaha YZF-R1"><img src="images/r1-blue-2.jpg"/></a> <br/>
</body>
</html>
|