开发者

nyroModal Correct Use Of Options

开发者 https://www.devze.com 2023-03-21 04:23 出处:网络
I\'m very new to jQuery and just started trying nyroModal tonight. Trying to create some simple popups. I\'m working with a popup on page load at the moment. The code I\'m trying:

I'm very new to jQuery and just started trying nyroModal tonight. Trying to create some simple popups. I'm working with a popup on page load at the moment. The code I'm trying:

$.nmManual('message.html', modal: true);

But that doesn't work at all. If I tak开发者_如何学JAVAe out , modal: true it works, but you can just click to get rid of the window. I also tried modal='true' to no avail.


The options for nmManual need to be inside curly brackets {}.

Your code should look like: $.nmManual('message.html', {modal: true});

I've just tested this in jsFiddle with modal: false and this seems to work fine. Setting it to true doesn't work but my guess is that this is a restriction of jsfiddle: http://jsfiddle.net/yXeYN/

0

精彩评论

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