home *** CD-ROM | disk | FTP | other *** search
/ Desktop Icons 2000 / Icons2000.iso / Help / products / jsexternal / dropmenu.js < prev    next >
Text File  |  1999-10-08  |  726b  |  22 lines

  1. function MM_displayStatusMsg(msgStr) { //v2.0
  2.   status=msgStr;
  3.   document.MM_returnValue = true;
  4. }
  5.  
  6. function MM_showHideLayers() { //v2.0
  7.   var i, visStr, args, theObj;
  8.   args = MM_showHideLayers.arguments;
  9.   for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
  10.     visStr   = args[i+2];
  11.     if (navigator.appName == 'Netscape' && document.layers != null) {
  12.       theObj = eval(args[i]);
  13.       if (theObj) theObj.visibility = visStr;
  14.     } else if (document.all != null) { //IE
  15.       if (visStr == 'show') visStr = 'visible'; //convert vals
  16.       if (visStr == 'hide') visStr = 'hidden';
  17.       theObj = eval(args[i+1]);
  18.       if (theObj) theObj.style.visibility = visStr;
  19.   } }
  20. }
  21.  
  22.