View Full Version : .innerHTML= Image && Var??

09-22-2011, 12:32 PM
Hey everyone,

I'm struggling to get this to work, I have a countdown timer with the timer itself declared as, 'out'. This is then set as the content for a div using:


My code basically says, if the countdown timer hasn't finished, do the above, if however it has reached the end, set the contents of the div to something else.

What I need to do is add an image above the timer which disappears with it when it reaches 0, so essentially, I need to be able to do something like the following (except obviously in the correct syntax, if it exists).

document.getElementById(iid).innerHTML="<img src='images/dateheader.png'><br>" out;

Is this possible?


09-22-2011, 01:23 PM
Never mind, I just edited the timer itself to contain the image above.
Thanks anywhoo