|
Drag mode
Click and drag to move the zoom.
Here's the code:
<html>
<head>
<title>Magic Zoom: Drag mode</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>
</head>
<body>
<p>Click and drag to move the zoom.</p>
<!-- define Magic Zoom with drag mode, zoom-width and set starting position on the front wheel -->
<a href="images/r1-red-3.jpg" rel="drag-mode:true; move-on-click: true; zoom-height: 170px; x: 250; y: 120" class="MagicZoom"><img src="images/r1-red-2.jpg"/></a>
</body>
</html>
|