egturnkey Posted March 15, 2010 Share Posted March 15, 2010 Hello friends, if we do have the following element <p>something</b> how we show it up after certain time say X seconds i means if we have the following <please wait X seconds> then after X seconds "please wait x seconds" disappear and it shows the element we have <p>something</b> how can it be Quote Link to comment https://forums.phpfreaks.com/topic/195363-show-element-after-time/ Share on other sites More sharing options...
slurpee Posted March 16, 2010 Share Posted March 16, 2010 <p id="timeLeft">Please wait 5 seconds.</p> <script type="text/javascript"> setTimeout("toggleText();",5000); function toggleText() { document.getElementById("timeLeft").innerHTML = "something"; } </script> Quote Link to comment https://forums.phpfreaks.com/topic/195363-show-element-after-time/#findComment-1026852 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.