Forum Moderators: not2easy
<script type="text/javascript">
<!--
setTimeout("alert('Thirty seconds has passed.');",30000);
// -->
</script>
how would i customize that to have text disappear after the 30 seconds?
function hideText(textContainer) {
document.getElementById(textContainer).style.disply = 'none';
}
setTimeout("hideText('myHideText')",5000)
</script>
Then in your HTML:
<p id="myHideText">This text will hide after 5 seconds!</p>
I would recommend that you call the function at the end of your page or onload.
HTH