toto wrote:
hello
is there a way to edit the content of a div ? for instance to change :
<div>
foo
</div>
into
<div>
ree
</div>
thanks !
Here is an untested example. No idea if it is any good, but it will
probably work.
<div id="DivExample" onmouseover="show('DivExample', 'ree');"
onmouseout="show('DivExample', ' ');" > </div>
<script type="text/javascript><!--
function show (eln, msg) {
if(document.getElementById) {
var el = document.getElementById(eln);
el.innerHTML = msg;
return true;
}
return false;
}
//--></script>