home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beginning Direct3D Game Programming
/
Direct3D.iso
/
directx
/
dxf
/
extras
/
documentation
/
directx7
/
directx7.chm
/
dxmedia
/
foundation
/
d3drm
/
js
/
dxmtoolbarsetmenu.js
< prev
next >
Wrap
Text File
|
2000-09-22
|
6KB
|
122 lines
var ToolBar_Supported = ToolBar_Supported ;
if (ToolBar_Supported != null && ToolBar_Supported == true)
{
//To Turn on/off Instrumentation set DoInstrumentation = true/false.
DoInstrumentation= false;
// Customize default MS menu color - bgColor, fontColor, mouseoverColor
setDefaultMSMenuColor("#000000", "white", "red");
// Customize toolbar background color
setToolbarBGColor("white");
// display default ICP Banner
setICPBanner("/library/toolbar/images/banner.gif","/isapi/gomscom.asp?target=/","microsoft.com Home") ;
// display MSCOM Banner
setMSBanner("mslogo.gif","/isapi/gomscom.asp?target=/","microsoft.com Home") ;
// display ADS
//setAds("/library/toolbar/images/ADS/ad.gif","","") ;
//***** Add Standard Microsoft.com menus *****
//ProductsMenu
addMSMenu("ProductsMenu", "All Products", "","/isapi/gomscom.asp?target=/products/");
addMSSubMenu("ProductsMenu","Downloads","/isapi/gomscom.asp?target=/msdownload/default.htm");
addMSSubMenu("ProductsMenu","MS Product Catalog","/isapi/gomscom.asp?target=/products/");
addMSSubMenu("ProductsMenu","Resellers","/isapi/gomscom.asp?target=/isapi/referral/default.asp");
addMSSubMenuLine("ProductsMenu");
addMSSubMenu("ProductsMenu","BackOffice Family","/isapi/gobackoffice.asp?target=/");
addMSSubMenu("ProductsMenu","Developer Tools","/isapi/gomsdn.asp?target=/developer/");
addMSSubMenu("ProductsMenu","Office Family","/isapi/gomscom.asp?target=/office/");
addMSSubMenu("ProductsMenu","Windows Family","/isapi/gomscom.asp?target=/windows/");
//SupportMenu
addMSMenu("SupportMenu", "Support", "","/isapi/gomscom.asp?target=/support/");
addMSSubMenu("SupportMenu","Product Support","/isapi/gomscom.asp?target=/support/");
addMSSubMenu("SupportMenu","Service Partner Referrals","/isapi/gomscom.asp?target=/isapi/referral/default.asp");
addMSSubMenu("SupportMenu","Year 2000 Compliance","/isapi/gomscom.asp?target=/technet/topics/year2K/");
//SearchMenu
addMSMenu("SearchMenu", "Search", "","/isapi/gosearch.asp?target=/");
addMSSubMenu("SearchMenu","Search microsoft.com","/isapi/gosearch.asp?target=/");
//MicrosoftMenu
addMSMenu("MicrosoftMenu", "microsoft.com Guide", "","/isapi/gomscom.asp?target=/");
addMSSubMenu("MicrosoftMenu","microsoft.com Home","/isapi/gomscom.asp?target=/");
addMSSubMenu("MicrosoftMenu","MSN Home","/isapi/gohome.asp?target=/");
addMSSubMenuLine("MicrosoftMenu");
addMSSubMenu("MicrosoftMenu","Contact Us","/isapi/goregwiz.asp?target=/regwiz/regwiz.asp");
addMSSubMenu("MicrosoftMenu","Events","http://events.microsoft.com/events/");
addMSSubMenu("MicrosoftMenu","Newsletters","/isapi/goregwiz.asp?target=/REGWIZ/forms/subscribe.asp");
addMSSubMenu("MicrosoftMenu","Profile Center","/isapi/goregwiz.asp?target=/REGWIZ/forms/Pic.asp");
addMSSubMenu("MicrosoftMenu","Training & Certification","/isapi/gomscom.asp?target=/train_cert/");
//DXM Menu
//To Turn on/off Frame support, set Frame_Supported = true/false.
Frame_Supported = false;
// Customize default ICP menu color - bgColor, fontColor, mouseoverColor
setDefaultICPMenuColor("#000066", "#FFFFFF", "#FFCC00");
// Customize toolbar background color
setToolbarBGColor("#FFFFFF");
// display ICP Banner
setICPBanner(sRelPath + "images/hdrd3drm.gif", sRelPath + "../../default.htm", "Return to Microsoft DirectX Media SDK") ;
// Previous link menu
if(sPrevUrl != "" && sPrevTitle != ""){
addICPMenu("mnuPrev", "Previous", "", sPrevUrl, "_self");
addICPSubMenu("mnuPrev", " " + sPrevTitle, sPrevUrl, "_self");
addICPSubMenu("mnuPrev", " ", " ", "_self");
}
// Next link menu
if(sNextUrl != "" && sNextTitle != ""){
addICPMenu("mnuNext", "Next", "", sNextUrl, "_self");
addICPSubMenu("mnuNext", " " + sNextTitle, sNextUrl, "_self");
addICPSubMenu("mnuNext", " ", " ", "_self");
}
// Index links menu
addICPMenu("idx1", "Index", "", sRelPath + "index.htm", "_self");
addICPSubMenu("idx1", " #", sRelPath + "index1-0.htm", "_self");
addICPSubMenu("idx1", "A", sRelPath + "index1-1.htm", "_self");
addICPSubMenu("idx1", "B", sRelPath + "index1-2.htm", "_self");
addICPSubMenu("idx1", "C", sRelPath + "index1-3.htm", "_self");
addICPSubMenu("idx1", "D", sRelPath + "index1-4.htm", "_self");
addICPSubMenu("idx1", "E", sRelPath + "index1-5.htm", "_self");
addICPSubMenu("idx1", "F", sRelPath + "index1-6.htm", "_self");
addICPSubMenu("idx1", "G", sRelPath + "index1-7.htm", "_self");
addICPSubMenu("idx1", "H", sRelPath + "index1-8.htm", "_self");
addICPSubMenu("idx1", "I", sRelPath + "index1-9.htm", "_self");
//addICPSubMenu("idx1", "J", sRelPath + "index1-10.htm", "_self");
//addICPSubMenu("idx1", "K", sRelPath + "index1-11.htm", "_self");
addICPSubMenu("idx1", "L", sRelPath + "index1-12.htm", "_self");
addICPSubMenu("idx1", "M", sRelPath + "index1-13.htm", "_self");
addICPSubMenu("idx1", "N", sRelPath + "index1-14.htm", "_self");
addICPSubMenu("idx1", "O", sRelPath + "index1-15.htm", "_self");
addICPSubMenu("idx1", "P", sRelPath + "index1-16.htm", "_self");
addICPSubMenu("idx1", "Q", sRelPath + "index1-17.htm", "_self");
addICPSubMenu("idx1", "R", sRelPath + "index1-18.htm", "_self");
addICPSubMenu("idx1", "S", sRelPath + "index1-19.htm", "_self");
addICPSubMenu("idx1", "T", sRelPath + "index1-20.htm", "_self");
addICPSubMenu("idx1", "U", sRelPath + "index1-21.htm", "_self");
addICPSubMenu("idx1", "V", sRelPath + "index1-22.htm", "_self");
addICPSubMenu("idx1", "W", sRelPath + "index1-23.htm", "_self");
//addICPSubMenu("idx1", "X", sRelPath + "index1-24.htm", "_self");
//addICPSubMenu("idx1", "Y", sRelPath + "index1-25.htm", "_self");
addICPSubMenu("idx1", "Z", sRelPath + "index1-26.htm", "_self");
// Topic contents link menu
if(sCntUrl != "" && sCntTitle != ""){
addICPMenu("mnuContents", "Topic Contents", "", sCntUrl, "_self");
//addICPSubMenu("mnuContents", " " + sCntTitle, sCntUrl, "_self");
//addICPSubMenu("mnuContents", " ", " ", "_self");
}
// Show/Hide table of contents menu
addICPMenu("mnuToc", "Show Contents", "", sRelPath + "contents.htm", "_self");
}