window.onload = function(){scroll();}

var pos = 150;
var scrollTimer;
function scroll()
{

  if (!document.getElementById)
  {
    return;
  }
  var obj = document.getElementById("newsText");
  pos -= 1;
  if (pos < 0-obj.offsetHeight)
  {
    pos = 560;
  }
  obj.style.top = pos + "px"; 
  scrollTimer = window.setTimeout(scroll,60);
  
  var myNewsText = document.getElementById("newsText");

	myNewsText.onmouseover = function(){window.clearTimeout(scrollTimer);}
	myNewsText.onmouseout = function(){scroll();}
}



// TO MY FRIENDS AT WEBDEVELOPER.COM, WHO HELPED ME MODIFY THIS SCRIPT TO SUIT MY NEEDS

/* Thank you so much. A JavaScript news scroller has always been something I wanted for my website,
   but I was never able to figure out how to write one myself. While you guys (you know who you are)
   made the modifications to the script, and I provided the script example from one of my books, it
   will serve me as a tutorial as I continue with my JavaScript studies. Someday, I'll be able to 
   program something just like it, and I'll be able to do it all on my own. Thanks again for  your
   help.
   
   Yours in coding,
   Jeffrey */