K
kiran
Hi All
I am using the below function to change an image. I have checked in IE
and its working properly if seen locally on my system.
If the same is inserted in a jsp file and accessed from server, image
is toggled but it is not visible.
If we right click on the image and select 'Show Picture' it is
displayed.
Weird IE problem!!!! Anyone has solutions for this.
Kiran Makam
function toggleImg(name){
var obj = document.images[name];
var src = obj.src.toLowerCase();
if(src.indexOf("yes") != -1){
obj.src = "images/no.gif";
obj.alt = "Collapse";
}else{
obj.src = "images/yes.gif";
obj.alt = "Expand";
}
}
I am using the below function to change an image. I have checked in IE
and its working properly if seen locally on my system.
If the same is inserted in a jsp file and accessed from server, image
is toggled but it is not visible.
If we right click on the image and select 'Show Picture' it is
displayed.
Weird IE problem!!!! Anyone has solutions for this.
Kiran Makam
function toggleImg(name){
var obj = document.images[name];
var src = obj.src.toLowerCase();
if(src.indexOf("yes") != -1){
obj.src = "images/no.gif";
obj.alt = "Collapse";
}else{
obj.src = "images/yes.gif";
obj.alt = "Expand";
}
}