//\//////////////////////////////////////////////////////////////////////////////////
//\
//\  Text Trailer for Mouse Move
//\  This notice must remain untouched at all times.
//\  Copyright I.T. Lity. All rights reserved.
//\
//\  Author: Patrice MOUSSET
//\  Last modified 7 VIII 2003
//\
//\  This script is published under the open source license applicable to Luciol.
//\  Please read the license agreement online at: www.luciol.info
//\
//\//////////////////////////////////////////////////////////////////////////////////

<!-- Identification of Browser: IE6 & NS6 not done -->
var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ns4 = (document.layers && !dom) ? true : false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;

// trailing cursor, only for IE as hide & drop down menu runs ok !
// flag variable shall be defined in your HTML page script area
// force flag to 0 i.e. hide message trailer, when over a HREF zone
function forceFlag(status) {
  if (flag!=-1) flag = status;
}

var x,y;
var step=10;

var xpos=new Array();
var ypos=new Array();
for (i=0;i<=msgTrailer.length-1;i++) {
  xpos[i]=-50;
  ypos[i]=-50;
}

function handlerMM(e){
  x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX;
  y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY;
}

var timer, thisspan;
function showTrailer() {
var visibility
  if (flag==1) visibility='visible'
  else visibility='hidden'

  if (document.all) {
    for (i=msgTrailer.length-1; i>=1; i--) {
      xpos[i]=xpos[i-1]+step
      ypos[i]=ypos[i-1]
    }
    xpos[0]=x+step
    ypos[0]=y

    for (i=0; i<msgTrailer.length-1; i++) {
      thisspan = eval("span"+(i)+".style")
      thisspan.posLeft=xpos[i]
      thisspan.posTop=ypos[i]
      thisspan.visibility=visibility
    }
  }
  else if (document.layers) {
    for (i=msgTrailer.length-1; i>=1; i--) {
      xpos[i]=xpos[i-1]+step
      ypos[i]=ypos[i-1]
    }
    xpos[0]=x+step
    ypos[0]=y

    for (i=0; i<msgTrailer.length-1; i++) {
      thisspan = eval("document.span"+i)
      thisspan.left=xpos[i]
      thisspan.top=ypos[i]
      thisspan.visibility=visibility
    }
  }
  timer=setTimeout("showTrailer()",20)
}

function startTrailer() {}
<!-- DISABLE FUNCTION
function startTrailer() {
  if (ie4 || ie5) {
    for (i=0;i<=msgTrailer.length-1;i++) {
      document.write("<span id='span"+i+"' class='TextTrail'>")
      document.write(msgTrailer[i])
      document.write("</span>")
    }
  }
}
 END OF DISABLE FUNCTION -->
<!-- end of trailing cursor -->
