Using the Jquery Plugin
.imagecube
how can i swap between the images sides by clicking on the image.
this is the code from
http://keith-wood.name/imageCube.html:
Code:
<div id="defaultCube" style="width: 200px; height: 150px;">
<img src="uluru.jpg" alt="Uluru" title="Uluru"/>
<img src="islands.jpg" alt="Islands"title="Islands"/>
<img src="gorge.jpg" alt="Gorge" title="Gorge"/>
</div>
Code:
$('#defaultCube').imagecube();
$('#stopCube').toggle(function() {
$(this).text('Start');
$('#defaultCube').imagecube('stop');
}, function() {
$(this).text('Stop');
$('#defaultCube').imagecube('start');
}
);
$('#removeCube').toggle(function() {
$(this).text('Re-attach');
$('#defaultCube').imagecube('destroy');
},
function() {
$(this).text('Remove');
$('#defaultCube').imagecube();
}
);