home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 August / INTERNET94.ISO / pc / software / windows / building / webmenu_studio / wmstud01.cab / _4D96D14EB4D84293A3863C5BE39C3CDB < prev    next >
Encoding:
Text File  |  2002-03-14  |  12.8 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-black.gif";var cswmExdIS="./images/arrow-white.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;",250);}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="#ffffff";document.getElementById("cswmExpand"+id).style.color="#ffffff";if(bgco!=null){document.getElementById("cswmItem"+id).style.backgroundColor=bgco;document.getElementById("cswmExpand"+id).style.backgroundColor=bgco;}else{document.getElementById("cswmItem"+id).style.backgroundColor="#7c8ca7";document.getElementById("cswmExpand"+id).style.backgroundColor="#7c8ca7";}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="#222222";document.getElementById("cswmExpand"+id).style.color="#222222";if(bgco!=null){document.getElementById("cswmItem"+id).style.backgroundColor=bgco;document.getElementById("cswmExpand"+id).style.backgroundColor=bgco;}else{document.getElementById("cswmItem"+id).style.backgroundColor="#cdd5e2";document.getElementById("cswmExpand"+id).style.backgroundColor="#cdd5e2";}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=\"cswmPopupThis_Is_Not_Vertical\" class=\"cswmPopupBox\"><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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></div><div id=\"cswmPopupFeatures\" class=\"cswmPopupBox\"><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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></div><div id=\"cswmPopupExamples\" class=\"cswmPopupBox\"><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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></div><div id=\"cswmPopupDownload\" class=\"cswmPopupBox\"><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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></div><div id=\"cswmPopupPurchase\" class=\"cswmPopupBox\"><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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></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\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></div>\r\n<!-- End WebMenu HTML -->\r\n\r\n");
  11.