...

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



YourDirector
09-22-2011, 11:32 AM
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:


document.getElementById(iid).innerHTML=out;

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?

Thanks

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum