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

  1.  
  2. <!--
  3. /////////////////////////////////////////////////
  4. // Coalesys WebMenu Studio IE5/IE6 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/arrow-black.gif";var cswmExdIS="./images/arrow-white.gif";var cswmCTH=0;var cswmXOff=0;var cswmYOff=0;var cswmFP=0;var cswmTS=0;var cswmTL=0;var cswmTTI="";function cswmT(ms){if(ms!="off"){if(cswmCTH==0){cswmTI=setTimeout("cswmFO(90);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.all["cswmPopup"+id]){if(offsetX)cswmXOff=offsetX;if(offsetY)cswmYOff=offsetY;if(fixedpos)cswmFP=fixedpos;cswmSP(id);}}}function cswmHide(){cswmTI=setTimeout("cswmFO(90);cswmClkd=-1", 250);}function cswmHiI(id,bgco){if(document.all["cswmIcoOn"+id]){document.all["cswmIco"+id].style.display="none";document.all["cswmIcoOn"+id].style.display="inline";}document.all["cswmItem"+id].style.color="#ffffff";document.all["cswmExpand"+id].style.color="#ffffff";if(bgco!=null){document.all["cswmItem"+id].style.backgroundColor=bgco;document.all["cswmExpand"+id].style.backgroundColor=bgco;}else{document.all["cswmItem"+id].style.backgroundColor="#7c8ca7";document.all["cswmExpand"+id].style.backgroundColor="#7c8ca7";}if(document.all["cswmExpandIc"+id]){document.all["cswmExpandIc"+id].src=cswmExdIS;}}function cswmDiI(id,bgco){if(document.all["cswmIcoOn"+id]){document.all["cswmIco"+id].style.display="inline";document.all["cswmIcoOn"+id].style.display="none";}document.all["cswmItem"+id].style.color="#222222";document.all["cswmExpand"+id].style.color="#222222";if(bgco!=null){document.all["cswmItem"+id].style.backgroundColor=bgco;document.all["cswmExpand"+id].style.backgroundColor=bgco;}else{document.all["cswmItem"+id].style.backgroundColor="#cdd5e2";document.all["cswmExpand"+id].style.backgroundColor="#cdd5e2";}if(document.all["cswmExpandIc"+id]){document.all["cswmExpandIc"+id].src=cswmExIS;}}function cswmHideSelectBox(boolHide,arrSelectList){if(navigator.platform!="MacPPC"){if(arrSelectList){document.cswmSelects=new Array();var SelectID=new String();var iCount=0;for(iCount=0;iCount<arrSelectList.length;iCount++){SelectID=arrSelectList[iCount];document.cswmSelects[iCount]=document.all[SelectID];}}else{document.cswmSelects=document.getElementsByTagName("select");}var iCount=0;for(iCount=0;iCount<document.cswmSelects.length;iCount++){if(boolHide==true){document.cswmSelects[iCount].style.visibility="hidden";}if(boolHide==false){document.cswmSelects[iCount].style.visibility="visible";}}}}function cswmSP(id,itemid){cswmHideSelectBox(true);if(!itemid){clearTimeout(cswmTTI);if(cswmFP){cswmSEL=cswmXOff;cswmSET=cswmYOff;cswmSEH=1;cswmSEW=1;cswmFP=0;}else{cswmSE=new Object(document.all[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;}if(navigator.platform=="MacPPC"){cswmSEL+=Number(document.body.leftMargin);cswmSET+=Number(document.body.topMargin);}}document.all["cswmPopup"+id].style.display="block";cswmPW=document.all["cswmPopup"+id].clientWidth;cswmPH=document.all["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;document.all["cswmPopup"+id].style.left=cswmPx[cswmPx.length-1];document.all["cswmPopup"+id].style.top=cswmPy[cswmPy.length-1];;cswmPI[cswmPI.length]=id;if(cswmTS==0){cswmPR=new Object(eval(cswmOM+"cswmPopup"+id));cswmFI(20);cswmTS=1;}else{eval(cswmOM+"cswmPopup"+id+".style.filter=\"alpha(opacity=100\"");}}else{eval(cswmOM+"cswmPopup"+id+".style.filter=\"alpha(opacity=100\"");cswmPx[cswmPx.length]=document.all["cswmPopup"+cswmPI[cswmPI.length-1]].clientWidth+cswmPx[cswmPx.length-1]-4;var szPrE="";if(document.all["cswmItem"+itemid].parentElement.offsetTop==0){if(navigator.platform=="MacPPC"){var szPrE="parentElement.parentElement.";}else if(document.all["cswmItem"+itemid].parentElement.parentElement.parentElement.parentElement.className!="cswmPopupBox"){var szPrE="parentElement.parentElement.parentElement.";}}cswmPy[cswmPy.length]=eval(cswmOM+"cswmItem"+itemid+".parentElement."+szPrE+"offsetTop")+cswmPy[cswmPy.length-1];document.all["cswmPopup"+id].style.display="block";cswmPW=document.all["cswmPopup"+id].clientWidth;cswmPH=document.all["cswmPopup"+id].clientHeight;var cswmPrW=document.all["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;}document.all["cswmPopup"+id].style.left=cswmPx[cswmPx.length-1];document.all["cswmPopup"+id].style.top=cswmPy[cswmPy.length-1];cswmPI[cswmPI.length]=id;}}function cswmHP(level){if(level==0){cswmHideSelectBox(false);}var count=level;for(count=level;count<cswmPI.length;count++){document.all["cswmPopup"+cswmPI[count]].style.display="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 cswmFI(level){cswmTL=level;if(level<=100){cswmPR.style.filter="alpha(opacity="+cswmTL+")";setTimeout("cswmFI(cswmTL+20);",10);}}function cswmFO(level){cswmTL=level;cswmTS=0;if(level>=0){var iCount=0;for(iCount=0;iCount<cswmPI.length;iCount++){eval(cswmOM+"cswmPopup"+cswmPI[iCount]+".style.filter=\"alpha(opacity=\"+cswmTL+\")\"");}cswmTTI=setTimeout("cswmFO(cswmTL-20);",10);}else{cswmHP(0);}}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=\"cswmPopupThis_Is_Not_Vertical\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#7c8ca7 #222222 #222222 #7c8ca7\"><div style=\"border-style:solid; border-width: 1px; border-color:#ffffff #7c8ca7 #7c8ca7 #ffffff\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'This_Is_Not_Vertical_0\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'This_Is_Not_Vertical_0\')\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemThis_Is_Not_Vertical_0\" class=\"cswmItem\">No, It\'s not vertical when viewed in the editor.<br>This is becuase the editor focuses on creating<br>the menu groups only, not the button bar.<br>Therefore, orientation is not relevant here.<br>To see the vertical layout, open the default<br>page in the sample directory.</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandThis_Is_Not_Vertical_0\" class=\"cswmExpand\"></td></tr></table></div></div></td></tr></table></div><div id=\"cswmPopupFeatures\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#7c8ca7 #222222 #222222 #7c8ca7\"><div style=\"border-style:solid; border-width: 1px; border-color:#ffffff #7c8ca7 #7c8ca7 #ffffff\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Features_0\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Features_0\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemFeatures_0\" class=\"cswmItem\">Overview</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandFeatures_0\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Features_1\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Features_1\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemFeatures_1\" class=\"cswmItem\">How it Works</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandFeatures_1\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Features_2\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Features_2\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemFeatures_2\" class=\"cswmItem\">Visual Editor</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandFeatures_2\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Features_3\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Features_3\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemFeatures_3\" class=\"cswmItem\">Requirements</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandFeatures_3\" class=\"cswmExpand\"></td></tr></table></div></div></td></tr></table></div><div id=\"cswmPopupExamples\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#7c8ca7 #222222 #222222 #7c8ca7\"><div style=\"border-style:solid; border-width: 1px; border-color:#ffffff #7c8ca7 #7c8ca7 #ffffff\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Examples_0\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Examples_0\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemExamples_0\" class=\"cswmItem\">Index</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandExamples_0\" class=\"cswmExpand\"></td></tr></table></div></div></td></tr></table></div><div id=\"cswmPopupDownload\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#7c8ca7 #222222 #222222 #7c8ca7\"><div style=\"border-style:solid; border-width: 1px; border-color:#ffffff #7c8ca7 #7c8ca7 #ffffff\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Download_0\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Download_0\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemDownload_0\" class=\"cswmItem\">Evaluation</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandDownload_0\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Download_1\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Download_1\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemDownload_1\" class=\"cswmItem\">Documentation</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandDownload_1\" class=\"cswmExpand\"></td></tr></table></div></div></td></tr></table></div><div id=\"cswmPopupPurchase\" class=\"cswmPopupBox\"><table border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#7c8ca7 #222222 #222222 #7c8ca7\"><div style=\"border-style:solid; border-width: 1px; border-color:#ffffff #7c8ca7 #7c8ca7 #ffffff\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Purchase_0\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Purchase_0\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemPurchase_0\" class=\"cswmItem\">Order Online</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandPurchase_0\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Purchase_1\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Purchase_1\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemPurchase_1\" class=\"cswmItem\">Order By Fax</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandPurchase_1\" class=\"cswmExpand\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Purchase_2\'); cswmHP(1)\" onmouseout=\"cswmT(250); cswmDiI(\'Purchase_2\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"#cdd5e2\" id=\"cswmItemPurchase_2\" class=\"cswmItem\">Order By Mail</td><td bgcolor=\"#cdd5e2\" id=\"cswmExpandPurchase_2\" class=\"cswmExpand\"></td></tr></table></div></div></td></tr></table></div>\r\n<!-- End WebMenu HTML -->\r\n\r\n");
  11.