gueschla.com/2007/03/17/smoothbox-thickbox-pour-mootools

post 05 of 32 · 17 March 2007 · written in French

Smoothbox, Thickbox for MooTools

Smoothbox, Thickbox pour Mootools

The launch of Smoothbox: a MooTools conversion of Cody Lindley's Thickbox, a jQuery script that shows content in a box over the page. It handles a single image, a group of images, inline content, iframes and AJAX. The code was trimmed, some bugs fixed and a fade added on opening. It works in every modern browser except Konqueror, and everything still works with JavaScript off.

smoothbox-thickbox-pour-mootools.fr17 March 2007 · 13:31

Voici, en avant première mondiale lol, Smoothbox, la conversion pour Mootools du script Thickbox de Cody Lindley, codée par moi-même.

Pour mémoire, Thickbox est un script fonctionnant sous jQuery, et qui permet d’afficher, tout comme Lightbox ou Slimbox, une fenêtre en superposition de la page, tout en faisant apparaître un overlay.

A ce jour, Thickbox est le seul script permettant simultanément d’afficher, de manière unobtrusive :

  • Une image seule
  • Un groupement de plusieurs images
  • Du contenu inline
  • Du contenu via Iframe
  • Du contenu AJAX

J’ai allégé le code, corrigé quelques bugs, et rajouté un effet de fondu à l’ouverture.

Le script fonctionne avec tous les browsers modernes, à l’exception de Konqueror. Cela dit, aucun script de ce type utilisant un effet de fondu ne fonctionne actuellement sous Konqueror, que cela soit Lightbox v2, Slimbox, Moodalbox, etc …

Le script est unobtrusif dans le sens où si vous désactivez le javascript, tout continue à fonctionner correctement !! ;-)

Tester Smoothbox

Original French text from Internet Archive captures of gueschla.com. Light typo fixes only. Links to outside sites are shown as plain text, because most of those 2007 addresses no longer lead where they did. The post had 7 comments when it was captured; they are not reproduced here.

relatedLabs: Smoothbox