
/*
Mike's DHTML scroller (By Mike Hall)
Last updated July 21st, 02' by Dynamic Drive for NS6 functionality
For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com
*/

//SET SCROLLER APPEARANCE AND MESSAGES
var myScroller1 = new Scroller(0, 0, 577, 18, 0, 0); //(xpos, ypos, width, height, border, padding)
myScroller1.setColors("#000066", "#000066", "#000066"); //(fgcolor, bgcolor, bdcolor)
myScroller1.setFont("Verdana,Arial,Helvetica", 1);
//myScroller1.addItem("<b><font color=white>Click here for <a href='http://dynamicdrive.com'>Dynamic Drive</a>, the net\'s #1 DHTML site!</font></b>");
//myScroller1.addItem("<b><font color=white>Visit <a href='http://www.brainjar.com'>Brain Jar</a>, Mike\'s great coding site!</font></b>");
//myScroller1.addItem("<b><font color=white>Looking for free JavaScripts? Visit <a href='http://javascriptkit.com'>JavaScript Kit.</font></a>");
//myScroller1.addItem("<b><font color=white>Discuss and get help on web coding, at <a href='http://www.codingforums.com'>CodingForums.com</a></font></b>");

//SET SCROLLER PAUSE
myScroller1.setPause(5000); //set pause beteen msgs, in milliseconds

function runmikescroll() {

  var layer;
  var mikex, mikey;

  // Locate placeholder layer so we can use it to position the scrollers.

  layer = getLayer("placeholder");
  mikex = getPageLeft(layer);
  mikey = getPageTop(layer);

  // Create the first scroller and position it.

  myScroller1.create();
  myScroller1.hide();
  myScroller1.moveTo(mikex, mikey);
  myScroller1.setzIndex(100);
  myScroller1.show();
}