I want to add an image next to "Click here to Download" Meaning when count down is over it should look something like this: Click here to Download and this image should be beside it http://svastara.info/.s/img/icon/download1.png
<script type="text/javascript">
<!--
var count=30;
var obj;
window.onload=function() {
obj=document.getElementById('delayed');
obj.onclick=function() {
if(count<=0) {
return true;
}
else {
if(count==30) {
waitForIt();
return false;
}
else {
return false;
}
}
}
}
function waitForIt() {
obj.firstChild.data='Link will be available after '+count+'secs';
if(count<=0) {
clearTimeout(cd);
obj.firstChild.data='Click here to Download';
obj.className='go';
return;
}
count--;
cd=setTimeout('waitForIt()',1000);
}
//-->
</script>
<div>
<a id="delayed" class="stop" href="http://www.epiclosers.com/">Download (30sec)</a>
</div>