Bonjour,
j'ai une page contenant deux div. et j'aimerias ajouter du texte en dynamique dans le tableau du div H4. mais ca ne veut pas
J'utilise la fonction ecriture()
J'ai essayé de remplacer document.body par autre chose mais rien n'y fait.
Auriez vous une idée
merci
voici ma page
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nouvelle page 1</title>
<style type="text/css">
body
{
overflow:"hidden"
}
h4
{
position:absolute;
overflow:'auto';
bottom:0px;
top:0px;
left:0px;
right:0px;
width:100%;
height:100%;
}
h2
{
position:relative;
bottom:0px;
top:0px;
left:0px;
right:0px;
width:100%;
height:100%;
}
</style>
<script language="JavaScript">
function ecriture(texte)
{
addHTML(document.body,'<font face="Tahoma" size="2">' + texte + '</br>');
}
function addHTML(element, HTML) {
var o = document.createElement("htmlSection");
o.innerHTML = HTML;
element.appendChild(o)
}
</script>
</head>
<body topmargin="0" leftmargin="0" bgproperties="fixed" >
<h2><img border="0" src="
[ Lien ]" width="100%" height="100%"></h2>
<h4>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="100%">
<tr>
<td width="100%" valign="bottom">
salut ca amrdf edfsef sdf fd fd f</br>
</table>
</h4>
</body>
</html>