P
Patrice
Hi,
This code works with ie but not with safari:
function montre(id,this_nb,nb,shtml) {
if (document.getElementById) {
document.getElementById(id).style.visibility = 'visible';
} else if (document.all) {
document.all[id].style.visibility = 'visible';
} else if (document.layers) {
document.layers[id].visibility = 'visible';
};
var el = (document.getElementById)? document.getElementById(id):
(document.all)? document.all[id]: (document.layers)? document.layers[id]:
null;
if (!el) return;
if (typeof el.innerHTML!="undefined") {
el.innerHTML = shtml;
} else if (document.layers) {
el.document.write(shtml);
el.document.close();
}
}
Can someone tells me what to do to make it workm on both browsers?
Thx.
Pat
This code works with ie but not with safari:
function montre(id,this_nb,nb,shtml) {
if (document.getElementById) {
document.getElementById(id).style.visibility = 'visible';
} else if (document.all) {
document.all[id].style.visibility = 'visible';
} else if (document.layers) {
document.layers[id].visibility = 'visible';
};
var el = (document.getElementById)? document.getElementById(id):
(document.all)? document.all[id]: (document.layers)? document.layers[id]:
null;
if (!el) return;
if (typeof el.innerHTML!="undefined") {
el.innerHTML = shtml;
} else if (document.layers) {
el.document.write(shtml);
el.document.close();
}
}
Can someone tells me what to do to make it workm on both browsers?
Thx.
Pat