Mohawk1103
Technical User
Hello all,
I hope you can help me..
I'm having a 1row-2column table on my html-page.
Through javascript I'm trying to have the text showing in these table cells, based on an array previously defined (hardcoded text, no user input).
I gave each cell an ID ("left" and "right")
function writetxt()
{
document.createElement("left") = "first picture left";
}
<td><div ID="left">xxxxxxx</td>
I've the feeling I need to use .innerHTML somewhere but I'm stuck..
So the question is: how can I replace xxxxx through the javascript based array?
(the cell contents should be shifting from right to left after 5 secs, the right being filled in with the next key in the array)
Thanks in advance for any help..