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

  1.  
  2. <!--
  3. /////////////////////////////////////////////////
  4. // Coalesys WebMenu Studio IE4 DHTML script
  5. // COPYRIGHT 2000-2002 Coalesys, Inc.
  6. /////////////////////////////////////////////////
  7. var cswmOM="document.all.";var cswmBgCo=".style.backgroundColor";var cswmCo=".style.color";var cswmDi=".style.display";var cswmTI="";var cswmClkd=-1;var cswmPI=new Array();var cswmPx=new Array();var cswmPy=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/Popup.gif";var cswmExdIS="./images/Popup.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(eval(cswmOM+"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){eval(cswmOM+"cswmItem"+id+cswmCo+"=\"#000000\"");eval(cswmOM+"cswmExpand"+id+cswmCo+"=\"#000000\"");if(bgco!=null){eval(cswmOM+"cswmItem"+id+cswmBgCo+"=\""+bgco+"\"");eval(cswmOM+"cswmExpand"+id+cswmBgCo+"=\""+bgco+"\"");}else{eval(cswmOM+"cswmItem"+id+cswmBgCo+"=\"#d4dfe5\"");eval(cswmOM+"cswmExpand"+id+cswmBgCo+"=\"#d4dfe5\"");}if(eval(cswmOM+"cswmExpandIc"+id)){eval(cswmOM+"cswmExpandIc"+id+".src=cswmExdIS");}}function cswmDiI(id, bgco){eval(cswmOM+"cswmItem"+id+cswmCo+"=\"#000000\"");eval(cswmOM+"cswmExpand"+id+cswmCo+"=\"#000000\"");if(bgco!=null){eval(cswmOM+"cswmItem"+id+cswmBgCo+"=\""+bgco+"\"");eval(cswmOM+"cswmExpand"+id+cswmBgCo+"=\""+bgco+"\"");}else{eval(cswmOM+"cswmItem"+id+cswmBgCo+"=\"\"");eval(cswmOM+"cswmExpand"+id+cswmBgCo+"=\"\"");}if(eval(cswmOM+"cswmExpandIc"+id)){eval(cswmOM+"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(eval(cswmOM+cswmSI));var cswmPrO=cswmSE;var cswmPrT="";cswmSEL=cswmSE.offsetLeft+cswmXOff;cswmSET=cswmSE.offsetTop+cswmYOff;cswmSEH=cswmSE.offsetHeight;cswmSEW=cswmSE.offsetWidth;while(cswmPrT!="BODY"){cswmPrO=cswmPrO.offsetParent;cswmSEL+=cswmPrO.offsetLeft;cswmSET+=cswmPrO.offsetTop;cswmPrT=cswmPrO.tagName;}}eval(cswmOM+"cswmPopup"+id+".style.width=1");eval(cswmOM+"cswmPopup"+id+".style.height=1");eval(cswmOM+"cswmPopup"+id+cswmDi+"=\"block\"");cswmPW=eval(cswmOM+"cswmPopup"+id+".clientWidth");cswmPH=eval(cswmOM+"cswmPopup"+id+".clientHeight");cswmBW=document.body.clientWidth;cswmBH=document.body.clientHeight;cswmSLA=document.body.scrollLeft;cswmSTA=document.body.scrollTop;switch(cswmSPnt){case "above":cswmPx[cswmPx.length]=cswmSEL;cswmPy[cswmPy.length]=cswmSET-cswmPH;cswmCA();cswmCR();break;case "below":cswmPx[cswmPx.length]=cswmSEL;cswmPy[cswmPy.length]=cswmSET+cswmSEH;cswmCB();cswmCR();break;case "right":cswmPx[cswmPx.length]=cswmSEL+cswmSEW;cswmPy[cswmPy.length]=cswmSET;cswmCR();cswmCB();break;case "left":cswmPx[cswmPx.length]=cswmSEL-cswmPW;cswmPy[cswmPy.length]=cswmSET;cswmCL();cswmCB();cswmDir="left";break;}cswmXOff=0;cswmYOff=0;eval(cswmOM+"cswmPopup"+id+".style.left=cswmPx[cswmPx.length-1]");eval(cswmOM+"cswmPopup"+id+".style.top=cswmPy[cswmPy.length-1]");cswmPI[cswmPI.length]=id;}else{cswmPx[cswmPx.length]=eval(cswmOM+"cswmPopup"+cswmPI[cswmPI.length-1]+".clientWidth")+cswmPx[cswmPx.length-1]-4;var szPrE="";if(document.all["cswmItem"+itemid].offsetParent.offsetTop==0){if(document.all["cswmItem"+itemid].offsetParent.offsetParent.offsetParent.offsetParent.className!="cswmPopupBox"){var szPrE="offsetParent.offsetParent.offsetParent.";}}cswmPy[cswmPy.length]=eval(cswmOM+"cswmItem"+itemid+".offsetParent."+szPrE+"offsetTop")+cswmPy[cswmPy.length-1];eval(cswmOM+"cswmPopup"+id+".style.width=1");eval(cswmOM+"cswmPopup"+id+".style.height=1");eval(cswmOM+"cswmPopup"+id+cswmDi+"=\"block\"");cswmPW=eval(cswmOM+"cswmPopup"+id+".clientWidth");cswmPH=eval(cswmOM+"cswmPopup"+id+".clientHeight");var cswmPrW=eval(cswmOM+"cswmPopup"+cswmPI[cswmPI.length-1]+".clientWidth");cswmAR=cswmBW-cswmPx[cswmPx.length-1]+cswmSLA;cswmAB=cswmBH-cswmPy[cswmPy.length-1]+cswmSTA;if(cswmPx[cswmPx.length-2]==cswmSLA){cswmDir="right";}if((cswmAR<cswmPW)||(cswmDir=="left")){cswmMB=(cswmPx[cswmPx.length-1]-cswmPW-cswmPrW)+8;if((cswmMB>=0)&&(cswmMB>cswmSLA)){cswmDir="left";}else{cswmMB=cswmSLA;}cswmPx[cswmPx.length-1]=cswmMB;}if(cswmAB<cswmPH){cswmMB=cswmPy[cswmPy.length-1]-(cswmPH-cswmAB);if(cswmMB<0){cswmMB=cswmSTA;}cswmPy[cswmPy.length-1]=cswmMB;}eval(cswmOM+"cswmPopup"+id+".style.left=cswmPx[cswmPx.length-1]");eval(cswmOM+"cswmPopup"+id+".style.top=cswmPy[cswmPy.length-1]");cswmPI[cswmPI.length]=id;}}function cswmHP(level){var count=level;for(count=level;count<cswmPI.length;count++){eval(cswmOM+"cswmPopup"+cswmPI[count]+cswmDi+"=\"none\"");}if(level==0&&cswmPI.length>0){}cswmPI.length=level;cswmPx.length=level;cswmPy.length=level;}function cswmCR(){cswmAR=(cswmBW+cswmSLA)-cswmPx[cswmPx.length-1];if(cswmAR<cswmPW){if(cswmSPnt=="below"||cswmSPnt=="above"){cswmMB=cswmPx[cswmPx.length-1]-(cswmPW-cswmAR);if(cswmMB<0||cswmMB<cswmSLA){cswmMB=cswmSLA;}cswmPx[cswmPx.length-1]=cswmMB;}else{cswmMB=cswmSEL-cswmPW;if(cswmMB>=0){cswmPx[cswmPx.length-1]=cswmMB;}}}}function cswmCL(){if(cswmPx[cswmPx.length-1]<(cswmSLA)){cswmPx[cswmPx.length-1]=cswmSEL+cswmSEW;cswmCR();}}function cswmCB(){cswmAB=(cswmBH+cswmSTA)-cswmPy[cswmPy.length-1];if(cswmAB<cswmPH){if(cswmSPnt=="below"){cswmMB=cswmPy[cswmPy.length-1]-cswmPH-cswmSEH;if(cswmMB>=0){cswmPy[cswmPy.length-1]=cswmMB;}}else{cswmMB=cswmPy[cswmPy.length-1]-(cswmPH-cswmAB);if(cswmMB<0||cswmMB<cswmSTA){cswmMB=cswmSTA;}cswmPy[cswmPy.length-1]=cswmMB;}}}function cswmCA(){if(cswmPy[cswmPy.length-1]<(cswmSTA)){cswmPy[cswmPy.length-1]=cswmSET+cswmSEH;cswmCB();}}function cswmHideSelectBox(){}function cswmShowInFrame(MenuID,x,y){x+=document.body.scrollLeft;y+=document.body.scrollTop;cswmShow(MenuID,'','below',x,y,1);}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 background=\"./images/background.gif\" border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#446679 #446679 #446679 #446679\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_0\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_0\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_0\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_0\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>New</td><td bgcolor=\"\" id=\"cswmExpandFile_0\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_1\'); cswmHP(1); cswmSP(0, \'File_1\')\" onmouseout=\"cswmT(350); cswmDiI(\'File_1\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_1\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_1\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Open</td><td bgcolor=\"\" id=\"cswmExpandFile_1\" class=\"cswmExpand\" style=\"padding-right:5\"><img id=\"cswmExpandIcFile_1\" src=\"./images/Popup.gif\" width=10 height=10 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_2\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_2\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_2\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_2\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Close</td><td bgcolor=\"\" id=\"cswmExpandFile_2\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"#88a6b6\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/divider.gif\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_4\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_4\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_4\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_4\" src=\"./images/icon1.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Add New Item...</td><td bgcolor=\"\" id=\"cswmExpandFile_4\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_5\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_5\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_5\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_5\" src=\"./images/icon2.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Add Existing Item...</td><td bgcolor=\"\" id=\"cswmExpandFile_5\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_6\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_6\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_6\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_6\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Add Project</td><td bgcolor=\"\" id=\"cswmExpandFile_6\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"#88a6b6\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/divider.gif\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHP(1)\" onmouseout=\"cswmT(350)\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_8\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_8\" src=\"./images/icon7.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span><span class=\"cswmDisabled\">Page Setup...</span></td><td bgcolor=\"\" id=\"cswmExpandFile_8\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_9\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_9\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_9\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIcoFile_9\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Print...</td><td bgcolor=\"\" id=\"cswmExpandFile_9\" class=\"cswmExpand\"></td></tr></table></div></td></tr></table></div><div id=\"cswmPopup0\" class=\"cswmPopupBox\"><table background=\"./images/background.gif\" border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#446679 #446679 #446679 #446679\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_0\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_0\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_0\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIco0_0\" src=\"./images/icon3.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Project...</td><td bgcolor=\"\" id=\"cswmExpand0_0\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_1\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_1\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_1\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIco0_1\" src=\"./images/icon4.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>Project From Web...</td><td bgcolor=\"\" id=\"cswmExpand0_1\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_2\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_2\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_2\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIco0_2\" src=\"./images/icon5.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>File</td><td bgcolor=\"\" id=\"cswmExpand0_2\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_3\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_3\')\" onClick=\"window.top.main.location.href = \'body.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_3\" class=\"cswmItem\"><span><img align=\"absmiddle\" id=\"cswmIco0_3\" src=\"./images/icon6.gif\" alt=\"\" border=0 height=16 width=16><img align=\"absmiddle\" alt=\"\" border=0 height=1 width=12 src=\"./images/clearpixel.gif\"></span>File From Web...</td><td bgcolor=\"\" id=\"cswmExpand0_3\" class=\"cswmExpand\"></td></tr></table></div></td></tr></table></div>\r\n<!-- End WebMenu HTML -->\r\n\r\n");
  11.