Reputation: 1929
I have seen for some time popups without window and it looks like a custom made png file as popup. many times there is a big close cross in the upper right corner.
Can someone tell me please how this is called and in what kind of code this is made?
Upvotes: 2
Views: 2839
Reputation: 31300
There are many ways to implement a pop over in JavaScript and most libraries now have built in support for such things, or have added support through plugins and mini-frameworks (lightbox). Here are just a few by their respective libraries, of which, jQuery and Prototype have the best out-of-the-box support and features.
Here's another list with more/different plugins.
Upvotes: 6
Reputation: 2371
I've typically heard them called modal dialogs.
There's a jquery library called simplemodal. It's very easy to use.
Upvotes: 1
Reputation: 13236
There's no built-in support, they're implemented using pure html, css, and javascript. The easiest way to do this is to use an existing javascript library like the jquery (see jquery's dialog box) or another solution to create javascript, like GWT (see Google Web Toolkit Dialog Box)
Upvotes: 1
Reputation: 3418
I don't know if people still call them DHTML pop-ups. Anyway, code for this kind of pop-up nowadays is usually very simple. The one I prefer is jQuery Tools. Here: http://flowplayer.org/tools/demos/overlay/apple.html
Upvotes: 1
Reputation: 5001
It's usually an html div that is popped up through Javascript, usually through plugins for a Javascript framework such as jQuery. Here's a tutorial of using one of the plugins.
Upvotes: 1
Reputation: 245419
These are most easily created by javascript library plug-ins.
Prototype has LightBox
jQuery used to have ThickBox, but it is no longer maintained. Searching now for alternatives (the old page for ThickBox has several newer options)...
Upvotes: 1