-
Change Div
Ok this is what i am trying to do.
I have a timer. and after 1 sec i want display a div.
my code:
Code:
<script type="text/javascript">
<!--
function delay(){
alert("New var")
document.div.Temp1.style=""
// At this time i need to we need to show the content of the div
}
//-->
</script>
<body onLoad="setTimeout('delay()', 1000)">
<!-- calls the JavaScrip Junction (Works) -->
<div id="Temp1" style="display:none">
XXXXXXXXXXXXX
</div>
-
Replace
document.div.Temp1.style=""
with
document.getElementById("Temp1").style.display = "";