iceman2g
10-27-2004, 12:41 PM
I have a fairly simple piece of code. What it basically does is show an enlarged version of a thumbnail onmouseover.
I seem to be getting an error though. It says "Unterminated string constant".
Code:
<script type="text/javascript">
function Pic(source) {
document.getElementById("lrgPic").setAttribute("src",source)
}
</script>
<img id=\"lrgPic\" src='images/$image' border=\"0\">
<img src='images/thumb_$sec_image_array[$a]' onmouseover=\"Pic('\images/$sec_image_array[$a]')\"
Based on this code, what might be causing this.
I seem to be getting an error though. It says "Unterminated string constant".
Code:
<script type="text/javascript">
function Pic(source) {
document.getElementById("lrgPic").setAttribute("src",source)
}
</script>
<img id=\"lrgPic\" src='images/$image' border=\"0\">
<img src='images/thumb_$sec_image_array[$a]' onmouseover=\"Pic('\images/$sec_image_array[$a]')\"
Based on this code, what might be causing this.