robert_gsfame Posted May 13, 2010 Share Posted May 13, 2010 Can i have text being displayed but within time limit..let say 5 seconds and then disappear Link to comment https://forums.phpfreaks.com/topic/201627-display-text-within-seconds/ Share on other sites More sharing options...
andrewgauger Posted May 13, 2010 Share Posted May 13, 2010 <head> <script type="text/javascript"> var t=setTimeout("clearDiv(document.getElementById('cleartext'))", 5000); function clearDiv(i) { i.innerHTML="" } </script> </head> <body> <div id="cleartext">This will go away in 5 sec</div> </body> Link to comment https://forums.phpfreaks.com/topic/201627-display-text-within-seconds/#findComment-1057803 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.