开发者

What is it called when a popup appear "over" a wepage?

when you visit http://www.daniweb.com you get a popup window, what is this called + any idea how to do it?


Thank you for your reply, what is the simplest way to do have a modal loading animation only i.e. when page loads that animations shows an开发者_JAVA百科d when done the animation goes? ASP.NET/Ajax


You'd call this a modal dialog, and you can implement one very easy with jquery ui:

http://jqueryui.com/demos/dialog/#modal


I like to refer to these windows as ANNOYING The other name is some form of JS or JQuery.

Its called a javascript popup window.

Here's a link to show you how to open a js window

The way it looks though is they are using the modal popup extender provided by the ASP.net AJAX Control library. This can be simulated via JQuery as well.


It's called a modal dialog window. "Modal" meaning "mode" as in the UI has two modes, one where you can only interact with the dialog window, the other where there is no dialog window and you can interact with the rest of the page.


Probably looks something like a lightbox/thickbox .Showing some text/html instead of images


This is a modal pop up window, meaning you can't do anything else while that window is open.

Here are a bunch of ways to make them.


You can set up this kind of popup by having Javascript on the onload event create an overlay div that has height 100% and a higher z-index than the content, and also a div for the popup with position fixed and an even higher z-index. Then when the user clicks on close or otherwise it is time for the popup to go away, the Javascript can set display: none on these divs.

You can use Firebug (or IE Developer toolbar) to see the styles used on the example page you mentioned and use that as a model.

(Also they are annoying, but at least better than pop-unders, IMO ;-) )


Thats a modal dialog popup. Here's a nice jQuery version that I have used before.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜