img reference in embedded HTML
Permalink<script type="text/javascript">
function showImage(w,h,image) {
var obj=document.getElementById("display").style;
obj.display="block";
obj.width=w+"px";
obj.height=h+"px"
obj.background="url("+image+")";
}
</script>
<img id="display" src="files/2213/3964/6355/myimg.jpg"
alt="My Image" height="40" width="60" onmouseover="showImage('578', '525', 'myimg.jpg');"
onmouseout="showImage('60', '40', 'myimg.jpg');" />
The only way I can get the initial thumbnail to display is to include the full "files/2213/3964/6355/myimg.jpg" path in the src. Interestingly, the full path isn't needed on the event handlers.
Thanks.