View Single Post
  #1  
Old 08-23-2009, 12:13 PM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Question How to use <script> inside product description?

Hello there, on some products i want to add (on the description) small images, that when you click them they will open a page that contains a video of the product. I'll do that will lightwindow (it's like the lightbox)..

To do that i have to add those:
Code:
<script type="text/javascript" src="lightwindow/javascript/prototype.js"></script> <script type="text/javascript" src="lightwindow/javascript/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="lightwindow/javascript/lightwindow.js"></script> <link rel="stylesheet" href="lightwindow/css/lightwindow.css" type="text/css" media="screen" />

First of all, if i add this on the product description, after i press the button save, i see that the product detailed description isn't saved. I tried to use {literal} but not luck.

I know that i can add those lines on product.tpl but i think that is not a good idea coz i don't need them to all products.. E.g from the 100 products i have, i need it only on 5-10, so it's not a good idea to load them on all products coz maybe this can make the site to take longer to load - lag (am i correct?)
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote