English 中文(简体)
Jquery在装满整页之前就安装了防波。
原标题:Jquery put a popup until the whole page is loaded

Jquery put a popup until the whole page is loaded and doesn t allows to click outside any help encouraged. Thanks in advance

最佳回答

你们可以这样做,而不要 j笑,你也可以用 j子撰写一些法典,以确保该页已经准备好。

You can add a big div in the first lines of your page html:

<head></head>
<html>
 <body>
   <div class="bigFullScreen"></div>
   .......... the rest of the page html
 </body>
</html>

并且用javascript:

$(function () {
   $( .bigFullScreen ).hide();
});

OR:

 $(document).ready(function () {
   $( .bigFullScreen ).hide();
});

之前的html和j Query将确保大碎块看起来是第一件事,而且当网页的所有html都成为“ j”功能时,就会隐藏。

UPDATE: You can also wait untill all the html including all the images get ready: http://amrelgarhy.com/blog/how-to-tell-when-images-have-loaded/

问题回答

http://jqueryui.com/demos/dialog/“rel=“nofollow noreferer”>JQuery UI dialog , 并确定 rel=“nofollow noreferer”>>>>>>>>>>>>>>> 模式<>>/a>。

如何清除 j子? 有关于“锁定”方言的信息。 页: 1





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签