PHP interesse |
|
Zou iemand mij kunnen helpen met een light box in te bouwen?
Ik heb dit in de head gezet
<script type="text/javascript" src="lightbox/js/prototype.js"></script>
<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script>
<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen">
<script type="text/javascript" src="lightbox/js/lightbox.js"></script>
<script type="text/javascript" src="lightbox/js/prototype.js"></script> <script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects"></script> <link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen"> <script type="text/javascript" src="lightbox/js/lightbox.js"></script>
De bestanden uiteraard geupload
maar dit moet worden aangepast
<script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link("popup_image_i.php", 'pID=' . $product_info['products_id'] .'&photoid='.$i) . '\\\')">' . tep_image(DIR_PRODUCT_IMAGES . 'small/'. $product_info['products_image_'.$i], addslashes($product_info['products_name']), 0, 0, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_PRODUCT_IMAGES . 'small/'. $product_info['products_image_'.$i]) . '" target="_blank" rel="lightbox">' . tep_image(DIR_PRODUCT_IMAGES . 'small/'. $product_info['products_image_1'], $product_info['products_name'], 0, 0, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
<script language="javascript"><!-- document.write(' <?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link("popup_image_i.php", 'pID =' . $product_info['products_id '] .'&photoid ='.$i) . '\\\ ')">' . tep_image (DIR_PRODUCT_IMAGES . 'small/'. $product_info['products_image_'.$i], addslashes($product_info['products_name']), 0, 0, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link (DIR_PRODUCT_IMAGES . 'small/'. $product_info['products_image_'.$i]) . '" target="_blank" rel="lightbox">' . tep_image (DIR_PRODUCT_IMAGES . 'small/'. $product_info['products_image_1'], $product_info['products_name'], 0, 0, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript>
Een soort van handleiding heb ik hier gevonden
handleiding
|