开发者

start /stop jquery menu

开发者 https://www.devze.com 2022-12-20 13:06 出处:网络
when usi开发者_开发技巧ng jgrowl and if we invoke the following to close all the menus $.jGrowl(data);

when usi开发者_开发技巧ng jgrowl and if we invoke the following to close all the menus

 $.jGrowl(data);   
 $.jGrowl('shutdown');

How to start it back.

The following gives an error

$.jGrowl('startup');

Thanks.


Startup ought to be a valid option:

http://bitbucket.org/stanlemon/jgrowl/src/47d58d0e497f/jquery.jgrowl.js

Code snippet from this page:

    /** Setup the jGrowl Notification Container **/
    startup:    function(e) {
        this.element = $(e).addClass('jGrowl').append('<div class="jGrowl-notification"></div>');
        this.interval = setInterval( function() { 
            $(e).data('jGrowl.instance').update(); 
        }, this.defaults.check);

        if ($.browser.msie && parseInt($.browser.version) < 7 && !window["XMLHttpRequest"]) {
            $(this.element).addClass('ie6');
        }
    },

Can you supply details of the error, and maybe some more code to help us determine what is going wrong?

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号