jQuery ThickBox Plugin

Ce plugin vous permet d'afficher dynamiquement une boîte de dialogue avec à l'intérieur toute sorte de contenu (page, images, feeds...) sans recharger ou quitter la page actuelle. Source and © Cody Lindley.
  • Ressource Précédente
  • Télécharger
  • Ressource Suivante

Démonstration

Implémentation

Ce plugin requiert 3 fichiers pour marcher: la librairie jQuery, le fichier .js du plugin, et sa feuille de style.

  1. /** jQuery Inclusion **/
  2. <script type="text/javascript" src="Chemin_vers/jQuery.js"></script>
  3.  
  4. /** Plugin Inclusion **/
  5. <script type="text/javascript" src="Chemin_vers/jquery-thickbox.js"></script>
  6.  
  7. /** Style requis **/
  8. <link href="Chemin_vers/thickbox.css" rel="stylesheet" type="text/css" />

Ensuite, l'unique chose à faire est de donner une class='thickbox' à tous les liens ayant une url que vous vouez ouvrir dans une thickbox.

  1. /** Plugin Utilisation **/
  2. <a href="Path_to_target" class="thickbox">Test ThickBox Plugin</a>

Partager:

  • Tweet this
  • Buy the author a coffee
  • Bump this
  • Digg this
  • Post this on Del.icio.us
  • Post this on StumbleUpon
  • Post this on Reddit
  • Post this on Technorati
  • Post this on Google
  • Post this on Facebook
  • Email this to a friend

Vous seriez peut être aussi intéressé par::

  • How to Create Native Admin Tables in WordPress
  • Form Cloning jQuery Plugin
  • How to easily integrate a PayPal Checkout with PHP
  • Creating a simple image gallery with PHP & jQuery
  • Wordpress SchmancyBox Plugin
  • Mootools Facebook Search

Commentaires récents