I want a 3 second delay in my script
However how can I do this, I don't know!
My script:
<script type="text/javascript">
var baslik = document.title;
$(document).ready(function () {
document.title = '(Welcome)' + baslik; // After 3 seconds
document.title = '(What can i do for you ?)' + baslik; // After 3 seconds
document.title = '(Thank u for viewing to me)' + baslik; // After 3 seconds
document.title = baslik;
});
</script>
use Timeout http://www.w3schools.com/jsref/met_win_settimeout.asp
var baslik = document.title;
postMsg = function(txt) {
document.title = txt + baslik;
}
$(document).ready(function(){
setTimeout("postMsg('(Welcome)')",3000);
setTimeout("postMsg('(What can i do for you ?)')",6000);
setTimeout("postMsg('(Thank u for viewing to me)')",9000);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With