
Originally Posted by
TimFA
Hey, the below version should be fine, I colored my change blue, just a missing ;
I hope I am wrong, but I seriously doubt that would make any difference. Did you test your theory TimFA?
Anyways, if that doesn't solve the problem:
Please post a link to the page on your site that contains the problematic code so we can check it out.
However, this seems to work out:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function test(){
document.getElementById('cover').src=document.getElementById('chart').src;
var clockID = setTimeout("test()", 1000);
}
</script>
<body>
<a ><img src="test1.jpg" width="128" height="128" id="cover" onmouseover="test();" ><br></a>
<img style="display:none;" id="chart" src="http://chart.apis.google.com/chart?
&chs=200x125
&chd=t:10,58,95|30,8,63
&cht=lc
&chxt=x,y
">
</body>
</html>
But no updating occurs. For that, I think that the &chd=t:10,58,95|30,8,63 would need to be changed each time, though I cannot be sure of that at this point.
Edit: This part seems unnecessary to me:
var clockID = setTimeout("test()", 1000);
Bookmarks