home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 August / INTERNET94.ISO / pc / software / windows / building / webmenu_studio / wmstud01.cab / _128216B60DC64DA1A61D8C534C81BBB0 < prev    next >
Encoding:
Text File  |  2002-03-14  |  12.9 KB  |  11 lines

  1.  
  2. <!--
  3. /////////////////////////////////////////////////
  4. // Coalesys WebMenu Studio NN6 DHTML script
  5. // COPYRIGHT 2000-2002 Coalesys, Inc.
  6. /////////////////////////////////////////////////
  7. var cswmTI="";var cswmClkd=-1;var cswmPI=new Array();var cswmPL=new Array();var cswmPT=new Array();var cswmPW=0;var cswmPH=0;var cswmSPnt="";var cswmDir="";var cswmMB=0;var cswmSI="";var cswmSE=new Object();var cswmSEL=0;var cswmSET=0;var cswmSEH=0;var cswmSEW=0;var cswmBW=0;var cswmBH=0;var cswmAR=0;var cswmAB=0;var cswmSLA=0;var cswmSTA=0;var cswmExIS="./images/arrow.gif";var cswmExdIS="./images/arrow.gif";var cswmCTH=0;var cswmXOff=0;var cswmYOff=0;var cswmFP=0;function cswmT(ms){if(ms!="off"){if(cswmCTH==0){cswmTI=setTimeout("cswmHP(0);cswmClkd=-1",ms);}}else{clearTimeout(cswmTI);}}function cswmShow(id,srcid,relpos,offsetX,offsetY,fixedpos){clearTimeout(cswmTI);if(cswmClkd!=id){cswmHP(0);cswmSI=srcid;cswmSPnt=relpos;cswmClkd=id;cswmDir="right";if(document.getElementById("cswmPopup"+id)){if(offsetX)cswmXOff=offsetX;if(offsetY)cswmYOff=offsetY;if(fixedpos)cswmFP=fixedpos;cswmSP(id);}}}function cswmHide(){cswmTI=setTimeout("cswmHP(0);cswmClkd=-1;",350);}function cswmHiI(id,bgco){if(document.getElementById("cswmIcoOn"+id)){document.getElementById("cswmIcoOn"+id).style.display="inline";document.getElementById("cswmIco"+id).style.display="none";}document.getElementById("cswmItem"+id).style.color="#000000";document.getElementById("cswmExpand"+id).style.color="#000000";if(bgco!=null){document.getElementById("cswmItem"+id).style.backgroundColor=bgco;document.getElementById("cswmExpand"+id).style.backgroundColor=bgco;}else{document.getElementById("cswmItem"+id).style.backgroundColor="#66f088";document.getElementById("cswmExpand"+id).style.backgroundColor="#66f088";}if(document.getElementById("cswmExpandIc"+id)){document.getElementById("cswmExpandIc"+id).src=cswmExdIS;}}function cswmDiI(id,bgco){if(document.getElementById("cswmIcoOn"+id)){document.getElementById("cswmIco"+id).style.display="inline";document.getElementById("cswmIcoOn"+id).style.display="none";}document.getElementById("cswmItem"+id).style.color="#66f088";document.getElementById("cswmExpand"+id).style.color="#66f088";if(bgco!=null){document.getElementById("cswmItem"+id).style.backgroundColor=bgco;document.getElementById("cswmExpand"+id).style.backgroundColor=bgco;}else{document.getElementById("cswmItem"+id).style.backgroundColor="";document.getElementById("cswmExpand"+id).style.backgroundColor="";}if(document.getElementById("cswmExpandIc"+id)){document.getElementById("cswmExpandIc"+id).src=cswmExIS;}}function cswmSP(id,itemid){if(!itemid){if(cswmFP){cswmSEL=cswmXOff;cswmSET=cswmYOff;cswmSEH=1;cswmSEW=1;cswmFP=0;}else{cswmSE=new Object(document.getElementById(cswmSI));cswmSEL=new Number(cswmSE.offsetLeft+cswmXOff+document.getElementsByTagName("body").item(0).offsetLeft);cswmSET=new Number(cswmSE.offsetTop+cswmYOff+document.getElementsByTagName("body").item(0).offsetTop);cswmSEH=cswmSE.height;cswmSEW=cswmSE.width;}document.getElementById("cswmPopup"+id).style.display="inline";cswmPW=document.getElementById("cswmPopup"+id).offsetWidth;cswmPH=document.getElementById("cswmPopup"+id).offsetHeight;cswmBW=document.width;cswmBH=window.innerHeight-15;cswmSLA=window.pageXOffset;cswmSTA=window.pageYOffset;switch(cswmSPnt){case "above":cswmPL[cswmPL.length]=cswmSEL;cswmPT[cswmPT.length]=cswmSET-cswmPH;cswmCA();cswmCR();break;case "below":cswmPL[cswmPL.length]=cswmSEL;cswmPT[cswmPT.length]=cswmSET+cswmSEH;cswmCB();cswmCR();break;case "right":cswmPL[cswmPL.length]=cswmSEL+cswmSEW;cswmPT[cswmPT.length]=cswmSET;cswmCR();cswmCB();break;case "left":cswmPL[cswmPL.length]=cswmSEL-cswmPW;cswmPT[cswmPT.length]=cswmSET;cswmCL();cswmCB();cswmDir="left";break;}cswmXOff=0;cswmYOff=0;document.getElementById("cswmPopup"+id).style.left=cswmPL[cswmPL.length-1];document.getElementById("cswmPopup"+id).style.top=cswmPT[cswmPT.length-1];cswmPI[cswmPI.length]=id;}else{cswmPL[cswmPL.length]=document.getElementById("cswmPopup"+cswmPI[cswmPI.length-1]).offsetWidth+cswmPL[cswmPL.length-1]-4;cswmPT[cswmPT.length]=document.getElementById("cswmItem"+itemid).offsetTop;if(parseFloat(navigator.vendorSub)>=6.1){cswmPT[cswmPT.length-1]+=document.getElementById("cswmItem"+itemid).offsetParent.offsetTop;}document.getElementById("cswmPopup"+id).style.display="inline";cswmPW=document.getElementById("cswmPopup"+id).offsetWidth;cswmPH=document.getElementById("cswmPopup"+id).offsetHeight;var cswmPrW=document.getElementById("cswmPopup"+cswmPI[cswmPI.length-1]).offsetWidth;cswmAR=cswmBW-cswmPL[cswmPL.length-1]+cswmSLA;cswmAB=cswmBH-cswmPT[cswmPT.length - 1]+cswmSTA;if(cswmPL[cswmPL.length-2]==cswmSLA){cswmDir="right";}if((cswmAR<cswmPW)||(cswmDir=="left")){cswmMB=(cswmPL[cswmPL.length-1]-cswmPW-cswmPrW)+8;if((cswmMB>=0)&&(cswmMB>cswmSLA)){cswmDir="left";}else{cswmMB=cswmSLA;}cswmPL[cswmPL.length-1]=cswmMB;}if(cswmAB<cswmPH){cswmMB=cswmPT[cswmPT.length-1]-(cswmPH-cswmAB);if(cswmMB<0){cswmMB=cswmSTA;}cswmPT[cswmPT.length-1]=cswmMB;}document.getElementById("cswmPopup"+id).style.left=cswmPL[cswmPL.length-1];document.getElementById("cswmPopup"+id).style.top=cswmPT[cswmPT.length-1];cswmPI[cswmPI.length]=id;}}function cswmHP(level){var count=level;for(count=level;count<cswmPI.length;count++){document.getElementById("cswmPopup"+cswmPI[count]).style.display="none";}if(level==0&&cswmPI.length>0){}cswmPI.length=level;cswmPL.length=level;cswmPT.length=level;}function cswmCR(){cswmAR=(cswmBW+cswmSLA)-cswmPL[cswmPL.length-1];if(cswmAR<cswmPW){if(cswmSPnt=="below"||cswmSPnt=="above"){cswmMB=cswmPL[cswmPL.length-1]-(cswmPW-cswmAR);if(cswmMB<0||cswmMB<cswmSLA){cswmMB=cswmSLA;}cswmPL[cswmPL.length-1]=cswmMB;}else{cswmMB=cswmSEL-cswmPW;if(cswmMB>=0){cswmPL[cswmPL.length-1]=cswmMB;}}}}function cswmCL(){if(cswmPL[cswmPL.length-1]<(cswmSLA)){cswmPL[cswmPL.length-1]=cswmSEL+cswmSEW;cswmCR();}}function cswmCB(){cswmAB=(cswmBH+cswmSTA)-cswmPT[cswmPT.length-1];if(cswmAB<cswmPH){if(cswmSPnt=="below"){cswmMB=cswmPT[cswmPT.length-1]-cswmPH-cswmSEH;if(cswmMB>=0){cswmPT[cswmPT.length-1]=cswmMB;}}else{cswmMB=cswmPT[cswmPT.length-1]-(cswmPH-cswmAB);if(cswmMB<0||cswmMB<cswmSTA){cswmMB=cswmSTA;}cswmPT[cswmPT.length-1]=cswmMB;}}}function cswmCA(){if(cswmPT[cswmPT.length-1]<(cswmSTA)){cswmPT[cswmPT.length-1]=cswmSET+cswmSEH;cswmCB();}}function cswmShowInFrame(MenuID,x,y){x+=window.pageXOffset;y+=window.pageYOffset;cswmShow(MenuID,'','below',x,y,1);}function cswmHideSelectBox(){}function cswmRefresh(){}
  8. //-->
  9.  
  10. document.write("\r\n<!-- Coalesys WebMenu Studio -->\r\n<!-- WebMenu HTML Structure COPYRIGHT 2000-2002 Coalesys, Inc. -->\r\n<div id=\"cswmPopupFile\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_0\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_0\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItemFile_0\" class=\"cswmItem\">New</td><td bgcolor=\"\" id=\"cswmExpandFile_0\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr><td colspan=2 width=1 colspan=2 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_1\'); cswmHP(1); cswmSP(0, \'File_1\')\" onmouseout=\"cswmT(350); cswmDiI(\'File_1\')\" onClick=\"location.href=\'default.htm\'\" nowrap bgcolor=\"\" id=\"cswmItemFile_1\" class=\"cswmItem\">Open</td><td bgcolor=\"\" id=\"cswmExpandFile_1\" class=\"cswmExpand\" style=\"padding-right:5\" onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_1\'); cswmHP(1); cswmSP(0, \'File_1\')\" onmouseout=\"cswmT(350); cswmDiI(\'File_1\')\" onClick=\"location.href=\'default.htm\'\"><img id=\"cswmExpandIcFile_1\" src=\"./images/arrow.gif\" width=10 height=10 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_2\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_2\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItemFile_2\" class=\"cswmItem\">Close</td><td bgcolor=\"\" id=\"cswmExpandFile_2\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_3\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_3\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItemFile_3\" class=\"cswmItem\">Page Setup...</td><td bgcolor=\"\" id=\"cswmExpandFile_3\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_4\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_4\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItemFile_4\" class=\"cswmItem\">Print...</td><td bgcolor=\"\" id=\"cswmExpandFile_4\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/bottom_cap.gif\"></td></tr></table></div><div id=\"cswmPopup0\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/top_cap.gif\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_1\', \'yellow\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_1\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItem0_1\" class=\"cswmItem\">Latest File</td><td bgcolor=\"\" id=\"cswmExpand0_1\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_2\', \'yellow\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_2\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItem0_2\" class=\"cswmItem\">Browse Location...</td><td bgcolor=\"\" id=\"cswmExpand0_2\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/bottom_cap.gif\"></td></tr></table></div><div id=\"cswmPopupEdit\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Edit_0\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'Edit_0\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItemEdit_0\" class=\"cswmItem\">Cut</td><td bgcolor=\"\" id=\"cswmExpandEdit_0\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Edit_1\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'Edit_1\')\" onClick=\"location.href=\'default.htm\'\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItemEdit_1\" class=\"cswmItem\">Copy</td><td bgcolor=\"\" id=\"cswmExpandEdit_1\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHP(1)\" onmouseout=\"cswmT(350)\"><td colspan=2 width=1 background=\"./images/background.gif\"><table width=\"100%\" cellspacing=0 cellpadding=0 border=0><tr><td width=\"100%\" nowrap bgcolor=\"\" id=\"cswmItemEdit_2\" class=\"cswmItem\"><span class=\"cswmDisabled\">Paste</span></td><td bgcolor=\"\" id=\"cswmExpandEdit_2\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></td></tr><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/bottom_cap.gif\"></td></tr></table></div>\r\n<!-- End WebMenu HTML -->\r\n\r\n");
  11.