Zen Follower
- Join Date:
- Oct 2007
- Posts:
- 106
- Plugin Contributions:
- 0
JavaScript on product page problems
I wanted to add the script below to a product page...and it works find when in "preview" mode but doesn't work on the live site found here:
http://www.vinashcoaching.com/store/index.php?main_page=product_info&products_id=180
Does anyone have any idea?
html>
<head>
<script language="javascript">
var imgMax = new Image(10,10);
imgMax.src = 'images/max_arrow.gif';
var imgMin = new Image(10,10);
imgMin.src = 'images/min_arrow.gif';
function dyntog(a,thisimg)
{
if(a.style.display=="none")
{
a.style.display="inline";
thisimg.src=imgMax.src;
}
else if(a.style.display=="inline")
{
a.style.display="none";
thisimg.src=imgMin.src;
}
return false;
}
</script>
<title>Expand/Collapse the table using DIV</title>
</head>
<body>
<img src="max_arrow.gif" width="10" height="10" border="0" align="absmiddle" style="cursor:hand" onclick="dyntog(tbltog_1,this)" title="Click to Minimize/Maximize the table">
<span id="tbltog_1" style="display:inline">First Line<BR>Second Line<BR></span>
</body>
</html>