Show jQModal window on page load

我的梦境 提交于 2019-12-11 09:29:02

问题


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,
    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


回答1:


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

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


来源:https://stackoverflow.com/questions/2884185/show-jqmodal-window-on-page-load

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!