si è possibile... ti faccio un copia ed incolla da un forum su come fare:
I finally was able to use the Joomla 1.5 native Lightbox which is called the SueezeBox on the frontpage to display images and also external HTML in an iframe Lightbox.
You need to include media/js/modal.js and media/js/modal.css into the header tags in the index.php of your template.
Code:
<script type="text/javascript" src="media/system/js/modal.js"></script>
Code:
link rel="stylesheet" href="media/system/css/modal.css" type="text/css" />
Next you need to include the following little Javascript to initiate the SqueezeBox:
Code:
<script type="text/javascript">
// <!--
window.addEvent('domready', function() {
SqueezeBox.initialize({});
$$('a.modal').each(function(el) {
el.addEvent('click', function(e) {
new Event(e).stop();
SqueezeBox.fromElement(el);
});
});
});
// -->
</script>
Finally to call this Squeezebox for an image use:
Code:
<a
rel="SqueezeBox" href="yourimagefolder/yourimage.jpg" title="Your Image Title"
class="modal"><img src="yourimagefolder/yourthumbimage.jpg" alt="Imagename" title="Your Image Title" [/url]
To call an HTML page into an iframe use:
Code:
<a rel="{handler: 'iframe', size: {x: 800, y: 600}}" href="
http://www.domain.com/page.html" class="modal">Testlink[/url]
No guarantee that above is 100% correct but it works for me. However if only images need to be displayed in a Lightbox I prefer the script Slimbox from
http://www.digitalia.be. Both Modal and Slimbox seem to be Lightbox2 clones but Slimbox is a smaller and very fast loading Lightbox script that shows the caption of the image plus has additional functionality to display image groups with next-previous buttons. Both make use of the Mootools Framework.