Esempio Online Anteprima
Sorgente PHP: examples/lightbox/gallery.php
Sorgente XML: examples/lightbox/gallery.xml
L'implementazione del famoso controllo lightbox per la visualizzazione di una gallerie di immagini.
<?php
/**
* PHP Source File
* @author Alyx Association <info@alyx.it>
* @version 1.0
* @copyright Alyx Association 2008-2010
* @license GNU Public License
*/
require_once("./../../class/system.class.php");
$system = new ClsSystem(true);
$xml = new ClsXML("gallery.xml");
$event = new ClsEvent($xml);
$event->managerRequest();
?>
<?xml version="1.0" encoding="utf-8"?>
<jamp>
<page typeobj="page" title="JAMP - Esempio galleria lightbox" icon="../../favicon.ico" loaddata="true">
<lightbox typeobj="lightbox" width="700" height="autosize" theme="grey" >
<a1 typeobj="a" href="../resource/tux/picture1.jpg" rel="lightshow[picture]" text="Picture 1" />
<a2 typeobj="a" href="../resource/tux/picture2.jpg" rel="lightshow[picture]" text="Picture 2" />
<a3 typeobj="a" href="../resource/tux/picture3.jpg" rel="lightshow[picture]" text="Picture 3" />
<a4 typeobj="a" href="../resource/tux/picture4.jpg" rel="lightshow[picture]" text="Picture 4" />
</lightbox>
</page>
</jamp>