Skip to content

Instantly share code, notes, and snippets.

@deefour
Created July 10, 2012 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deefour/6b725c673f750f80eaf0 to your computer and use it in GitHub Desktop.
Save deefour/6b725c673f750f80eaf0 to your computer and use it in GitHub Desktop.
<!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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment