Aggiungere la classe instant - Instant Js
Inviato: 20/05/2008, 10:39
Una contrib veramente carina potrebbe essere quella di aggiungere questo effetto: http://www.netzgesta.de/instant/
alle immagini sia nella scheda prodotto, sia nelle categorie.
Qualcuno sa darmi qualche dritta?
ho provato ad aggiungere in product_info.php
<script type="text/javascript" src="js/instant.js"></script>
all'inizio insieme agli altri script (ad es. lightbox..) precisamente all'interno della head (js è la cartella che ho creato per gli script)
e
class = "instant itiltleft icolor000000 ishadow50"
qui:
<td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="infoBox"><img src="images/nomeprod.gif" border="0" WIDTH="620" HEIGHT="45"><tr class="infoBoxBianco"><td class="pageHeading" align="left" valign="top"><?php echo $products_name; ?><p><p><p><p><p><p><p><p><p><p>
<td align="right" class="smallText"><script language="javascript"><!--
document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" class = "instant itiltleft icolor000000 ishadow50" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><br>' . tep_image_button('search.png', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" class = "instant" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><br>' . tep_image_button('search.png', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
</noscript></td>
dove sbaglio? manca qualcosa?
alle immagini sia nella scheda prodotto, sia nelle categorie.
Qualcuno sa darmi qualche dritta?
ho provato ad aggiungere in product_info.php
<script type="text/javascript" src="js/instant.js"></script>
all'inizio insieme agli altri script (ad es. lightbox..) precisamente all'interno della head (js è la cartella che ho creato per gli script)
e
class = "instant itiltleft icolor000000 ishadow50"
qui:
<td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="infoBox"><img src="images/nomeprod.gif" border="0" WIDTH="620" HEIGHT="45"><tr class="infoBoxBianco"><td class="pageHeading" align="left" valign="top"><?php echo $products_name; ?><p><p><p><p><p><p><p><p><p><p>
<td align="right" class="smallText"><script language="javascript"><!--
document.write('<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" class = "instant itiltleft icolor000000 ishadow50" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><br>' . tep_image_button('search.png', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" class = "instant" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br><br>' . tep_image_button('search.png', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
</noscript></td>
dove sbaglio? manca qualcosa?