home *** CD-ROM | disk | FTP | other *** search
- function showtip( current, e, text ) {
-
- if ( document.all ) {
-
- thetitle = text.split( '<br>' );
-
- if ( thetitle.length > 1 ) {
-
- thetitles ="";
-
- for ( i = 0; i < thetitle.length; i++ ) {
-
- thetitles += thetitle[i] + "\r\n";
-
- thetitles = removeHtmlTag(thetitles);
-
- }
-
- current.title = thetitles;
-
- } else {
-
- current.title = removeHtmlTag(text);
-
- }
-
- } else if ( document.layers ) {
-
- document.tooltip.document.open();
-
- document.tooltip.document.write('<span style="border:1px solid black;font-family:Arial,Helvetica,sans-serif;font-size:12px;color:#000000;">' + text + '</span>');
-
- document.tooltip.document.close();
-
- document.tooltip.left = e.pageX + 10;
-
- document.tooltip.top = e.pageY + 10;
-
- document.tooltip.visibility = "show";
-
- }else if ( document.getElementById("tooltip") ) {
-
- document.getElementById("tooltip").style.left = e.pageX + 10;
-
- document.getElementById("tooltip").style.top = e.pageY + 10;
-
- document.getElementById("tooltip").style.visibility = "visible";
- document.getElementById("tooltip").innerHTML= '<span style="border:1px solid black;font-family:Arial,Helvetica,sans-serif;font-size:12px;color:#000000;">' + text + '</span>';
- }
-
-
- }
-
-
-
- // remove the html tag from the string str
-
- function removeHtmlTag(str)
-
- {
-
- while (true)
-
- {
-
- start = str.indexOf("<");
-
- end = str.indexOf(">", start);
-
-
-
- if (start != -1 && end != -1) // find a tag
-
- {
-
- str = str.substr(0, start) + str.substring(end + 1, str.length);
-
- }
-
- else
-
- {
-
- break; //did not find one
-
- }
-
- }
-
-
-
- return str;
-
- }
-
-
-
- function hidetip() {
-
- if (document.layers) {
-
- document.tooltip.visibility = "hidden";
-
- }
-
- }
-
-