Created
May 13, 2012 13:45
-
-
Save bkvirendra/2688553 to your computer and use it in GitHub Desktop.
Facebook Like Alert Notifications JS
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
function alert(textToshow, timeToShow) { | |
$("#alertText").html(textToshow); | |
$("#alert").fadeIn(1000, function() { | |
$("#alertText").fadeIn(700); | |
}); | |
setTimeout(function() { | |
hideAlert(); | |
}, timeToShow); | |
} | |
function hideAlert() { | |
$("#alert").fadeOut(700); | |
} | |
$(document).ready(function() { | |
alert("Loading...", 5000); | |
}); | |
$("button").click(function() { | |
alert("You Clicked Me...", 5000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment