<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(window).load(function(){
$(".show").toggle(function(){
console.log('1st');
}, function() {
console.log('2nd');
}, function(){
console.log('3rd');
});
});
</script>
</head>
<body>
<div class="show">Click me</div>
</body>
</html>