-
-
Save deefour/6b725c673f750f80eaf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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