Re: javaScript in product.tpl
I'm surprised this is not as easy as I thought it would be.
It's not working.
I've put the following code in the <head> tag of customer/home.tpl
and i tried main/product.tpl
but it doesnt work
{script language="JavaScript"}
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
{/script}
When I view my page, it says at the bottom of the browser window "Done, but with errors on page"
and nothing happens when I click on the link.
The code I'm using inside Detailed Description is
<a href="javascript:;" onClick="MM_openBrWindow('/myImageFile.jpg','template','width=400,height=600) ">
I really hesitate to use X-cart support points on this.
any other ideas or should I give up?
or is there another way to use pop-up windows from within the detailed description?
__________________
Sharon
vers. gold 4.0.17 to 4.1.10 (july 2008 )
|