Hello everyone,

I need help calling on a products image to use in a javascript command line. This is what I have so far. Let me know what I need to do

Code:
<?php
  if (zen_not_null($products_image)) {
  ?>
<?php
/**
 * display the main product image
 */
   require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
<?php
  }
?>
I will have to insert into this code snippet:

Code:
showtrail(imagename,title,oriwidth,oriheight,zoomimgwidth,zoomimgheight, image, startx, starty, startw, starth)
And this is what I have so far total:

Code:
showtrail(<?php
  if (zen_not_null($products_image)) {
  ?>
<?php
/**
 * display the main product image
 */
   require($template->get_template_dir('rollover/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
<?php
  }
?>,
<?php echo $products_name; ?>,100,80,200,200,this,0,0,100,80)
I am not a php programmer.... so on a scale of 1 to 10 ... how bad did I butcher this.
I am about to try this but i am making this post now because I am pretty confident that this will not work.

-Avel-

ps.. the bolded rollover word is the directory where i have the new size image stored.

this is basically how it will work. when someone rools over an image the script will kick in and pull the image url and then call for the larger image from the rollover directory with the same image name and will also call for the product title name.