views:

243

answers:

7

Hello all,

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?

+1  A: 

You're almost certainly looking at some form of Lightbox. This page has an extensive list of implementations.

Cruachan
I have thought about this sollution too, when I tried your link, something pops up, this is the link:http://www.sitepoint.com/forums/showthread.php?t=446786And this is indeed used with lightbox I guess. Thanks for your reply
Chris
+1  A: 

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)...

Justin Niessner
+1  A: 

I've typically heard them called modal dialogs.

There's a jquery library called simplemodal. It's very easy to use.

Jason
Great! this is where I was looking for :)
Chris
+1  A: 

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.

ryanulit
This one is even more helpfull to me!
Chris
+1  A: 

Hi, 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

Marcos Buarque
"DHTML" has jumped the shark
Justin Johnson
+1  A: 

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)

dmazzoni
+4  A: 

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.

jQuery

  • $.dialog (jQuery UI, generic dialog)
  • prettyPhoto (plugin, handles images, flash, youtube, Quicktime, external sites)
  • jquery lightbox (plugin, handles images only)
  • thickbox (plugin, lightbox alternative, handles images, frames, inline/ajax content)

Prototype/Scriptaculous

  • lightview (mini-framework, handles Image, Flash, Quicktime, Ajax & Forms, Anti-aliasing, Iframe, Inline content)
  • lightwindow (mini-framework, handles too many to list)
  • lightbox 2 (mini-framework, handles images only)

Dojo

ExtJs

YUI

Here's another list with more/different plugins.

Justin Johnson