Follow me on Twitter Facebook Flickr Subscribe Feeds
 

jGrowl: notifiche non intrusive con jQuery

This entry was posted on December 22nd, 2008 and is filed under jQuery.

senza-titolo-11

jGrowl è un plugin utile per creare facilmente gruppi di messaggi non intrusivi in uno stile simile a quello di jGrowl per Mac OS X. E’ possibile creare messaggi multipli passandogli diversi parametri.

Di seguito il codice necessario per diversi tipi di esempio di funzionamento:


// Sample 1
$.jGrowl("Hello world!");
// Sample 2
$.jGrowl("Stick this!", { sticky: true });
// Sample 3
$.jGrowl("A message with a header", { header: 'Important' });
// Sample 4
$.jGrowl("A message that will live a little longer.", { life: 10000 });
// Sample 5
$.jGrowl("A message with a beforeOpen callback and a different opening animation.", {
    beforeClose: function(e,m) {
        alert('About to close this notification!');
    },
    animateOpen: {
        height: 'show'
    }
});

Pixmac
Like this post? Share It! :)
Navigation:
Related Posts:
Comments

Comments are closed.