videobus Posted February 19, 2007 Posted February 19, 2007 I've been trying to integrate overlib in OSC and after spending almost a week (on/off) I'm stumped. Three related problems: 1. can't link to the java script as below <script LANGUAGE="JavaScript" SRC="includes/overlib/overlib.js"></SCRIPT> When I inserted overlib.js in-line into the top of new_products.php, then it works fine, but as soon as I link to it, nothing. I placed overlib.js in all the folders, such as catalog/includes/overlib , /catalog/includes and also catalog/includes/modules etc. but nothing works. 2. the java script works as a standard HTML line as below: <script language="javascript"> <!-- <A HREF="java script:void(0);" onMouseOver="overlib('body text here', CAPTION, 'Caption here')" onMouseOut="nd()">Sample popup</A>'); --> </script> 3. I can't firgure out how to make it work as a PHP integrated line as below: $info_box_contents[$row] = array('align' => 'center', 'params' => 'class="HomePageImageText" width="20%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '" >' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_description'], HOME_PAGE_IMAGE_WIDTH, HOME_PAGE_IMAGE_HEIGHT, 'hspace="0" vspace="5"') . '<br><font color=#cc0033>' . $new_products['products_name']. '</font><br><br></a>'); I would like to replace the 'text => '<a href........' with the java equivalent, so when the mouse passes over the image of the item, a popup appears that has the description of it as here: $new_products['products_description'].
Velveeta Posted February 19, 2007 Posted February 19, 2007 I've been trying to integrate overlib in OSC and after spending almost a week (on/off) I'm stumped. Three related problems: 1. can't link to the java script as below <script LANGUAGE="JavaScript" SRC="includes/overlib/overlib.js"></SCRIPT> When I inserted overlib.js in-line into the top of new_products.php, then it works fine, but as soon as I link to it, nothing. I placed overlib.js in all the folders, such as catalog/includes/overlib , /catalog/includes and also catalog/includes/modules etc. but nothing works. 2. the java script works as a standard HTML line as below: <script language="javascript"> <!-- <A HREF="java script:void(0);" onMouseOver="overlib('body text here', CAPTION, 'Caption here')" onMouseOut="nd()">Sample popup</A>'); --> </script> 3. I can't firgure out how to make it work as a PHP integrated line as below: $info_box_contents[$row] = array('align' => 'center', 'params' => 'class="HomePageImageText" width="20%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '" >' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_description'], HOME_PAGE_IMAGE_WIDTH, HOME_PAGE_IMAGE_HEIGHT, 'hspace="0" vspace="5"') . '<br><font color=#cc0033>' . $new_products['products_name']. '</font><br><br></a>'); I would like to replace the 'text => '<a href........' with the java equivalent, so when the mouse passes over the image of the item, a popup appears that has the description of it as here: $new_products['products_description']. This is just a guess... But I notice above that you have the html entity < in place of an actual < symbol for the <script> tag... This could be causing the problem, as it's not being interpreted as an actual script tag, and so it's not loading in that javascript file... Richard. Richard Lindsey
videobus Posted February 20, 2007 Author Posted February 20, 2007 The < was inserted by this forum software when it was posted. The original character I placed in there was a < and when I pressed submit, it was converted to <. Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.