title: Display scrolling text message
body: <p>I would like to use a java script to scroll a text message on a webpage: 
  This is the code I use but it doesn't scroll; could someone help me? </p>
  
  <p>Here is the link to jsfiddle. </p>
  
  <p><a href="http://jsfiddle.net/mandolino/TkE3W/6/" rel="nofollow">http://jsfiddle.net/mandolino/TkE3W/6/</a></p>
  
  <pre><code>&lt;head&gt; 
  &lt;script type="text/javascript"&gt;
  
   msg = "ALL WEB free, free web directory ";
   msg += "con motore di ricerca. ";
   pos = 0;
   function ScrollMessage() {
   var newtext = msg.substring(pos, msg.length) + msg.substring(0, pos);
   var div = document.getElementById("scroll");
   div.firstChild.nodeValue = newtext;
   pos++;
   if (pos &gt; msg.length) pos = 0;
   window.setTimeout("ScrollMessage()",150);
   }
  
   ScrollMessage();
   &lt;/script&gt;
   &lt;/head&gt; 
  
  &lt;body onload="avvia()"&gt; 
  &lt;/body&gt; 
  </code></pre>