Skip to content

Instantly share code, notes, and snippets.

@bkvirendra
Created May 13, 2012 13:45
Show Gist options
  • Save bkvirendra/2688553 to your computer and use it in GitHub Desktop.
Save bkvirendra/2688553 to your computer and use it in GitHub Desktop.
Facebook Like Alert Notifications JS
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