R
Royan
Ok this is more then strange but this is how the following code works
in IE:
<html>
<head>
<meta http-equiv=Content-Type content="text/
html;charset=windows-1251">
</head>
<body>
<script>
function reloadImage() {
var oImg = document.getElementById("myImage");
oImg.src = "http://www.google.com/images/nav_logo3.png";
}
</script>
<img id="myImage" src="http://us.i1.yimg.com/us.yimg.com/i/ww/beta/
y3.gif">
<br/><br/>
<a href="javascript:;" onClick="reloadImage()">ðÏÍÅÎÑÔØ
ÉÚÏÂÒÁÖÅÎÉÅ</a>
</body>
</html>
As you can see the browser must simply change Yahoo logo to Google
logo, but for some reason such code does not work in IE6 (Opera/
Firefox are OK)
This is definitely not a problem of changing gif to png as I have
experimented with two gifs and even jpegs.
Can anyone explain what am I doing wrong and how do i make this code
work?
in IE:
<html>
<head>
<meta http-equiv=Content-Type content="text/
html;charset=windows-1251">
</head>
<body>
<script>
function reloadImage() {
var oImg = document.getElementById("myImage");
oImg.src = "http://www.google.com/images/nav_logo3.png";
}
</script>
<img id="myImage" src="http://us.i1.yimg.com/us.yimg.com/i/ww/beta/
y3.gif">
<br/><br/>
<a href="javascript:;" onClick="reloadImage()">ðÏÍÅÎÑÔØ
ÉÚÏÂÒÁÖÅÎÉÅ</a>
</body>
</html>
As you can see the browser must simply change Yahoo logo to Google
logo, but for some reason such code does not work in IE6 (Opera/
Firefox are OK)
This is definitely not a problem of changing gif to png as I have
experimented with two gifs and even jpegs.
Can anyone explain what am I doing wrong and how do i make this code
work?