View Single Post
  #1  
Old 02-06-2008, 08:00 PM
 
jbvideo jbvideo is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 73
 

Default javaScript in product.tpl

What I'm trying to acheive is a small pop up window when someone clicks on a link from within the detailed description... using javaScript

The script is

<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>


and the link is

<a href="javascript:;" onClick="MM_openBrWindow('/myImageFile.jpg','template','width=400,height=600) ">


I've tried putting the script and the link in the Detailed Description but that doesnt work. I've tried putting the script in product.tpl and the link in Detailed Description but that doesnt work.

Help please.....
__________________
Sharon
vers. gold 4.0.17 to 4.1.10 (july 2008 )
Reply With Quote