开发者

Show jQModal window on page load

开发者 https://www.devze.com 2022-12-30 23:51 出处:网络
I\'m playing with jQModal plugin and trying to display its window right after the page is loaded. I used this code in $(document).ready(function():

I'm playing with jQModal plugin and trying to display its window right after the page is loaded. I used this code in $(document).ready(function():

$('#letak').jqm({
    overlay: 70,
 开发者_C百科   autofire: true 
});

autofire setting should do the trick but unfortunately it doesn't work. Works perfectly fine when I click at trigger link.

Example: http://bz.machi.cz/

// Forgot to mention that there is a hidden View link on the page (when you press Ctrl + A you can see it).

Am I doing something wrong? Thanks a lot, Jakub


Try the following. I also put together an example at jsFiddle.

$(document).ready(function() {
    $('#letax').jqm().jqmShow({overlay: 70});
});
0

精彩评论

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