I am attempting to use a javascript effect on the product images in my site but each time I attempt to insert the code into the php it fails. Here's the original code:
I don't need the javascript for the pop-up window, because I'm using a script called Shadowbox that uses a REL link inside the <a> tag to provides a popup image/ shadow rest of the page effect. I deleted the original javascript portion and attempted to include this shadowbox code:Code:<script language="javascript" type="text/javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>'; ?>'); //--></script>
Here's what I came up with.Code:rel="shadowbox[strange];options={counterType:'skip',continuous:true,animSequence:'sync'}"
The page loading fails each time it gets to this code. I suspect that there's a rule for formatting php that I'm unfamiliar with that is causing the trouble. Any suggestions? Thanks.Code:<?php echo '<a rel="shadowbox[strange];options={counterType:'skip',continuous:true,animSequence:'sync'}" href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>'; ?>
Brian



