The Listenlight Text Engine

tefflox 0 Tallied Votes 231 Views Share

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>
<head>

  <!-- php string $text and function listenlight() defined -->
  
  <!-- javascript variables letter and textstringlength and function textengine() defined -->

</head>
<body>

  <?php  
  
    listenlight($text);
    
   ?>

  <script type="text/javascript">
    
    /* CDATA tag not required here; no html entities present  */
  
    setTimeout("setInterval('textengine();', 90);", 2500);
    
    /**
      *
      *  effectively, the above function call waits 2.5 seconds before calling setInterval()
      *  which calls textengine() on each 90 millisecond interval
      **/
      
   </script>  

</body>
</html>
KazmiLahore 0 Newbie Poster

Thanks for the info. But I would ask that where it can be used?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.