在页面加载时显示jQModal窗口 [英] Show jQModal window on page load

查看:108
本文介绍了在页面加载时显示jQModal窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jQModal插件,并试图在页面加载后立即显示其窗口.我在$(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,
    autofire: true 
});

自动射击设置应该可以解决问题,但不幸的是它不起作用.当我单击触发器链接时,效果很好.

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

示例: http://bz.machi.cz/

//忘了提到页面上有一个隐藏的视图"链接(当您按Ctrl + A时可以看到它).

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

我做错什么了吗?非常感谢,雅库布(Jakub)

Am I doing something wrong? Thanks a lot, Jakub

推荐答案

请尝试以下操作.我还在jsFiddle上放了一个示例.

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

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

这篇关于在页面加载时显示jQModal窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆