User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 427,177 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,101 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Dec 14th, 2007
Views: 2,392
View the innovative works in action at http://listenlight.net/13/.

Or by way of http://digg.com/programming/The_Listenlight_Text_Engine, you may obtain the source under the very liberal MIT License.

Cheers --
Jess
html Syntax | 5 stars
  1. <html>
  2. <head>
  3.  
  4. <!-- php string $text and function listenlight() defined -->
  5.  
  6. <!-- javascript variables letter and textstringlength and function textengine() defined -->
  7.  
  8. </head>
  9. <body>
  10.  
  11. <?php
  12.  
  13. listenlight($text);
  14.  
  15. ?>
  16.  
  17. <script type="text/javascript">
  18.  
  19. /* CDATA tag not required here; no html entities present */
  20.  
  21. setTimeout("setInterval('textengine();', 90);", 2500);
  22.  
  23. /**
  24. *
  25. * effectively, the above function call waits 2.5 seconds before calling setInterval()
  26. * which calls textengine() on each 90 millisecond interval
  27. **/
  28.  
  29. </script>
  30.  
  31. </body>
  32. </html>
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 9:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC