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 Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.