DEVILofDARKNESS Posted April 22, 2009 Share Posted April 22, 2009 Hi, wann I was looking for a typewriter simulation I found on W3Schools (http://www.w3schools.com/CSS/css_dont.asp) That there is a function but only avaible for internet explorer!, so my question is does anybody know how to do it for every browser? I found it is possible with flash, but is it possible without flash and only with javascript for example, because I'm not familiar with Flash. Thanks! Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted April 22, 2009 Share Posted April 22, 2009 yes im pretty sure you can do that with javascript and now that i look at it i think that i will attemt to make my own function for it, ill get back to you in a bit if i figure it out. Quote Link to comment Share on other sites More sharing options...
DEVILofDARKNESS Posted April 22, 2009 Author Share Posted April 22, 2009 Thanks A Lot! Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted April 22, 2009 Share Posted April 22, 2009 i struggled to make my own as javascript is stupid and doesnt even have the simplest sleep or wait function so here is one that i found that is already made http://www.permadi.com/tutorial/jsTypewriter/index.html Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 22, 2009 Share Posted April 22, 2009 setTimeout is not enough for you? Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted April 22, 2009 Share Posted April 22, 2009 no becaue it makes it so that you need two functions like in the link i linked to which is sort of the same as what i had, i would have preffered to have a sleep or wait function so that i could just loop through the characters in a for loop simply pausing the execution for each character instead of the silly hack method you have to use with the timeout. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 22, 2009 Share Posted April 22, 2009 settimeout could call the same function if there are characters left in the string... Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 22, 2009 Share Posted April 22, 2009 Think about how JavaScript is supposed to work on a webpage. If you used function like sleep in a loop it would affect all other scripts running on this page. Quote Link to comment Share on other sites More sharing options...
DEVILofDARKNESS Posted April 23, 2009 Author Share Posted April 23, 2009 Thanks a Lot! 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.