- Code: Select all
// START ALTER TOOLTIP TEXT, DEPENDENT ON CONDITIONS
this.hover = function() {
var build=window.navigator.userAgent;
if (build.match("Firefox/2.0.")) var br = "|";
if (!build.match("Firefox/2.0.")) var br = "\n";
var sizemode = document.documentElement.getAttribute('sizemode');
if (sizemode == 'maximized') var mr = "Restore Down ";
if (sizemode != 'maximized') var mr = "Maximize ";
var mtt = custombuttons.isPref('extensions.minimizetotray.always');
if (mtt == true) var middleFunction = "Minimize to Tray ";
if (!mtt == true) var middleFunction = mr;
this.tooltipText = "L = Minimize " +br+ " M = " + middleFunction +br+ " R = Close";
}
// END ALTER TOOLTIP TEXT, DEPENDENT ON CONDITIONS
this.setAttribute('onmouseover', 'this.hover();' );

Why "br"


