secret
Created

  • Download Gist
gistfile1.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#toggleDiv').toggle(function() {
$('#img360').hide();
$('#imgNormal').show();
$(this).html('View Normal');
}, function() {
$('#img360').show();
$('#imgNormal').hide();
$(this).html('View 360');
});
});
</script>
 
<style type="text/css">
#imgNormal {
display: none;
}
</style>
</head>
<body>
<div id="toggleDiv">View 360</div>
<br>
<br>
<div id="img360">Normal</div>
<div id="imgNormal">360 spin</div>
</body>
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.