Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hierarchical Menus 1

Status
Not open for further replies.

Ronh

Programmer
Jun 5, 1999
5
US
I am working on a table of contents for a web site with five possible selections. As a visitor to the site mouses over each selection, a menu appears with links to other pages. Is this done with DHTML or a Java applet? Can anyone let me know how this is done? Thanks for your help.<br>
<br>
Ronh
 
I know that this can be done either with DHTML & JavaScript; or with a Java Applet; which would you prefer? (the Java Applet method would PROBABLY be a little more compatible; but I can't help you at all with pure Java; just JS)<br>
<br>
<br>
-Robherc<br>
robherc@netzero.net
 
Thanks, Robherc. If you know of an example in Javascript that can be used in HTML code, that would be great. Thanks.<br>
<br>
Ronh
 
A popup menu on a mouseover is a rather simple javascript. You should be able to pop a little coding right into your html to make this happen. Drop me a line and I can give you more specific examples and some source code.<br>
<br>
&lt;a href="mailto:bunsenator@hotmail.com"&gt;Phred&lt;/a&gt;
 
Phred,<br>
<br>
Why not just post some source code here? I would like to see your javascript example, as well.
 
one possibility (though HIGHLY complicated) would be to move layers (set apart by &lt;div&gt; tags) to the front or back using an onMouseOver="" call.<br>
(like I said though; prety complicated &--since I'm facing the last day of school (tests galore)--I don't really have the time to invest in making such a script for you right now.<br>
<br>
<br>
-Robherc<br>
robherc@netzero.net
 
Here's a neat little example from a certain, how to put this,"EVIL" website...namely, Microsoft. I took the liberty of removing the useless META tags at the top, but the bulk of it remains intact. This should help you a bit...hopefully...&lt;HTML&gt;<br>
&lt;HEAD&gt;<br>
&lt;SCRIPT TYPE="text/javascript"&gt;<br>
var MSIEIndex = navigator.userAgent.indexOf("MSIE");<br>
if (navigator.userAgent.indexOf("MSIE") == -1 ¦¦<br>
navigator.userAgent.indexOf("Windows") == -1 ¦¦ <br>
navigator.userAgent.substring((MSIEIndex + 5),(MSIEIndex + 6)) &lt; 4) <br>
{<br>
window.location.replace("/default.htm");<br>
}<br>
&lt;/SCRIPT&gt;<br>
<br>
&lt;STYLE type="text/css"&gt;<br>
A:link { color:#003399; }<br>
A:visited { color:#003399; }<br>
A:hover { color:red; }<br>
&lt;/STYLE&gt;<br>
&lt;/HEAD&gt;<br>
<br>
&lt;BODY TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" BGCOLOR="#FFFFFF" TEXT="#000000" ALINK="#003399" LINK="#003399" VLINK="#003399"&gt;<br>
&lt;script language="JavaScript" src='/library/toolbar/toolbar.js'&gt;&lt;/script&gt;<br>
&lt;script language="JavaScript" src='/library/toolbar/en-us/global.js'&gt;&lt;/script&gt;<br>
&lt;script language="JavaScript" src='/library/toolbar/en-us/local.js'&gt;&lt;/script&gt;<br>
&lt;DIV ID="DownLevelDiv"&gt;<br>
This page must be viewed with IE4 or above, and with Active Scripting enabled.<br>
&lt;/DIV&gt;<br>
&lt;script language="JavaScript"&gt;<br>
DownLevelDiv.style.display ='none';<br>
setICPBanner("/library/homepage/images/bnr_all.gif","","microsoft.com Home");<br>
drawToolbar();<br>
&lt;/script&gt;<br>
<br>
&lt;script language="JavaScript" src='/library/homepage/homepage.js'&gt;&lt;/script&gt;<br>
&lt;script language="JavaScript" src='/library/homepage/navigation.js'&gt;&lt;/script&gt;<br>
&lt;script language="JavaScript" src='/library/homepage/headline.js'&gt;&lt;/script&gt;<br>
&lt;script language="JavaScript"&gt;<br>
showHomePage("All");<br>
&lt;/script&gt;<br>
<br>
&lt;/BODY&gt;<br>
&lt;/HTML&gt;<br>
<br>
You might try downloading the actual .js files if you can get them from their server...I'll put up another example soon.<br>
Phred<br>
<br>

 
This is great. Thanks, Phred. I appreciate your help.<br>
<br>
Ronh
 
I'll try to get those .js files downloaded & post them here.<br>
I have a specialized download-only program that allows me to download ANYTHING (ie. CGI scripts, JavaScript archives, HTML pages, Text files...whatever)<br>
Please keep posting in here so this thread will remain marked for me (otherwise I might forget to do all of the downloading)<br>
<br>
Hope to be able to offer some more help soon :)<br>
<br>
<br>
-Robherc<br>
robherc@netzero.net
 
WOW those files were BIG!!!<br>
(soo big that I ended up having to split the code into 3 parts after adding them just so Notepad could handle it!)<br>
<br>
Anywise; I'll put the code, with ALL of the .js files already integrated, in here as my next 3 messages...hope someone has the time to look through all of it & sort out the part that's used for what we're wanting.<br>
<br>
<br>
-Robherc<br>
robherc@netzero.net
 
&lt;HTML&gt;<br>
&lt;HEAD&gt;<br>
&lt;SCRIPT TYPE="text/javascript"&gt; &lt;!-- hide;<br>
var MSIEIndex = navigator.userAgent.indexOf("MSIE");<br>
if (navigator.userAgent.indexOf("MSIE") == -1 ¦¦ navigator.userAgent.indexOf("Windows") == -1 ¦¦ navigator.userAgent.substring((MSIEIndex + 5),(MSIEIndex + 6)) &lt; 4) <br>
{<br>
window.location.replace("/default.htm");<br>
} //end hide--&gt;<br>
&lt;/SCRIPT&gt;<br>
<br>
&lt;/HEAD&gt;<br>
<br>
&lt;BODY TOPMARGIN="0" LEFTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" BGCOLOR="#FFFFFF" TEXT="#000000" ALINK="#003399" LINK="#003399" VLINK="#003399"&gt;<br>
&lt;script language="JavaScript"&gt; &lt;!-- hide;<br>
var ToolBar_Supported = false;<br>
var Frame_Supported = false;<br>
var DoInstrumentation = false;<br>
<br>
if (navigator.userAgent.indexOf("MSIE") != -1 && <br>
navigator.userAgent.indexOf("Windows") != -1 && <br>
navigator.appVersion.substring(0,1) &gt; 3)<br>
{<br>
ToolBar_Supported = true;<br>
}<br>
<br>
if (ToolBar_Supported)<br>
{<br>
var newLineChar = String.fromCharCode(10);<br>
var char34 = String.fromCharCode(34);<br>
var LastMSMenu = "";<br>
var CurICPMenu = "";<br>
var IsMSMenu = false;<br>
var IsMenuDropDown = true;<br>
var HTMLStr;<br>
var x = 0;<br>
var y = 0;<br>
var x2 = 0;<br>
var y2 = 0;<br>
var MSMenuWidth;<br>
var ToolbarMinWidth;<br>
var ToolbarMenu;<br>
var ToolbarBGColor;<br>
var ToolbarLoaded = false;<br>
var aDefMSColor = new Array(3);<br>
var aDefICPColor = new Array(3);<br>
var aCurMSColor = new Array(3);<br>
var aCurICPColor = new Array(3);<br>
var MSFont;<br>
var ICPFont;<br>
var MaxMenu = 30;<br>
var TotalMenu = 0;<br>
var arrMenuInfo = new Array(30);<br>
<br>
// Output style sheet and toolbar ID<br>
document.write("&lt;SPAN ID='StartMenu' STYLE='display:none;'&gt;&lt;/SPAN&gt;");<br>
<br>
// Build toolbar template<br>
HTMLStr = <br>
"&lt;DIV ID='idToolbar' STYLE='background-color:white;width:100%'&gt;" +<br>
"&lt;DIV ID='idRow1' STYLE='position:relative;height:20;'&gt;" +<br>
"&lt;DIV ID='idICPBanner' STYLE='position:absolute;top:0;left:0;height:60;width:250;overflow:hidden;vertical-align:top;'&gt;&lt;!--BEG_ICP_BANNER--&gt;&lt;!--END_ICP_BANNER--&gt;&lt;/DIV&gt;" +<br>
"&lt;DIV ID='idMSMenuCurve' STYLE='position:absolute;top:0;left:250;height:20;width:18;overflow:hidden;vertical-align:top;'&gt;&lt;IMG SRC='/library/toolbar/images/curve.gif' BORDER=0&gt;&lt;/DIV&gt;" +<br>
"&lt;DIV ID='idMSMenuPane' STYLE='position:absolute;top:0;left:250;height:20;width:10;background-color:black;float:right;' NOWRAP&gt;&lt;!--MS_MENU_TITLES--&gt;&lt;/DIV&gt;" + <br>
"&lt;/DIV&gt;" +<br>
"&lt;DIV ID='idRow2' STYLE='position:relative;left:250;height:40;'&gt;" +<br>
"&lt;DIV ID='idADSBanner' STYLE='position:absolute;top:0;left:0;height:40;width:200;vertical-align:top;overflow:hidden;'&gt;&lt;!--BEG_ADS_BANNER--&gt;&lt;!--END_ADS_BANNER--&gt;&lt;/DIV&gt;" +<br>
"&lt;DIV ID='idMSCBanner' STYLE='position:absolute;top:0;left:200;height:40;width:112;vertical-align:top;overflow:hidden;' ALIGN=RIGHT&gt;&lt;!--BEG_MSC_BANNER--&gt;&lt;!--END_MSC_BANNER--&gt;&lt;/DIV&gt;" +<br>
"&lt;/DIV&gt;" +<br>
"&lt;DIV ID='idRow3' STYLE='position:relative;height:20;width:100%'&gt;" +<br>
"&lt;DIV ID='idICPMenuPane' STYLE='position:absolute;top:0;left:0;height:20;background-color:black;' NOWRAP&gt;&lt;!--ICP_MENU_TITLES--&gt;&lt;/DIV&gt;" +<br>
"&lt;/DIV&gt;" +<br>
"&lt;/DIV&gt;" +<br>
"&lt;SCRIPT TYPE='text/javascript'&gt;" + <br>
" var ToolbarMenu = StartMenu;" + <br>
"&lt;/SCRIPT&gt;" + <br>
"&lt;DIV WIDTH=100%&gt;";<br>
<br>
// Define event handlers<br>
window.onresize = resizeToolbar;<br>
<br>
// Intialize global variables<br>
ToolbarBGColor = "white"; // toolbar background color<br>
MSFont = "xx-small Verdana";<br>
ICPFont = "bold xx-small Verdana";<br>
<br>
aDefMSColor[0] = aCurMSColor[0] = "black"; // bgcolor;<br>
aDefMSColor[1] = aCurMSColor[1] = "white"; // text font color<br>
aDefMSColor[2] = aCurMSColor[2] = "red"; // mouseover font color<br>
<br>
aDefICPColor[0] = aCurICPColor[0] = "#6699CC"; // bgcolor;<br>
aDefICPColor[1] = aCurICPColor[1] = "white"; // text font color<br>
aDefICPColor[2] = aCurICPColor[2] = "red"; // mouseover font color<br>
}<br>
<br>
// The hard-coded numbers in functions - drawToolbar() & resizeToolbar()<br>
// correspond to the dimension of the four gif files:<br>
// ICP_BANNER: 60h x 250w<br>
// ADS_BANNER: 40h x 200w<br>
// MSC_BANNER: 40h x 112w<br>
// Curve: 20h x 18w<br>
<br>
function drawToolbar()<br>
{<br>
HTMLStr += "&lt;/DIV&gt;";<br>
document.write(HTMLStr);<br>
ToolbarLoaded = true;<br>
<br>
MSMenuWidth = Math.max(idMSMenuPane.offsetWidth, (200+112));<br>
ToolbarMinWidth = (250+18) + MSMenuWidth;<br>
<br>
idToolbar.style.backgroundColor = ToolbarBGColor;<br>
idMSMenuPane.style.backgroundColor = aDefMSColor[0];<br>
idICPMenuPane.style.backgroundColor = aDefICPColor[0];<br>
resizeToolbar();<br>
<br>
for (i = 0; i &lt; TotalMenu; i++) <br>
{<br>
thisMenu = document.all(arrMenuInfo.IDStr);<br>
if (thisMenu != null)<br>
{<br>
if (arrMenuInfo.IDStr == LastMSMenu && arrMenuInfo.type == "R")<br>
{<br>
//Last MSMenu has to be absolute width<br>
arrMenuInfo.type = "A";<br>
arrMenuInfo.unit = 200;<br>
}<br>
if (arrMenuInfo.type == "A")<br>
thisMenu.style.width = arrMenuInfo.unit;<br>
else <br>
thisMenu.style.width = Math.round(arrMenuInfo.width * arrMenuInfo.unit) + 'em';<br>
}<br>
}<br>
}<br>
<br>
function resizeToolbar()<br>
{<br>
if (ToolBar_Supported == false) return;<br>
<br>
w = Math.max(ToolbarMinWidth, document.body.clientWidth) - ToolbarMinWidth;<br>
<br>
idMSMenuCurve.style.left = (250+w);<br>
idMSMenuPane.style.left = (250+w+18);<br>
idMSMenuPane.style.width = MSMenuWidth;<br>
<br>
idADSBanner.style.left = (w+18);<br>
<br>
idMSCBanner.style.left = (w+18+200);<br>
idMSCBanner.style.width = (MSMenuWidth - 200);<br>
<br>
idICPMenuPane.style.width = ToolbarMinWidth + w;<br>
}<br>
<br>
function setToolbarBGColor(color)<br>
{ <br>
ToolbarBGColor = color;<br>
if (ToolbarLoaded == true)<br>
idToolbar.style.backgroundColor = ToolbarBGColor;<br>
} <br>
<br>
function setMSMenuFont(sFont)<br>
{ MSFont = sFont;<br>
}<br>
<br>
function setICPMenuFont(sFont)<br>
{ ICPFont = sFont;<br>
}<br>
<br>
function setDefaultMSMenuColor(bgColor, fontColor, mouseoverColor)<br>
{ <br>
if (bgColor != "") aDefMSColor[0] = bgColor;<br>
if (fontColor != "") aDefMSColor[1] = fontColor;<br>
if (mouseoverColor != "") aDefMSColor[2] = mouseoverColor;<br>
}<br>
<br>
function setDefaultICPMenuColor(bgColor, fontColor, mouseoverColor)<br>
{ <br>
if (bgColor != "") aDefICPColor[0] = bgColor;<br>
if (fontColor != "") aDefICPColor[1] = fontColor;<br>
if (mouseoverColor != "") aDefICPColor[2] = mouseoverColor;<br>
}<br>
<br>
function setICPMenuColor(MenuIDStr, bgColor, fontColor, mouseoverColor)<br>
{ <br>
if (ToolbarLoaded == false) return;<br>
<br>
// Reset previous ICP Menu color if any<br>
if (CurICPMenu != "")<br>
{<br>
PrevID = CurICPMenu.substring(4);<br>
CurICPMenu = "";<br>
setICPMenuColor(PrevID, aDefICPColor[0], aDefICPColor[1], aDefICPColor[2]);<br>
}<br>
<br>
var id = "AM_" + "ICP_" + MenuIDStr;<br>
var thisMenu = document.all(id);<br>
if (thisMenu != null)<br>
{<br>
CurICPMenu = "ICP_" + MenuIDStr;<br>
aCurICPColor[0] = bgColor;<br>
aCurICPColor[1] = fontColor;<br>
aCurICPColor[2] = mouseoverColor;<br>
<br>
// Change menu color<br>
if (bgColor != "")<br>
thisMenu.style.backgroundColor = bgColor;<br>
if (fontColor != "")<br>
thisMenu.style.color = fontColor;<br>
<br>
// Change subMenu color<br>
id = "ICP_" + MenuIDStr;<br>
thisMenu = document.all(id);<br>
if (thisMenu != null)<br>
{<br>
if (bgColor != "")<br>
thisMenu.style.backgroundColor = bgColor;<br>
<br>
if (fontColor != "")<br>
{<br>
i = 0;<br>
id = "AS_" + "ICP_" + MenuIDStr;<br>
thisMenu = document.all.item(id,i);<br>
while (thisMenu != null)<br>
{<br>
thisMenu.style.color = fontColor;<br>
i += 1;<br>
thisMenu = document.all.item(id,i);<br>
}<br>
}<br>
}<br>
}<br>
}<br>
<br>
function setAds(Gif,Url,AltStr)<br>
{ setBanner(Gif,Url,AltStr,"&lt;!--BEG_ADS_BANNER--&gt;","&lt;!--END_ADS_BANNER--&gt;");<br>
}<br>
<br>
function setICPBanner(Gif,Url,AltStr)<br>
{ setBanner(Gif,Url,AltStr,"&lt;!--BEG_ICP_BANNER--&gt;","&lt;!--END_ICP_BANNER--&gt;");<br>
}<br>
<br>
function setMSBanner(Gif,Url,AltStr)<br>
{ tempGif = "/library/toolbar/images/" + Gif;<br>
setBanner(tempGif,Url,AltStr,"&lt;!--BEG_MSC_BANNER--&gt;","&lt;!--END_MSC_BANNER--&gt;");<br>
}<br>
<br>
function setBanner(BanGif, BanUrl, BanAltStr, BanBegTag, BanEndTag)<br>
{<br>
begPos = HTMLStr.indexOf(BanBegTag);<br>
endPos = HTMLStr.indexOf(BanEndTag) + BanEndTag.length;<br>
<br>
SubStr = HTMLStr.substring(begPos, endPos);<br>
SrcStr = "";<br>
if (BanUrl != "")<br>
SrcStr += "&lt;A Target='_top' HREF='" + formatURL(BanUrl, BanGif) + "'&gt;";<br>
SrcStr += "&lt;IMG SRC='" + BanGif + "' ALT='" + BanAltStr + "' BORDER=0&gt;";<br>
if (BanUrl != "")<br>
SrcStr += "&lt;/A&gt;";<br>
SrcStr = BanBegTag + SrcStr + BanEndTag;<br>
HTMLStr = HTMLStr.replace(SubStr, SrcStr); <br>
}<br>
<br>
function setICPSubMenuWidth(MenuIDStr, WidthType, WidthUnit)<br>
{ tempID = "ICP_" + MenuIDStr;<br>
setSubMenuWidth(tempID, WidthType, WidthUnit);<br>
}<br>
<br>
function setMSSubMenuWidth(MenuIDStr, WidthType, WidthUnit)<br>
{ tempID = "MS_" + MenuIDStr;<br>
setSubMenuWidth(tempID, WidthType, WidthUnit);<br>
}<br>
<br>
function setSubMenuWidth(MenuIDStr, WidthType, WidthUnit)<br>
{<br>
var fFound = false;<br>
if (TotalMenu == MaxMenu)<br>
{<br>
alert("Unable to process menu. Maximum of " + MaxMenu + " reached.");<br>
return;<br>
}<br>
<br>
for (i = 0; i &lt; TotalMenu; i++)<br>
if (arrMenuInfo.IDStr == MenuIDStr)<br>
{<br>
fFound = true;<br>
break;<br>
}<br>
<br>
if (!fFound)<br>
{<br>
arrMenuInfo = new menuInfo(MenuIDStr);<br>
TotalMenu += 1;<br>
}<br>
<br>
if (!fFound && WidthType.toUpperCase().indexOf("DEFAULT") != -1)<br>
{<br>
arrMenuInfo.type = "A";<br>
arrMenuInfo.unit = 160;<br>
}<br>
else<br>
{<br>
arrMenuInfo.type = (WidthType.toUpperCase().indexOf("ABSOLUTE") != -1)? "A" : "R";<br>
arrMenuInfo.unit = WidthUnit;<br>
}<br>
}<br>
<br>
// This function creates a menuInfo object instance.<br>
function menuInfo(MenuIDStr)<br>
{<br>
this.IDStr = MenuIDStr;<br>
this.type = "";<br>
this.unit = 0;<br>
this.width = 0;<br>
this.count = 0;<br>
}<br>
<br>
function updateSubMenuWidth(MenuIDStr)<br>
{<br>
for (i = 0; i &lt; TotalMenu; i++)<br>
if (arrMenuInfo.IDStr == MenuIDStr)<br>
{<br>
if (arrMenuInfo.width &lt; MenuIDStr.length) <br>
arrMenuInfo.width = MenuIDStr.length;<br>
arrMenuInfo.count = arrMenuInfo.count + 1;<br>
break;<br>
}<br>
}<br>
<br>
function addICPMenu(MenuIDStr, MenuDisplayStr, MenuHelpStr, MenuURLStr)<br>
{ <br>
if (addICPMenu.arguments.length &gt; 4)<br>
TargetStr = addICPMenu.arguments[4];<br>
else<br>
TargetStr = "_top";<br>
tempID = "ICP_" + MenuIDStr;<br>
addMenu(tempID, MenuDisplayStr, MenuHelpStr, MenuURLStr, TargetStr, true); <br>
}<br>
<br>
function addMSMenu(MenuIDStr, MenuDisplayStr, MenuHelpStr, MenuURLStr)<br>
{ <br>
TargetStr = "_top";<br>
tempID = "MS_" + MenuIDStr;<br>
addMenu(tempID, MenuDisplayStr, MenuHelpStr, MenuURLStr, TargetStr, false); <br>
LastMSMenu = tempID;<br>
}<br>
<br>
function addMenu(MenuIDStr, MenuDisplayStr, MenuHelpStr, MenuURLStr, TargetStr, bICPMenu)<br>
{<br>
cFont = bICPMenu? ICPFont : MSFont;<br>
cColor0 = bICPMenu? aDefICPColor[0] : aDefMSColor[0];<br>
cColor1 = bICPMenu? aDefICPColor[1] : aDefMSColor[1];<br>
cColor2 = bICPMenu? aDefICPColor[2] : aDefMSColor[2];<br>
tagStr = bICPMenu? "&lt;!--ICP_MENU_TITLES--&gt;" : "&lt;!--MS_MENU_TITLES--&gt;";<br>
<br>
MenuStr = newLineChar;<br>
if (bICPMenu == false && LastMSMenu != "")<br>
MenuStr += "&lt;SPAN STYLE='font:" + cFont + ";color:" + cColor1 + "'&gt;¦&nbsp;&lt;/SPAN&gt;"; <br>
MenuStr += "&lt;A TARGET='" + TargetStr + "' TITLE='" + MenuHelpStr + "'" +<br>
" ID='AM_" + MenuIDStr + "'" +<br>
" STYLE='text-decoration:none;cursor:hand;font:" + cFont + ";background-color:" + cColor0 + ";color:" + cColor1 + ";'";<br>
if (MenuURLStr != "")<br>
{<br>
if (bICPMenu)<br>
MenuStr += " HREF='" + formatURL(MenuURLStr, ("ICP_" + MenuDisplayStr)) + "'";<br>
else<br>
MenuStr += " HREF='" + formatURL(MenuURLStr, ("MS_" + MenuDisplayStr)) + "'";<br>
}<br>
else<br>
MenuStr += " HREF='' onclick='window.event.returnValue=false;'";<br>
MenuStr += " onmouseout=" + char34 + "mouseMenu('out' ,'" + MenuIDStr + "'); hideMenu();" + char34 + <br>
" onmouseover=" + char34 + "mouseMenu('over','" + MenuIDStr + "'); doMenu('"+ MenuIDStr + "');" + char34 + "&gt;" +<br>
"&nbsp;" + MenuDisplayStr + "&nbsp;&lt;/a&gt;";<br>
if (bICPMenu)<br>
MenuStr += "&lt;SPAN STYLE='font:" + cFont + ";color:" + cColor1 + "'&gt;&nbsp;¦&lt;/SPAN&gt;";<br>
MenuStr += tagStr;<br>
<br>
HTMLStr = HTMLStr.replace(tagStr, MenuStr); <br>
setSubMenuWidth(MenuIDStr,"default",0);<br>
}<br>
<br>
function addICPSubMenu(MenuIDStr, SubMenuStr, SubMenuURLStr)<br>
{ <br>
if (addICPSubMenu.arguments.length &gt; 3)<br>
TargetStr = addICPSubMenu.arguments[3];<br>
else<br>
TargetStr = "_top";<br>
tempID = "ICP_" + MenuIDStr;<br>
addSubMenu(tempID,SubMenuStr,SubMenuURLStr,TargetStr,true); <br>
}<br>
<br>
function addMSSubMenu(MenuIDStr, SubMenuStr, SubMenuURLStr)<br>
{ <br>
TargetStr = "_top";<br>
tempID = "MS_" + MenuIDStr;<br>
addSubMenu(tempID,SubMenuStr,SubMenuURLStr,TargetStr,false); <br>
}<br>
<br>
function addSubMenu(MenuIDStr, SubMenuStr, SubMenuURLStr, TargetStr, bICPMenu)<br>
{<br>
cFont = bICPMenu? ICPFont : MSFont;<br>
cColor0 = bICPMenu? aDefICPColor[0] : aDefMSColor[0];<br>
cColor1 = bICPMenu? aDefICPColor[1] : aDefMSColor[1];<br>
cColor2 = bICPMenu? aDefICPColor[2] : aDefMSColor[2];<br>
<br>
var MenuPos = MenuIDStr.toUpperCase().indexOf("MENU");<br>
if (MenuPos == -1) { MenuPos = MenuIDStr.length; }<br>
InstrumentStr = MenuIDStr.substring(0 , MenuPos) + "¦" + SubMenuStr;;<br>
URLStr = formatURL(SubMenuURLStr, InstrumentStr);<br>
<br>
var LookUpTag = "&lt;!--" + MenuIDStr + "--&gt;";<br>
var sPos = HTMLStr.indexOf(LookUpTag);<br>
if (sPos &lt;= 0)<br>
{<br>
HTMLStr += newLineChar + newLineChar +<br>
"&lt;SPAN ID='" + MenuIDStr + "'" +<br>
" STYLE='display:none;position:absolute;width:160;background-color:" + cColor0 + ";padding-top:0;padding-left:0;padding-bottom:20;z-index:9;'" +<br>
" onmouseout='hideMenu();'&gt;";<br>
if (Frame_Supported == false ¦¦ bICPMenu == false)<br>
HTMLStr += "&lt;HR STYLE='position:absolute;left:0;top:0;color:" + cColor1 + "' SIZE=1&gt;";<br>
HTMLStr += "&lt;DIV STYLE='position:relative;left:0;top:8;'&gt;";<br>
}<br>
<br>
TempStr = newLineChar +<br>
"&lt;A ID='AS_" + MenuIDStr + "'" +<br>
" STYLE='text-decoration:none;cursor:hand;font:" + cFont + ";color:" + cColor1 + "'" +<br>
" HREF='" + URLStr + "' TARGET='" + TargetStr + "'" +<br>
" onmouseout=" + char34 + "mouseMenu('out' ,'" + MenuIDStr + "');" + char34 + <br>
" onmouseover=" + char34 + "mouseMenu('over','" + MenuIDStr + "');" + char34 + "&gt;" +<br>
"&nbsp;" + SubMenuStr + "&lt;/A&gt;&lt;BR&gt;" + LookUpTag;<br>
if (sPos &lt;= 0)<br>
HTMLStr += TempStr + "&lt;/DIV&gt;&lt;/SPAN&gt;";<br>
else<br>
HTMLStr = HTMLStr.replace(LookUpTag, TempStr); <br>
<br>
updateSubMenuWidth(MenuIDStr); <br>
}<br>
<br>
function addICPSubMenuLine(MenuIDStr)<br>
{ <br>
tempID = "ICP_" + MenuIDStr;<br>
addSubMenuLine(tempID,true);<br>
}<br>
<br>
function addMSSubMenuLine(MenuIDStr)<br>
{ <br>
tempID = "MS_" + MenuIDStr;<br>
addSubMenuLine(tempID,false);<br>
}<br>
<br>
function addSubMenuLine(MenuIDStr, bICPMenu)<br>
{<br>
var LookUpTag = "&lt;!--" + MenuIDStr + "--&gt;";<br>
var sPos = HTMLStr.indexOf(LookUpTag);<br>
if (sPos &gt; 0)<br>
{<br>
cColor = bICPMenu? aDefICPColor[1] : aDefMSColor[1];<br>
TempStr = newLineChar + "&lt;HR STYLE='color:" + cColor + "' SIZE=1&gt;" + LookUpTag;<br>
HTMLStr = HTMLStr.replace(LookUpTag, TempStr);<br>
}<br>
}<br>
<br>
function mouseMenu(id, MenuIDStr) <br>
{<br>
IsMSMenu = (MenuIDStr.toUpperCase().indexOf("MS_") != -1);<br>
IsMouseout = (id.toUpperCase().indexOf("OUT") != -1);<br>
<br>
if (IsMouseout)<br>
{<br>
color = IsMSMenu? aDefMSColor[1] : aDefICPColor[1];<br>
if (MenuIDStr == CurICPMenu && aCurICPColor[1] != "") <br>
color = aCurICPColor[1];<br>
}<br>
else<br>
{<br>
color = IsMSMenu? aDefMSColor[2] : aDefICPColor[2];<br>
if (MenuIDStr == CurICPMenu && aCurICPColor[2] != "") <br>
color = aCurICPColor[2];<br>
}<br>
window.event.srcElement.style.color = color;<br>
}<br>
<br>
function doMenu(MenuIDStr) <br>
{<br>
var thisMenu = document.all(MenuIDStr);<br>
if (ToolbarMenu == null ¦¦ thisMenu == null ¦¦ thisMenu == ToolbarMenu) <br>
{<br>
window.event.cancelBubble = true;<br>
return false;<br>
}<br>
// Reset dropdown menu<br>
window.event.cancelBubble = true;<br>
ToolbarMenu.style.display = "none";<br>
showElement("SELECT");<br>
showElement("OBJECT");<br>
ToolbarMenu = thisMenu;<br>
IsMSMenu = (MenuIDStr.toUpperCase().indexOf("MS_") != -1);<br>
<br>
// Set dropdown menu display position<br>
x = window.event.srcElement.offsetLeft +<br>
window.event.srcElement.offsetParent.offsetLeft;<br>
if (MenuIDStr == LastMSMenu) <br>
x += (window.event.srcElement.offsetWidth - thisMenu.style.posWidth);<br>
x2 = x + window.event.srcElement.offsetWidth;<br>
y = (IsMSMenu)? <br>
(idRow1.offsetHeight) :<br>
(idRow1.offsetHeight + idRow2.offsetHeight + idRow3.offsetHeight);<br>
thisMenu.style.top = y;<br>
thisMenu.style.left = x;<br>
thisMenu.style.clip = "rect(0 0 0 0)";<br>
thisMenu.style.display = "block";<br>
<br>
// delay 2 millsecond to allow the value of ToolbarMenu.offsetHeight be set<br>
window.setTimeout("showMenu()", 2);<br>
return true;<br>
}<br>
<br>
function showMenu() <br>
{<br>
if (ToolbarMenu != null) <br>
{ <br>
IsMenuDropDown = (Frame_Supported && IsMSMenu == false)? false : true;<br>
if (IsMenuDropDown == false)<br>
{<br>
y = (y - ToolbarMenu.offsetHeight - idRow3.offsetHeight);<br>
if (y &lt; 0) y = 0;<br>
ToolbarMenu.style.top = y;<br>
}<br>
y2 = y + ToolbarMenu.offsetHeight;<br>
<br>
ToolbarMenu.style.clip = "rect(auto auto auto auto)";<br>
hideElement("SELECT");<br>
hideElement("OBJECT");<br>
}<br>
}<br>
<br>
function hideMenu()<br>
{<br>
if (ToolbarMenu != null && ToolbarMenu != StartMenu) <br>
{<br>
// Don't hide the menu if the mouse move between the menu and submenus<br>
cY = event.clientY + document.body.scrollTop;<br>
if ( (event.clientX &gt;= (x+5) && event.clientX &lt;= x2) &&<br>
((IsMenuDropDown == true && cY &gt; (y-10) && cY &lt;= y2) ¦¦<br>
(IsMenuDropDown == false && cY &gt;= y && cY &lt;= (y2+10)) ))<br>
{<br>
window.event.cancelBubble = true;<br>
return; <br>
}<br>
<br>
ToolbarMenu.style.display = "none";<br>
ToolbarMenu = StartMenu;<br>
window.event.cancelBubble = true;<br>
<br>
showElement("SELECT");<br>
showElement("OBJECT");<br>
}<br>
}<br>
<br>
function hideElement(elmID)<br>
{<br>
for (i = 0; i &lt; document.all.tags(elmID).length; i++)<br>
{<br>
obj = document.all.tags(elmID);<br>
if (! obj ¦¦ ! obj.offsetParent)<br>
continue;<br>
<br>
// Find the element's offsetTop and offsetLeft relative to the BODY tag.<br>
objLeft = obj.offsetLeft;<br>
objTop = obj.offsetTop;<br>
objParent = obj.offsetParent;<br>
while (objParent.tagName.toUpperCase() != "BODY")<br>
{<br>
objLeft += objParent.offsetLeft;<br>
objTop += objParent.offsetTop;<br>
objParent = objParent.offsetParent;<br>
}<br>
// Adjust the element's offsetTop relative to the dropdown menu<br>
objTop = objTop - y;<br>
<br>
if (x &gt; (objLeft + obj.offsetWidth) ¦¦ objLeft &gt; (x + ToolbarMenu.offsetWidth))<br>
;<br>
else if (objTop &gt; ToolbarMenu.offsetHeight)<br>
;<br>
else if (IsMSMenu && (y + ToolbarMenu.offsetHeight) &lt;= 80)<br>
;<br>
else<br>
obj.style.visibility = "hidden";<br>
}<br>
}<br>
<br>
function showElement(elmID)<br>
{<br>
for (i = 0; i &lt; document.all.tags(elmID).length; i++)<br>
{<br>
obj = document.all.tags(elmID);<br>
if (! obj ¦¦ ! obj.offsetParent)<br>
continue;<br>
obj.style.visibility = "";<br>
}<br>
}<br>
<br>
function formatURL(URLStr, InstrumentStr)<br>
{<br>
var tempStr = URLStr;<br>
<br>
if (DoInstrumentation && URLStr != "" )<br>
{<br>
var ParamPos1 = URLStr.indexOf("?");<br>
var ParamPos2 = URLStr.lastIndexOf("?");<br>
var ParamPos3 = URLStr.toLowerCase().indexOf("target=");<br>
var ParamPos4 = URLStr.indexOf("#");<br>
var Bookmark = "";<br>
var URL = URLStr;<br>
if (ParamPos4 &gt;= 0)<br>
{<br>
URL = URLStr.substr(0, ParamPos4);<br>
Bookmark = URLStr.substr(ParamPos4);<br>
}<br>
<br>
if (ParamPos1 == -1)<br>
tempStr = "?MSCOMTB=";<br>
else if (ParamPos1 == ParamPos2 && ParamPos3 == -1) <br>
tempStr = "&MSCOMTB=";<br>
else if (ParamPos1 == ParamPos2 && ParamPos3 != -1) <br>
tempStr = "?MSCOMTB=";<br>
else if (ParamPos1 &lt; ParamPos2)<br>
tempStr = "&MSCOMTB=";<br>
<br>
tempStr = URL + tempStr + InstrumentStr.replace(" ","%20") + Bookmark;<br>
}<br>
return tempStr;<br>
} //--&gt;<br>
&lt;/script&gt;<br>
<br>
&lt;script language="JavaScript"&gt; &lt;!--;<br>
var ToolBar_Supported = ToolBar_Supported ;<br>
if (ToolBar_Supported != null && ToolBar_Supported == true)<br>
{<br>
//To Turn on/off Instrumentation set DoInstrumentation = true/false.<br>
DoInstrumentation= true;<br>
<br>
// Customize default MS menu color - bgColor, fontColor, mouseoverColor<br>
setDefaultMSMenuColor("#000000", "white", "red");<br>
<br>
// Customize toolbar background color<br>
setToolbarBGColor("white");<br>
<br>
// display default ICP Banner<br>
setICPBanner("/library/toolbar/images/banner.gif","/isapi/gomscom.asp?target=/","microsoft.com Home") ;<br>
<br>
// display MSCOM Banner<br>
setMSBanner("mslogo.gif","/isapi/gomscom.asp?target=/","microsoft.com Home") ;<br>
<br>
// display ADS<br>
//setAds("/library/toolbar/images/ADS/ad.gif","","") ;<br>
<br>
//***** Add Standard Microsoft.com menus *****<br>
//ProductsMenu <br>
addMSMenu("ProductsMenu", "All Products", "","/isapi/gomscom.asp?target=/catalog/default.asp?subid=22");<br>
addMSSubMenu("ProductsMenu","Downloads","/isapi/gomscom.asp?target=/msdownload/default.htm");<br>
addMSSubMenu("ProductsMenu","MS Product Catalog","/isapi/gomscom.asp?target=/catalog/default.asp?subid=22");<br>
addMSSubMenu("ProductsMenu","Microsoft Accessibility","/isapi/gomscom.asp?target=/enable/");<br>
addMSSubMenuLine("ProductsMenu");<br>
addMSSubMenu("ProductsMenu","BackOffice Family","/isapi/gomscom.asp?target=/backoffice/");<br>
addMSSubMenu("ProductsMenu","Developer Tools","/isapi/gomsdn.asp?target=/vstudio/");<br>
addMSSubMenu("ProductsMenu","Office Family","/isapi/gomscom.asp?target=/office/");<br>
addMSSubMenu("ProductsMenu","Windows Family","/isapi/gomscom.asp?target=/windows/");<br>
<br>
//SupportMenu<br>
addMSMenu("SupportMenu", "Support", "","/isapi/gomscom.asp?target=/support/");<br>
addMSSubMenu("SupportMenu","Product Support","/isapi/gomscom.asp?target=/support/");<br>
addMSSubMenu("SupportMenu","Service Partner Referrals","/isapi/gomscom.asp?target=/isapi/referral/default.asp");<br>
addMSSubMenu("SupportMenu","Year 2000 Compliance","/isapi/gomscom.asp?target=/technet/year2K/");<br>
<br>
//SearchMenu<br>
addMSMenu("SearchMenu", "Search", "","/isapi/gosearch.asp?target=/us/default.asp"); <br>
addMSSubMenu("SearchMenu","Search microsoft.com","/isapi/gosearch.asp?target=/us/default.asp");<br>
<br>
//MicrosoftMenu <br>
addMSMenu("MicrosoftMenu", "microsoft.com Guide", "","/isapi/gomscom.asp?target=/");<br>
addMSSubMenu("MicrosoftMenu","microsoft.com Home","/isapi/gomscom.asp?target=/");<br>
addMSSubMenu("MicrosoftMenu","MSN home","/isapi/gohome.asp?target=/");<br>
addMSSubMenuLine("MicrosoftMenu");<br>
addMSSubMenu("MicrosoftMenu","Contact Us","/isapi/goregwiz.asp?target=/regwiz/forms/contactus.asp");<br>
addMSSubMenu("MicrosoftMenu","Events"," addMSSubMenu("MicrosoftMenu","Newsletters","/isapi/goregwiz.asp?target=/REGWIZ/forms/subscribe.asp");<br>
addMSSubMenu("MicrosoftMenu","Profile Center","/isapi/goregwiz.asp?target=/REGWIZ/forms/Pic.asp");<br>
addMSSubMenu("MicrosoftMenu","Training & Certification","/isapi/gomscom.asp?target=/train_cert/");<br>
<br>
//Lock MSMenu so that ICP can't add make changes to it<br>
//Lock("addMSMenu");<br>
} //--&gt;<br>
&lt;/script&gt;
 
&lt;script language="JavaScript"&gt;<br>
&lt;!--;<br>
var ToolBar_Supported = ToolBar_Supported ;<br>
if (ToolBar_Supported != null && ToolBar_Supported == true)<br>
{<br>
//To Turn on/off Frame support, set Frame_Supported = true/false.<br>
Frame_Supported = false;<br>
<br>
// Customize default ICP menu color - bgColor, fontColor, mouseoverColor<br>
setDefaultICPMenuColor("#6699CC", "white", "red");<br>
<br>
// Customize toolbar background color<br>
setToolbarBGColor("white");<br>
<br>
// display ICP Banner<br>
setICPBanner("/library/toolbar/images/banner.gif","/isapi/gomscom.asp?target=/","microsoft.com Home") ;<br>
<br>
//***** Add ICP menus *****<br>
//Home<br>
addICPMenu("HomeMenu", "Home", "","/isapi/gomscom.asp?target=/");<br>
addICPSubMenu("HomeMenu","microsoft.com Home","/isapi/gomscom.asp?target=/");<br>
<br>
//Events & Training<br>
addICPMenu("EventsMenu", "Events &amp; Training", ""," addICPSubMenu("EventsMenu","Events"," addICPSubMenu("EventsMenu","Microsoft Press "," addICPSubMenu("EventsMenu","Online Seminars","/isapi/gomscom.asp?target=/seminar/1033/");<br>
addICPSubMenu("EventsMenu","Training & Certification","/isapi/gomscom.asp?target=/train_cert/");<br>
<br>
<br>
//Subscribe<br>
addICPMenu("SubscribeMenu", "Subscribe", "","/isapi/goregwiz.asp?target=/REGWIZ/forms/Pic.asp");<br>
addICPSubMenu("SubscribeMenu","Newsletters","/isapi/goregwiz.asp?target=/REGWIZ/forms/subscribe.asp");<br>
addICPSubMenu("SubscribeMenu","Manage Your Profile","/isapi/goregwiz.asp?target=/REGWIZ/forms/Pic.asp");<br>
addICPSubMenu("SubscribeMenu","Privacy, Security &amp; Safety","/isapi/gomscom.asp?target=/info/privacy_security.htm");<br>
<br>
//About Microsoft<br>
addICPMenu("MicrosoftMenu", "About Microsoft", "","/isapi/gomscom.asp?target=/mscorp/");<br>
addICPSubMenu("MicrosoftMenu","Company Overview","/isapi/gomscom.asp?target=/mscorp/");<br>
addICPSubMenu("MicrosoftMenu","Jobs","/isapi/gomscom.asp?target=/jobs/");<br>
addICPSubMenu("MicrosoftMenu","Piracy","/isapi/gomscom.asp?target=/piracy/");<br>
addICPSubMenu("MicrosoftMenu","Press News","/isapi/gomscom.asp?target=/presspass/");<br>
addICPSubMenu("MicrosoftMenu","Investor Relations","/isapi/gomscom.asp?target=/msft/");<br>
<br>
//International<br>
addICPMenu("InternationalMenu", "U.S. &amp; International", "","/isapi/gomscom.asp?target=/worldwide/");<br>
addICPSubMenu("InternationalMenu","Int'l Web Sites & Offices","/isapi/gomscom.asp?target=/worldwide/");<br>
addICPSubMenu("InternationalMenu","U.S. Web Sites & Offices","/isapi/gomscom.asp?target=/usa/");<br>
<br>
//About Our Site<br>
addICPMenu("SiteMenu", "About Our Site", "","/isapi/gomscom.asp?target=/backstage/");<br>
addICPSubMenu("SiteMenu","Inside Our Site","/isapi/gomscom.asp?target=/backstage/");<br>
//addICPSubMenu("SiteMenu","Visitor Guide","/isapi/gomscom.asp?target=/misc/visitorguide_IE4.htm");<br>
} //--&gt;<br>
&lt;/script&gt;<br>
<br>
&lt;DIV ID="DownLevelDiv"&gt;<br>
This page must be viewed with IE4 or above, and with Active Scripting enabled.<br>
&lt;/DIV&gt;<br>
<br>
&lt;script language="JavaScript"&gt;<br>
DownLevelDiv.style.display ='none';<br>
setICPBanner("/library/homepage/images/bnr_all.gif","","microsoft.com Home");<br>
drawToolbar();<br>
&lt;/script&gt;<br>
<br>
&lt;script language="JavaScript"&gt;<br>
&lt;!--;<br>
var IsIEPlus = false<br>
if (navigator.userAgent.indexOf("MSIE") != -1 && <br>
navigator.userAgent.indexOf("Windows") != -1 && <br>
navigator.appVersion.substring(0,1) &gt; 3)<br>
{<br>
IsIEPlus = true;<br>
}<br>
<br>
if (IsIEPlus)<br>
{<br>
var newLineChar = String.fromCharCode(10);<br>
var char34 = String.fromCharCode(34);<br>
var FirstCRMsg = true;<br>
var hpStr;<br>
var hpLinkCnt = 0;<br>
var hpLinkWidth = 0;<br>
<br>
hpStr =<br>
"&lt;TABLE BORDER=0 WIDTH=625 CELLPADDING=0 CELLSPACING=0 BGCOLOR='#FFFFFF'&gt;" +<br>
"&lt;TR&gt;" +<br>
"&lt;TD WIDTH=7 HEIGHT=100% ROWSPAN=2&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=7 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
"&lt;TD WIDTH=150 HEIGHT=10&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=1 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
"&lt;TD WIDTH=10 HEIGHT=100% ROWSPAN=2 ALIGN=MIDDLE VALIGN=TOP&gt;&lt;IMG SRC='/library/homepage/images/1redpixel.gif' WIDTH=1 HEIGHT=100%&gt;&lt;/TD&gt;" +<br>
"&lt;TD WIDTH=7 HEIGHT=100% ROWSPAN=2&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=7 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
"&lt;TD WIDTH=436 HEIGHT=10&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=1 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
"&lt;TD WIDTH=15 HEIGHT=100% ROWSPAN=2&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=15 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
"&lt;/TR&gt;" +<br>
"&lt;TR&gt;" +<br>
"&lt;TD WIDTH=150 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;" +<br>
" &lt;!--HOMEPAGE_LINKS--&gt;&lt;BR&gt;&lt;BR&gt;" +<br>
" &lt;!--CATEGORY_LINKS--&gt;&lt;BR&gt;" +<br>
" &lt;!--TOP_LINKS--&gt;" +<br>
"&lt;/TD&gt;" +<br>
"&lt;TD WIDTH=436 VALIGN=TOP&gt;" +<br>
" &lt;TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0&gt;"+<br>
" &lt;TR&gt;" +<br>
" &lt;TD WIDTH=117 VALIGN=TOP&gt;&lt;!--TOP_BANNER--&gt;&lt;/TD&gt;" + <br>
" &lt;TD WIDTH=10&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=10&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=309 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;!--TOP_STORY--&gt;&lt;/TD&gt;" +<br>
" &lt;/TR&gt;" +<br>
" &lt;/TABLE&gt;"+<br>
" &lt;TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0&gt;"+<br>
" &lt;TR&gt;&lt;TD COLSPAN=5&gt;&lt;HR SIZE=1 WIDTH=100% COLOR='#CCCCCC'&gt;&lt;/TD&gt;&lt;/TR&gt;" +<br>
" &lt;TR&gt;&lt;TD COLSPAN=5&gt;&lt;font face='verdana,arial,helvetica' size=2 color='#990000'&gt;&lt;!--HEADLINE_TITLE--&gt;&lt;/TD&gt;&lt;/TR&gt;" +<br>
" &lt;TR&gt;" +<br>
" &lt;TD WIDTH=10 VALIGN=TOP&gt;&lt;!--BULLET_1--&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=198 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;!--HEADLINE_1--&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=20&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=20 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=10 VALIGN=TOP&gt;&lt;!--BULLET_2--&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=198 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;!--HEADLINE_2--&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;/TR&gt;" +<br>
" &lt;TR&gt;" +<br>
" &lt;TD WIDTH=10 VALIGN=TOP&gt;&lt;!--BULLET_3--&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=198 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;!--HEADLINE_3--&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=20&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=20 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=10 VALIGN=TOP&gt;&lt;!--BULLET_4--&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=198 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;!--HEADLINE_4--&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;/TR&gt;" +<br>
" &lt;TR&gt;" +<br>
" &lt;TD WIDTH=10 VALIGN=TOP&gt;&lt;!--BULLET_5--&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=198 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;!--HEADLINE_5--&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=20&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=20 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=10 VALIGN=TOP&gt;&lt;!--BULLET_6--&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=198 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;!--HEADLINE_6--&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;/TR&gt;" +<br>
" &lt;TR&gt;&lt;TD COLSPAN=5&gt;&lt;HR SIZE=1 WIDTH=100% COLOR='#CCCCCC'&gt;&lt;/TD&gt;&lt;/TR&gt;" +<br>
" &lt;/TABLE&gt;"+<br>
" &lt;TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0&gt;"+<br>
" &lt;TR&gt;" +<br>
" &lt;TD WIDTH=208 ROWSPAN=2 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;P&gt;&lt;!--STANDARD_LINK--&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=20 ROWSPAN=2&gt;&lt;IMG SRC='/library/homepage/images/1ptrans.gif' WIDTH=20 HEIGHT=1&gt;&lt;/TD&gt;" +<br>
" &lt;TD WIDTH=208 VALIGN=TOP&gt;&lt;DIV STYLE='font-size:9px; font-family:verdana,arial,helvetica'&gt;&lt;!--PROMO_BANNER_1--&gt;&lt;!--PROMO_MSG_1--&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/TD&gt;" +<br>
" &lt;/TR&gt;" +<br>
" &lt;TR&gt;&lt;TD WIDTH=208 VALIGN=TOP&gt;&lt;DIV STYLE='font-size:9px; font-family:verdana,arial,helvetica'&gt;&lt;!--PROMO_BANNER_2--&gt;&lt;!--PROMO_MSG_2--&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;" +<br>
" &lt;TR&gt;&lt;TD COLSPAN=3&gt;&lt;HR SIZE=1 WIDTH=100% COLOR='#CCCCCC'&gt;&lt;/TD&gt;&lt;/TR&gt;" +<br>
" &lt;TR&gt;&lt;TD COLSPAN=3 VALIGN=TOP&gt;&lt;font face='verdana,arial,helvetica' size=1&gt;&lt;P&gt;&lt;P&gt;&lt;P&gt;&lt;!--LASTUPDATE--&gt;&lt;BR&gt;&lt;!--COPYRIGHT--&gt;&lt;P&gt;&lt;/TD&gt;&lt;/TR&gt;" +<br>
" &lt;/TABLE&gt;";<br>
" &lt;/TD&gt;" +<br>
"&lt;/TR&gt;" +<br>
"&lt;/TABLE&gt;";<br>
}<br>
<br>
function showHomePage(PageIDStr)<br>
{<br>
buildNavigation(PageIDStr);<br>
buildHeadline(PageIDStr);<br>
<br>
//alert(hpStr);<br>
document.write(hpStr);<br>
}<br>
<br>
function setHomePageLinkTitle(TitleStr)<br>
{<br>
SubStr = "&lt;!--HOMEPAGE_LINKS--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
hpLinkWidth = TitleStr.length;<br>
SrcStr = TitleStr + "&lt;BR&gt;" +<br>
"&lt;SELECT NAME='target' onChange='goHomePage(this);'&gt;" +<br>
"&lt;!--HOMEPAGE_LINK--&gt;" +<br>
"&lt;/SELECT&gt;";<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
}<br>
<br>
function addHomePageLink(LinkStr, LinkUrl, defaultSelection)<br>
{<br>
SubStr = "&lt;!--HOMEPAGE_LINK--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
hpLinkCnt += 1;<br>
SrcStr = "&lt;OPTION VALUE='" + hpLinkCnt + "'";<br>
if (defaultSelection) SrcStr += " SELECTED";<br>
SrcStr += "&gt;" + LinkStr;<br>
<br>
//Make the select box the same width as the link title.<br>
for (i = LinkStr.length+1; i &lt; hpLinkWidth+2; i++)<br>
SrcStr += "&nbsp;";<br>
<br>
SrcStr += SubStr;<br>
hpStr = hpStr.replace(SubStr, SrcStr);<br>
<br>
hpStr += "&lt;A ID=ID_HPLink" + hpLinkCnt + " STYLE='display:none' HREF='" + LinkUrl + "'&gt;1&lt;/A&gt;";<br>
}<br>
}<br>
<br>
function addCategory(CatIDStr, CatStr, defaultShow)<br>
{<br>
sImg = defaultShow? "minus.gif" : "plus.gif";<br>
sStyle = defaultShow? "black" : "none";<br>
<br>
SubStr = "&lt;!--CATEGORY_LINKS--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
SrcStr = "&lt;DIV STYLE='cursor:hand;'" +<br>
" ID=C_" + CatIDStr +<br>
" onClick=clickCategory(" + char34 + CatIDStr + char34 + ") NOWRAP&gt;" +<br>
"&lt;IMG SRC='/library/homepage/images/" + sImg + "' ALT='*'" +<br>
" ID=I_" + CatIDStr +<br>
" onClick=clickCategory(" + char34 + CatIDStr + char34 + ") ALIGN=middle BORDER=0&gt;&nbsp;" +<br>
"&lt;A STYLE='color:black;text-decoration:none;'" +<br>
" HREF='noop' " +<br>
" onfocus=" + char34 + "window.status='';" + char34 + <br>
" onmouseover=" + char34 + "window.status='';" + char34 + <br>
" onclick=" + char34 + "window.event.returnValue = false;" + char34 + "&gt;" +<br>
"&lt;B&gt;" + CatStr + "&lt;/B&gt;&lt;/A&gt;&lt;BR&gt;" +<br>
"&lt;DIV STYLE='display:" + sStyle + ";'" +<br>
" ID=T_" + CatIDStr + <br>
" onClick=" + char34 + "window.event.cancelBubble=true;" + char34 + "&gt;" +<br>
"&lt;DIV STYLE='margin-left:12;'&gt;&lt;FONT SIZE=1&gt;&lt;!--" + CatIDStr + "--&gt;" + "&lt;/DIV&gt;" +<br>
"&lt;/DIV&gt;&lt;/DIV&gt;" + SubStr;<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
}<br>
<br>
function addCategoryLink(CatIDStr, CatStr, LinkUrl)<br>
{<br>
SubStr = "&lt;!--" + CatIDStr + "--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
SrcStr = "&lt;A HREF='" + LinkUrl + "'&gt;" + CatStr + "&lt;/A&gt;&lt;BR&gt;" + SubStr;<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
}<br>
<br>
function setTopLinkTitle(TitleStr)<br>
{<br>
SubStr = "&lt;!--TOP_LINKS--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
SrcStr = "&lt;B&gt;" + TitleStr + "&lt;/B&gt;&lt;BR&gt;&lt;DIV STYLE='margin-left:12;'&gt;&lt;!--TOP_LINK--&gt;&lt;/DIV&gt;";<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
}<br>
<br>
function addTopLink(LinkStr, LinkUrl)<br>
{<br>
SubStr = "&lt;!--TOP_LINK--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
SrcStr = "&lt;A HREF='" + LinkUrl + "'&gt;" + LinkStr + "&lt;/A&gt;&lt;BR&gt;" + SubStr;<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
}<br>
<br>
function addStandardLink(TextStr, LinkStr, LinkUrl)<br>
{<br>
SubStr = "&lt;!--STANDARD_LINK--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
SrcStr = TextStr;<br>
if (LinkStr != "")<br>
{<br>
x = TextStr.indexOf(LinkStr);<br>
if (x &gt;= 0)<br>
{<br>
SrcStr = TextStr.substring(0, x);<br>
SrcStr += "&lt;A HREF='" + LinkUrl + "'&gt;" + LinkStr + "&lt;/A&gt;";<br>
<br>
x += LinkStr.length;<br>
SrcStr += TextStr.substring(x);<br>
}<br>
}<br>
SrcStr += "&lt;BR&gt;&lt;BR&gt;" + SubStr;<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
}<br>
<br>
function addCopyRightMsg(MsgStr, MsgUrl)<br>
{<br>
SubStr = "&lt;!--COPYRIGHT--&gt;";<br>
SrcStr = "";<br>
if (FirstCRMsg)<br>
{<br>
SrcStr = "&#169;";<br>
FirstCRMsg = false;<br>
}<br>
if (MsgUrl == "")<br>
SrcStr += MsgStr;<br>
else<br>
SrcStr += "&lt;A HREF='" + MsgUrl + "'&gt;" + MsgStr + "&lt;/A&gt;";<br>
SrcStr += SubStr;<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
<br>
function setTopStory(HeadlineStr, StoreStr, LinkUrl, Gif, GifAltStr)<br>
{<br>
SrcStr = "&lt;A HREF='" + LinkUrl + "'&gt;&lt;IMG SRC='" + Gif + "' ALIGN=LEFT WIDTH=117 HEIGHT=85 ALT=" + char34 + GifAltStr + char34 + " BORDER=0&gt;&lt;/A&gt;";<br>
hpStr = hpStr.replace("&lt;!--TOP_BANNER--&gt;", SrcStr); <br>
<br>
SrcStr = "&lt;A HREF='" + LinkUrl + "'&gt;&lt;B&gt;" + HeadlineStr + "&lt;/B&gt;&lt;/A&gt;&lt;BR&gt;" + StoreStr;<br>
hpStr = hpStr.replace("&lt;!--TOP_STORY--&gt;", SrcStr); <br>
}<br>
<br>
function setHeadlineTitle(TitleStr)<br>
{<br>
SubStr = "&lt;!--HEADLINE_TITLE--&gt;";<br>
if (hpStr.indexOf(SubStr) &gt;= 0)<br>
{<br>
SrcStr = "&lt;B&gt;" + TitleStr + "&lt;/B&gt;&lt;BR&gt;&lt;BR&gt;";<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
}<br>
<br>
function setHeadline(placementNo, HeadlineStr, LinkUrl)<br>
{<br>
if (placementNo &lt; 1 ¦¦ placementNo &gt; 6) return<br>
<br>
SubStr = "&lt;!--BULLET_" + placementNo + "--&gt;";<br>
SrcStr = "&lt;IMG SRC='/library/homepage/images/bluebullet.gif' ALT='*' WIDTH=7 HEIGHT=10&gt;";<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
<br>
SubStr = "&lt;!--HEADLINE_" + placementNo + "--&gt;";<br>
SrcStr = "&lt;B&gt;&lt;A HREF='" + LinkUrl + "'&gt;" + HeadlineStr + "&lt;/B&gt;&lt;/A&gt;";<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
<br>
function setPromotion(placementNo, HeadlineStr, StoreStr, LinkUrl, Gif, GifAltStr)<br>
{<br>
if (placementNo &lt; 1 ¦¦ placementNo &gt; 2) return<br>
<br>
SubStr = "&lt;!--PROMO_BANNER_" + placementNo + "--&gt;";<br>
SrcStr = "&lt;A HREF='" + LinkUrl + "'&gt;&lt;IMG SRC='" + Gif + "' ALIGN=LEFT ALT=" + char34 + GifAltStr + char34 + " BORDER=0&gt;&lt;/A&gt;";<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
<br>
SubStr = "&lt;!--PROMO_MSG_" + placementNo + "--&gt;";<br>
SrcStr = "";<br>
if (HeadlineStr != "") SrcStr += "&lt;A HREF='" + LinkUrl + "'&gt;&lt;B&gt;" + HeadlineStr + "&lt;/B&gt;&lt;/A&gt;&lt;BR&gt;";<br>
if (StoreStr != "") SrcStr += StoreStr;<br>
hpStr = hpStr.replace(SubStr, SrcStr); <br>
}<br>
<br>
function setLastUpdate(TextStr)<br>
{<br>
hpStr = hpStr.replace("&lt;!--LASTUPDATE--&gt;", TextStr); <br>
}<br>
<br>
function goHomePage(s)<br>
{ <br>
//window.location.href = s.options[s.selectedIndex].value;<br>
<br>
option = s.options[s.selectedIndex].value;<br>
elmID = "ID_HPLink" + option<br>
obj = document.all(elmID);<br>
if (obj != null)<br>
obj.click();<br>
}<br>
<br>
function clickCategory(CatIDStr) <br>
{<br>
var txtObj = document.all("T_" + CatIDStr);<br>
var imgObj = document.all("I_" + CatIDStr);<br>
<br>
if (txtObj.style.display == 'none') <br>
{<br>
txtObj.style.display = '';<br>
imgObj.src = '/library/homepage/images/minus.gif';<br>
}<br>
else <br>
{<br>
txtObj.style.display = 'none';<br>
imgObj.src = '/library/homepage/images/plus.gif';<br>
}<br>
window.event.cancelBubble=true;<br>
} //--&gt;<br>
&lt;/script&gt;<br>
<br>
&lt;script language="JavaScript"&gt;<br>
&lt;!--;<br>
function buildNavigation(PageIDStr)<br>
{<br>
var ID = PageIDStr.toUpperCase();<br>
<br>
// News Heading<br>
if (ID == "BUSINESS")<br>
setHeadlineTitle("News for the Business User");<br>
else if (ID == "DEVELOPER")<br>
setHeadlineTitle("News for the Developer");<br>
else if (ID == "EDUCATION")<br>
setHeadlineTitle("News for the Educator");<br>
else if (ID == "IT")<br>
setHeadlineTitle("News for the IT Professional");<br>
else if (ID == "PERSONAL")<br>
setHeadlineTitle("News for the Home User");<br>
<br>
// Homepage links<br>
setHomePageLinkTitle("See page customized for:");<br>
addHomePageLink("All", "/ms.htm", (ID=="ALL"? true : false));<br>
addHomePageLink("Business", "/hpbiz.htm", (ID=="BUSINESS"? true : false));<br>
addHomePageLink("Developer", "/hpdev.htm", (ID=="DEVELOPER"? true : false));<br>
addHomePageLink("Education", "/hpedu.htm", (ID=="EDUCATION"? true : false));<br>
addHomePageLink("IT Professional", "/hpitpro.htm", (ID=="IT"? true : false));<br>
addHomePageLink("Home User", "/hppers.htm", (ID=="PERSONAL"? true : false));<br>
<br>
// Category links<br>
if (ID == "ALL" ¦¦ <br>
ID == "BUSINESS" ¦¦ <br>
ID == "DEVELOPER" ¦¦ <br>
ID == "EDUCATION" ¦¦ <br>
ID == "IT" ¦¦<br>
ID == "PERSONAL")<br>
{<br>
addCategory("Product", "Product Families", false);<br>
addCategoryLink("Product", "BackOffice", "/backoffice/");<br>
addCategoryLink("Product", "Developer Tools", " addCategoryLink("Product", "MSN", " addCategoryLink("Product", "Office", "/office/");<br>
addCategoryLink("Product", "Windows", "/windows/");<br>
}<br>
if (ID == "ALL" ¦¦ <br>
ID == "BUSINESS" ¦¦ <br>
ID == "IT")<br>
{<br>
addCategory("Business", "Business Customers", (ID!="ALL"? true : false));<br>
addCategoryLink("Business", "Digital Nervous System", "/digital_nervous_system/");<br>
addCategoryLink("Business", "Enterprise Customers", "/enterprise/");<br>
addCategoryLink("Business", "Industry Solutions", "/industry/");<br>
addCategoryLink("Business", "Small Business", "/smallbiz/");<br>
}<br>
if (ID == "ALL" ¦¦ <br>
ID == "DEVELOPER")<br>
{<br>
addCategory("Developer", "Developers",(ID!="ALL"? true : false));<br>
addCategoryLink("Developer", "Software Developers", " addCategoryLink("Developer", "Web Site Builders", " }<br>
if (ID == "ALL" ¦¦ <br>
ID == "EDUCATION")<br>
{<br>
addCategory("Education", "Education", (ID!="ALL"? true : false));<br>
addCategoryLink("Education", "Academic Products", "/education/products/");<br>
addCategoryLink("Education", "Education Resellers", "/education/partner/");<br>
addCategoryLink("Education", "Higher Education", "/education/hed/");<br>
addCategoryLink("Education", "K-12 Education", "/education/k12/");<br>
}<br>
if (ID == "ALL" ¦¦ <br>
ID == "PERSONAL")<br>
{<br>
addCategory("HomeUser", "Home User",(ID!="ALL"? true : false));<br>
addCategoryLink("HomeUser", "Games", "/games/");<br>
addCategoryLink("HomeUser", "Kids", "/kids/");<br>
addCategoryLink("HomeUser", "Product Insider", "/insider/");<br>
addCategoryLink("HomeUser", "Seniors", "/seniors/");<br>
}<br>
if (ID == "ALL" ¦¦ <br>
ID == "IT")<br>
{<br>
addCategory("IT", "IT Professionals",(ID!="ALL"? true : false));<br>
addCategoryLink("IT", "Solution Providers", "/mcsp/");<br>
addCategoryLink("IT", "Technical Information", "/technet/");<br>
addCategoryLink("IT", "Year 2000", "/technet/topics/year2k/");<br>
}<br>
if (ID == "ALL" ¦¦ <br>
ID == "BUSINESS" ¦¦ <br>
ID == "DEVELOPER" ¦¦ <br>
ID == "EDUCATION" ¦¦ <br>
ID == "PERSONAL" ¦¦ <br>
ID == "IT")<br>
{<br>
addCategory("Partners", "Partners & Resellers", false);<br>
addCategoryLink("Partners", "Becoming a Partner", "/directaccess/partnering");<br>
addCategoryLink("Partners", "Find a Services Partner", "/isapi/referral/default.asp");<br>
addCategoryLink("Partners", "Resellers & Consultants", "/directaccess/");<br>
}<br>
<br>
// Top links<br>
if (ID == "BUSINESS")<br>
{<br>
setTopLinkTitle("Top links for Business");<br>
addTopLink("Customer Solutions", "/customers/");<br>
addTopLink("Internet Explorer 5", "/windows/ie/default.htm");<br>
addTopLink("Software Architecture Initiatives","/industry/developers.htm");<br>
addTopLink("Office 97 Service Release 2", " addTopLink("Outlook98 Download", " addTopLink("Office Update", " addTopLink("Solutions Directory", "/industry/directory/");<br>
addTopLink("Tech Advisor", "/smallbiz/techadvisor/techadv.htm");<br>
addTopLink("TechNet", "/techNet/");<br>
addTopLink("WindowsNT Workstation", "/ntworkstation/default.asp");<br>
addTopLink("Year 2000 Compliance", "/technet/topics/year2k/");<br>
}<br>
else if (ID == "DEVELOPER")<br>
{<br>
setTopLinkTitle("Top links for Developers");<br>
addTopLink("DirectX Download", "/directx/download.asp?RLD=51");<br>
addTopLink("ISVs", "/industry/developers.htm");<br>
addTopLink("Microsoft Platform SDK", " addTopLink("Microsoft Systems Journal", "/msj/");<br>
addTopLink("MSDN Online Library", " addTopLink("MSDN Online Web Workshop", " addTopLink("NT4 Option Pack", "/ntserver/nts/downloads/recommended/nt4optpk/default.asp");<br>
addTopLink("Office Developer site", "/officedev/");<br>
addTopLink("SQL Server 7.0 Evaluation Edition", "/sql/70/trial.htm"); <br>
addTopLink("Visual Studio", " addTopLink("Windows CE Developers", "/windowsce/developer/default.asp");<br>
addTopLink("Windows NT Workstation", "/ntworkstation/default.asp");<br>
}<br>
else if (ID == "EDUCATION")<br>
{<br>
setTopLinkTitle("Top links for Education");<br>
addTopLink("Internet Explorer 5", "/windows/ie/default.htm");<br>
addTopLink("Clip Art Gallery", "/clipgallerylive/");<br>
addTopLink("Education Pricing", "/education/pricing/elig.htm");<br>
addTopLink("Encarta Schoolhouse", " addTopLink("Find an Education Reseller", "/isapi/education/referral/aerfind.asp");<br>
addTopLink("NetMeeting", "/netmeeting/");<br>
addTopLink("Office Update Site", " addTopLink("Product Tips", "/magazine/guides/tipsguid/default.htm");<br>
addTopLink("TechNet", "/technet/");<br>
addTopLink("Volume Licensing Comparison", "/education/pricing/mvlpcompare.htm");<br>
addTopLink("Windows NT in K-12", "/education/k12/winnt/");<br>
}<br>
else if (ID == "IT")<br>
{<br>
setTopLinkTitle("Top links for IT Professionals");<br>
addTopLink("IE Downloads", "/windows/ie/download/all.htm?bShowPage");<br>
addTopLink("Knowledge Base", " addTopLink("Office 97 Service Release 2", " addTopLink("Office Update", " addTopLink("Outlook98 Download", " addTopLink("Newsgroups", " addTopLink("SQL Server 7.0 Evaluation Edition", "/sql/70/trial.htm"); <br>
addTopLink("Windows NT 4 Option Pack", "/ntserver/nts/downloads/recommended/nt4optpk/default.asp");<br>
addTopLink("Windows NT Service Pack 4", "/windows/downloads/contents/Updates/NT4SvcPk4/default.asp?custarea=bus&site=family&openmenu=&highlighteditem=");<br>
}<br>
else if (ID == "PERSONAL")<br>
{<br>
setTopLinkTitle("Top links for Home User");<br>
addTopLink("Internet Explorer 5", "/windows/ie/default.htm");<br>
addTopLink("Internet Explorer 5 by MSN", "/msdownload/iebuild/msnie5/EN/msn.asp");<br>
addTopLink("Games Downloads", "/games/download.htm");<br>
addTopLink("Games News", "/games/news.htm");<br>
addTopLink("Internet Guide", "/insider/internet/"); <br>
addTopLink("Microsoft Confidential", "/insider/new/confidential/");<br>
addTopLink("New from Microsoft", "/insider/new/");<br>
addTopLink("Office 2000 Guide", "/insider/office2000/");<br>
addTopLink("The Zone", " addTopLink("Win98 Guide", "/insider/windows98/");<br>
}<br>
addStandardLink("Free Downloads", "Free Downloads", "/msdownload/");<br>
addStandardLink("Jobs at Microsoft", "Jobs at Microsoft", "/jobs/");<br>
addStandardLink("Subscribe to our Newsletter", "Subscribe to our Newsletter", "/misc/mstw/");<br>
addStandardLink("&lt;NOBR&gt;Shop for Microsoft Products (U.S. Only)&lt;/NOBR&gt;", "Shop for Microsoft Products (U.S. Only)", "<br>
// Copyrights<br>
addCopyRightMsg("1999 Microsoft Corporation. All rights reserved.", "");<br>
addCopyRightMsg("Terms of Use", "/info/cpyright.htm");<br>
addCopyRightMsg(" ", "");<br>
addCopyRightMsg("Privacy Policy", "/info/privacy.htm");<br>
addCopyRightMsg("&lt;BR&gt;", "");<br>
addCopyRightMsg("Text-only Home Page", "/default_text.htm");<br>
addCopyRightMsg(" ", "");<br>
addCopyRightMsg("Contact Us", "/isapi/goregwiz.asp?target=/regwiz/forms/contactus.asp");<br>
} //--&gt;<br>
&lt;/script&gt;
 
&lt;script language="JavaScript"&gt;<br>
&lt;!--;<br>
function buildHeadline(PageIDStr)<br>
{<br>
var ID = PageIDStr.toUpperCase();<br>
<br>
setLastUpdate("Last update: Friday, June 11, 1999 - 4:08 p.m. Pacific Time")<br>
<br>
if (ID == "ALL")<br>
{<br>
setTopStory("It's Official: Microsoft Office 2000 is Here!",<br>
"Find out why Office 2000 is the best thing to happen to the corporate intranet, even if you don't have one yet. Visit the Office Web site to try a multimedia demo of Office 2000 and then order it online. If you missed Monday's launch event, you can tune into a replay of Steve Ballmer's exciting keynote speech.",<br>
"/office/2000/mscoma.htm",<br>
"/library/homepage/images/mscom_o2000b.gif",<br>
"Office 2000")<br>
<br>
setPromotion(1,"What's your opinion on Microsoft?",<br>
"",<br>
"/freedomtoinnovate/",<br>
"/library/homepage/images/promo_freedom.gif",<br>
"Freedom to Innovate")<br>
<br>
setPromotion(2,"Office 2000 upgrading made easy",<br>
"",<br>
"/insider/ms/upgradetool.htm",<br>
"/library/homepage/images/promo_o2000.gif",<br>
"Upgrading Office 2000")<br>
<br>
setHeadline(1,"Windows 98 Second Edition is Now Available","/windows98/")<br>
setHeadline(2,"Accessibility and Microsoft","/enable/microsoft/default.htm")<br>
setHeadline(3,"Important Update on the E-mail Attachment Virus","/misc/data/emailvirusalert.htm")<br>
setHeadline(4,"Kasparov to Play the World in Internet Chess Tournament","/presspass/features/1999/06-09kasparov.htm")<br>
}<br>
else if (ID == "BUSINESS")<br>
{<br>
setTopStory("It's Official: Microsoft Office 2000 is Here!",<br>
"Find out why Office 2000 is the best thing to happen to the corporate intranet, even if you don't have one yet. Visit the Office Web site to try a multimedia demo of Office 2000 and then order it online. If you missed Monday's launch event, you can tune into a replay of Steve Ballmer's exciting keynote speech.",<br>
"/office/2000/mscoma.htm",<br>
"/library/homepage/images/mscom_o2000b.gif",<br>
"Office 2000")<br>
<br>
setPromotion(1,"What's your opinion on Microsoft?",<br>
"",<br>
"/freedomtoinnovate/",<br>
"/library/homepage/images/promo_freedom.gif",<br>
"Freedom to Innovate")<br>
<br>
setPromotion(2,"What's new in Office 2000?",<br>
"",<br>
"/office/upgradecomparison/default.htm",<br>
"/library/homepage/images/promo_o2000.gif",<br>
"What's new in Office 2000")<br>
<br>
setHeadline(1,"Microsoft Consulting Services: Putting Partners Ahead of Profits","/presspass/features/1999/06-09mcs.htm")<br>
setHeadline(2,"Government Online: Creating an Electronic City Hall","/presspass/features/1999/06-07epermits.htm")<br>
setHeadline(3,"Texas: Attend Maximizing Customer Relationships Event","/industry/events/custman.stm")<br>
setHeadline(4,"Join Microsoft at PC Expo June 22-24 in New York City","/corpevents/pcexpo/")<br>
}<br>
else if (ID == "DEVELOPER")<br>
{<br>
setTopStory("It's Official: Microsoft Office 2000 is Here!",<br>
"Find out why Office 2000 is the best thing to happen to the corporate intranet, even if you don't have one yet. Visit the Office Web site to try a multimedia demo of Office 2000 and then order it online. If you missed Monday's launch event, you can tune into a replay of Steve Ballmer's exciting keynote speech.",<br>
"/office/2000/mscoma.htm",<br>
"/library/homepage/images/mscom_o2000b.gif",<br>
"Office 2000")<br>
<br>
setPromotion(1,"What's your opinion on Microsoft?",<br>
"",<br>
"/freedomtoinnovate/",<br>
"/library/homepage/images/promo_freedom.gif",<br>
"Freedom to Innovate")<br>
<br>
setPromotion(2,"What's new in Office 2000?",<br>
"",<br>
"/office/upgradecomparison/default.htm",<br>
"/library/homepage/images/promo_o2000.gif",<br>
"What's new in Office 2000")<br>
<br>
setHeadline(1,"David Shank's New Column on Office Development Debuts"," setHeadline(2,"Read MSDN's New Guide to Building Windows DNA Apps"," setHeadline(3,"Enter Your App: Data Warehousing Industry Solutions Awards","/industry/km/developers/announcements/kmisa-home.stm")<br>
setHeadline(4,"Download or Order the New Visual Studio 6.0 Service Pack 3"," }<br>
else if (ID == "EDUCATION")<br>
{<br>
setTopStory("It's Official: Microsoft Office 2000 is Here!",<br>
"Find out why Office 2000 is the best thing to happen to the corporate intranet, even if you don't have one yet. Visit the Office Web site to try a multimedia demo of Office 2000 and then order it online. If you missed Monday's launch event, you can tune into a replay of Steve Ballmer's exciting keynote speech.",<br>
"/office/2000/mscoma.htm",<br>
"/library/homepage/images/mscom_o2000b.gif",<br>
"Office 2000")<br>
<br>
setPromotion(1,"What's your opinion on Microsoft?",<br>
"",<br>
"/freedomtoinnovate/",<br>
"/library/homepage/images/promo_freedom.gif",<br>
"Freedom to Innovate")<br>
<br>
setPromotion(2,"What's new in Office 2000?",<br>
"",<br>
"/office/upgradecomparison/default.htm",<br>
"/library/homepage/images/promo_o2000.gif",<br>
"What's new in Office 2000")<br>
<br>
setHeadline(1,"New and Improved: Teaching and Learning with Microsoft Two CD Set","/education/k12/cdoffer.htm")<br>
setHeadline(2,"Access a World of Information with Encarta DVD-ROM","/insider/buynow/mscombuynow/msendvd.htm")<br>
setHeadline(3,"Case Study: PeopleSoft and Claremont Graduate University","/education/hed/studies/caseh56.htm")<br>
setHeadline(4,"Software Asset Management Made Easy and Affordable","/education/comply/")<br>
}<br>
else if (ID == "PERSONAL")<br>
{<br>
setTopStory("It's Official: Microsoft Office 2000 is Here!",<br>
"Find out why Office 2000 is the best thing to happen to the corporate intranet, even if you don't have one yet. Visit the Office Web site to try a multimedia demo of Office 2000 and then order it online. If you missed Monday's launch event, you can tune into a replay of Steve Ballmer's exciting keynote speech.",<br>
"/office/2000/mscoma.htm",<br>
"/library/homepage/images/mscom_o2000b.gif",<br>
"Office 2000")<br>
<br>
setPromotion(1,"What's your opinion on Microsoft?",<br>
"",<br>
"/freedomtoinnovate/",<br>
"/library/homepage/images/promo_freedom.gif",<br>
"Freedom to Innovate")<br>
<br>
setPromotion(2,"Office 2000 upgrading made easy",<br>
"",<br>
"/insider/ms/upgradetool.htm",<br>
"/library/homepage/images/promo_o2000.gif",<br>
"Upgrading Office 2000")<br>
<br>
setHeadline(1,"Save 50% Off a Future Stay of Up to Five Nights with Expedia"," setHeadline(2,"Editing Themes in Microsoft FrontPage 2000","/insider/frontpage2000/articles/themes.htm")<br>
setHeadline(3,"Learn About Accessibility Improvements in Office 2000","/enable/products/office2000/default.htm")<br>
setHeadline(4,"Microsoft Helps Consumers Make Their Home Computers Y2K-Proof","/presspass/features/1999/06-01y2k.htm")<br>
}<br>
else if (ID == "IT")<br>
{<br>
setTopStory("It's Official: Microsoft Office 2000 is Here!",<br>
"Find out why Office 2000 is the best thing to happen to the corporate intranet, even if you don't have one yet. Visit the Office Web site to try a multimedia demo of Office 2000 and then order it online. If you missed Monday's launch event, you can tune into a replay of Steve Ballmer's exciting keynote speech.",<br>
"/office/2000/mscoma.htm",<br>
"/library/homepage/images/mscom_o2000b.gif",<br>
"Office 2000")<br>
<br>
setPromotion(1,"What's your opinion on Microsoft?",<br>
"",<br>
"/freedomtoinnovate/",<br>
"/library/homepage/images/promo_freedom.gif",<br>
"Freedom to Innovate")<br>
<br>
setPromotion(2,"What's new in Office 2000?",<br>
"",<br>
"/office/upgradecomparison/default.htm",<br>
"/library/homepage/images/promo_o2000.gif",<br>
"What's new in Office 2000")<br>
<br>
setHeadline(1,"How to Deploy and Manage Microsoft Office 2000","/technet/events/agenda/of2kdepl/of2kdepl.htm")<br>
setHeadline(2,"The Importance of Reliability in an e-Commerce World","/technet/avail/ebay.htm")<br>
setHeadline(3,"IT Pros: You've Got the Windows 2000 Beta. Now What?","/windows/server/beta/default_ie.htm")<br>
setHeadline(4,"Capacity Planning for High Availability","/technet/avail/capacity.htm")<br>
}<br>
} //--&gt;<br>
&lt;/script&gt;<br>
<br>
&lt;script language="JavaScript"&gt;<br>
showHomePage("All");<br>
&lt;/script&gt;<br>
<br>
&lt;/BODY&gt;<br>
&lt;/HTML&gt;
 
Like I said: there's a LOT there; I just hope someone in here has the time to go through it (sorry, I DON'T).<br>
<br>
I hope this will prove helpful,<br>
-Robherc<br>
robherc@netzero.net
 
WOW! You didn't exaggerate the size of these files. They are huge. I'm going to start looking through them right away. Thanks for taking the time to download them.
 
OK, easy guys. i figured this code out with my limited html and javascript abilities and i think that you gurus can do it too. maybe you need some manipulating lessons? <br>
<br>
in the homepage.js file, after it says hpStr, thats the html code of your website. i made my own layout in Frontpage 2000 since i am terrible @ html at the moment. i then pasted the code into the hpStr = making sure i had a " thing @ in the beginning of each line and have a '+' sign @ the end of each line and a ';' on the last line. then where it says those &lt;!--blah--&gt; that signifies where the function should put its data ie. in a table. <br>
<br>
to manipulate the links, just open up the navagation.js and then change the first "" marks as your main subject like Help for example. then in the next "" marks you put the name of the link and in the last "" you put the URL. <br>
<br>
in your main html document, make sure you have the links to the js files. ie.<br>
<br>
&lt;script language="JavaScript" src="file:///e:/homepage.js"&gt;&lt;/script&gt;<br>
<br>
you should be all set then. then in the homepage.js file delte all the extra crap like copyrights... unless you need them. Hope this helps. <br>
<br>
Senor Pomidor
 
Howdy. Been lurking here to see what kind of response this would get, 'cause I'm real curious myself about doing the same thing with a Java applet.<br>
<br>
The folks over at internet.com's webreference have some pretty good articles on DHTML hierarchical menus, including several iterations of their own, with source: <br>
Unfortunately, there's a huge problem with both browsers and the way they handle form elements -- some always appear on top of DHTML elements (like menus), no matter what you do about layering: <br>
Good luck! Anybody wanna post a Java Applet?
 
i realy cant believe, that ANYONE has the time in the world to type all that code, without being locked up :)<br>
<br>
Karl.
 
One site I &lt;em&gt;REALLY&lt;/em&gt; recommend if you want to do DHTML cross-browser Cascading Menus is (This has step by step instructions for implementing their ever-famous menu) There's not just the menu here, but tutorial after tutorial for revision (after revision) of this menu. This step by step instruction is meant for people just interested in implementing the menu, not learning everything about how it works.<br>
<br>
For step 3, you'll want to use this dynomat tool which (is amazing). . .helps authors create the complete in-page script necessary for hierarchical menus through a single, real-time, interactive browser session.<br>
<br>
--Stephen<br>
slaroche@calico.com<br>
<br>
ps. Once again:<br>
for the instructions<br>
for Step 3 of the instructions; trust me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top