Es geht viel einfacher:
Man setzt im Head-Bereich der index.php
<!-- The CSS file for the Lightbox for the images-->
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/components/com_virtuemart/js/slimbox/css/slimbox.css" type="text/css" media="screen" />
und
<!-- The JS file for the Lightbox for the images-->
<script type="text/javascript" language="javascript" src="<?php echo $this->baseurl ?>/components/com_virtuemart/js/slimbox/js/slimbox.js"></script>
Und im browse_x.php stellst du direkt nach </noscript> von der Javascript Funktion die Du ausdokumentieren kannst (ich delete ungern) :
<a href="<?php echo $product_full_image ?>" target="_blank" title="<?php echo $product_name ?>" rel="lightbox">
<?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?>
</a>
So hat die ganze Seite zugriff auf die Dateien und somit auch auf die Funktion und das gilt dann für alle Bilder und man hat einen einheitlichen Look :-)
Simple comme bonjour :-)
Einen Gruß, Rob


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen