Pb avec IE4

ankou -  
 ankou -
Dans une fonction javascript, je réécris le contenu d'un span en utilisant un .innerHTML mais cela ne marche pas! J'aimerais savoir si le .innerHTML est supporté par IE4 car en IE5 ca marche!

Si qques a une solution!
merci bcp!

Voici mon code:

if (JSdom) //pour IE5
{
JSpos = document.getElementById(JSidAnchor);
JSSpanLeft = getLeft(JSpos);
JSSpanTop = getTop(JSpos);
document.getElementById(JSidSpan).style.left = JSSpanLeft;
document.getElementById(JSidSpan).style.top = JSSpanTop;
document.getElementById(JSidSpan).style.visibility = 'visible';
document.getElementById(JSidSpan).innerHTML = contenu;
}
else if (JSie4) //pour ie4
{
JSpos = document.all[JSidAnchor];
JSSpanLeft = getLeft(JSpos);
JSSpanTop = getTop(JSpos);
document.all[JSidSpan].style.posleft = JSSpanLeft;
document.all[JSidSpan].style.postop = JSSpanTop;
document.all[JSidSpan].style.visibility = 'visible';
document.all[JSidSpan].innerHTML = contenu;
}

1 réponse

Bobinours Messages postés 2903 Statut Membre 504
 
ankou : oui IE4 gère "inneHTML".

Voir : http://www.dhtmlnirvana.com/alchemy/externalload.htm

-= Bobinours =-
0
ankou
 
merci bcp bobinours mais j'ai réglé le pb!
Merci d'avoir répondu, c'est sympa!
0