I had some code that changed the size of an image when clicked and double clicked and it was working. All the sudden its not working and I have no idea why?
<script language=”JavaScript” type=”text/javascript”>
function img_size(n,w,h)
{
document[n.name].width = w;
document[n.name].height = h;
}
</script>
echo “<a onDblClick=’img_size($img_name,$JS[0],$JS[1])’ onClick=’img_size($img_name,$im_size[0],$im_size[1])’><img name=”$img_name” src=”$BASE/$photo” “.imageResize($im_size[0], $im_size[1], $TARGET).” border=”0″></a>”;
I am getting the error “Error: missing ) after argument list
Source Code:
img_size(1d19d21391cffe0ffc331f922daa26ed,518,346)”
Can anyone let me know how to fix this? Thank you.