How can i display and hide layers in firefox?..
the code that i have works fine for IE but does nt work for firefox…
How can i display and hide layers in firefox?..
the code that i have works fine for IE but does nt work for firefox…
show us your code.
this is the code and it has other functionalities too… hope u figure out
function setImg()
{
{
temp = event.srcElement.parentElement.id;
img = temp.substr(temp.length - 1, temp.length);
src1 = (“img”+img);
if(document.getElementById(src1).style.display != “none” )
{
temp_img = “img”+img;
img_name = document.images[src1].src;
temp0 = img_name.indexOf("images");
temp1 = img_name.indexOf("_",temp0);
temp2 = img_name.indexOf(".",temp1);
temp3 = img_name.substr(temp1+1,temp2);
if(temp3 == "on.gif")
{
document.images[src1].src ="../images/sort_off.gif";
}
if(temp3 == "off.gif")
{
document.images[src1].src ="../images/sort_on.gif";
}
}
if(document.getElementById(src1).style.display == "none" )
{
document.getElementById(src1).style.display = '';
hide_img = (temp_img);
document.getElementById(hide_img).style.display ='none';
temp_img = "img"+img;
}
}
}
:: Copyright KIRUPA 2024 //--