L
Lauren
I am having difficulty positioning my drop-down menu so that it's position
does not change when viewed at a lower resolution.
I got the code from this page
http://msdn.microsoft.com/library/d...ta/html/OfficeFrontPageCreateDropDownMenu.asp
Here is my Drop-Down Menu File:
----------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Drop-Down Menu</title>
<HEAD>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Arun kumar ([email protected]) -->
<link href="CascadeMenu.css" rel="stylesheet">
<script language="javascript" src="CascadeMenu.js">
</script>
</HEAD>
</head>
<body>
<DIV Id="menuBar" class="menuBar" >
<DIV Id="Bar1" class="Bar" menu="menu1" style="width: 150px; height:
18px">
<b><font face="Arial" size="2" color="#F0F8FF">Westar Online
Home</font></b></DIV>
<DIV Id="Bar2" class="Bar" menu="menu2" style="width: 100px; height:
18px">
<b><font face="Arial" size="2" color="#F0F8FF">HR &
Staffing</font></b></DIV>
<DIV Id="Bar3" class="Bar" menu="menu3" style="width: 100px; height:
18px">
<b><font face="Arial" size="2" color="#F0F8FF">Contracts</font></b></DIV>
</DIV>
<!--MenuItem Definition -->
<div Id="menu1" class="menu" >
<div Id="menuItem1_3" class="menuItem" title="Home"
cmd="http://199.217.163.45/intranet/index.asp"><font face="Arial" size="2"
color="#FFFFFF">Back to home</div>
</div>
<div Id="menu2" class="menu">
<div Id="menuItem2_1" class="menuItem" menu="menu4">Staffing &
Development</div>
</div>
<div Id="menu3" class="menu">
<div Id="menuItem3_1" class="menuItem">Bid Approval Form</div>
<div Id="menuItem3_2" class="menuItem">Proprietary Information</div>
<div Id="menuItem3_3" class="menuItem">General Provisions Fixed Price
Contracts</div>
</div>
<div Id="menu4" class="menu">
<div Id="menuItem4_1" class="menuItem">Staffing Flow Diagram</div>
<div Id="menuItem4_2" class="menuItem">Performance Development Report
(PDF)</div>
<div Id="menuItem4_3" class="menuItem">90 Day Review</div>
</div>
</div><!-- End of Menu -->
<BODY OnLoad="InitMenu()" Onclick="HideMenu(menuBar)" ID="Bdy"
bgColor=aliceblue>
</body>
</html>
----------------------------------------------------------------------------------
Menu Bar's CSS file:
----------------------------------------------------------------------------------
BODY
{
}
..menuBar
{
POSITION: relative;
BACKGROUND-COLOR: transparent;
TEXT-ALIGN: center
FONT: Arial
FONT COLOR: White
}
..Bar
{
BORDER-RIGHT: blue 1px outset;
BORDER-TOP: blue 1px outset;
FLOAT: left;
BORDER-LEFT: blue 1px outset;
WIDTH: 100px;
CURSOR: hand;
TEXT-INDENT: 5px;
BORDER-BOTTOM: blue 1px outset;
POSITION: relative;
BACKGROUND-COLOR: #0b83bf;
TEXT-ALIGN: center
}
..menu
{
BORDER-RIGHT: buttonhighlight thin outset;
BORDER-TOP: buttonhighlight thin outset;
VISIBILITY: hidden;
BORDER-LEFT: buttonhighlight thin outset;
WIDTH: 150px;
LINE-HEIGHT: 140%;
BORDER-BOTTOM: buttonhighlight thin outset;
POSITION: absolute;
BACKGROUND-COLOR: #0b83bf
}
..menuItem
{
PADDING-RIGHT: 15px;
PADDING-LEFT: 10px;
WIDTH: 100%;
CURSOR: hand;
LINE-HEIGHT: 20px;
BORDER-BOTTOM: white 1px solid
}
..ItemMouseOver
{
PADDING-RIGHT: 15px;
PADDING-LEFT: 10px;
WIDTH: 100%;
CURSOR: hand;
COLOR: highlighttext;
LINE-HEIGHT: 20px;
BORDER-BOTTOM: white 1px solid;
BACKGROUND-COLOR: highlight
}
..ItemMouseOut
{
WIDTH: 100%
}
..Arrow
{
FLOAT: right;
FONT-FAMILY: Webdings;
POSITION: absolute;
TEXT-ALIGN: left
}
..barOver
{
BORDER-RIGHT: blue 1px ridge;
BORDER-TOP: blue 1px ridge;
FLOAT: left;
BORDER-LEFT: blue 1px ridge;
WIDTH: 100px;
CURSOR: hand;
TEXT-INDENT: 5px;
BORDER-BOTTOM: blue 1px ridge;
POSITION: relative;
BACKGROUND-COLOR: #0b83bf;
TEXT-ALIGN: center
}
----------------------------------------------------------------------------------
Thanks,
Lauren
does not change when viewed at a lower resolution.
I got the code from this page
http://msdn.microsoft.com/library/d...ta/html/OfficeFrontPageCreateDropDownMenu.asp
Here is my Drop-Down Menu File:
----------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Drop-Down Menu</title>
<HEAD>
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Arun kumar ([email protected]) -->
<link href="CascadeMenu.css" rel="stylesheet">
<script language="javascript" src="CascadeMenu.js">
</script>
</HEAD>
</head>
<body>
<DIV Id="menuBar" class="menuBar" >
<DIV Id="Bar1" class="Bar" menu="menu1" style="width: 150px; height:
18px">
<b><font face="Arial" size="2" color="#F0F8FF">Westar Online
Home</font></b></DIV>
<DIV Id="Bar2" class="Bar" menu="menu2" style="width: 100px; height:
18px">
<b><font face="Arial" size="2" color="#F0F8FF">HR &
Staffing</font></b></DIV>
<DIV Id="Bar3" class="Bar" menu="menu3" style="width: 100px; height:
18px">
<b><font face="Arial" size="2" color="#F0F8FF">Contracts</font></b></DIV>
</DIV>
<!--MenuItem Definition -->
<div Id="menu1" class="menu" >
<div Id="menuItem1_3" class="menuItem" title="Home"
cmd="http://199.217.163.45/intranet/index.asp"><font face="Arial" size="2"
color="#FFFFFF">Back to home</div>
</div>
<div Id="menu2" class="menu">
<div Id="menuItem2_1" class="menuItem" menu="menu4">Staffing &
Development</div>
</div>
<div Id="menu3" class="menu">
<div Id="menuItem3_1" class="menuItem">Bid Approval Form</div>
<div Id="menuItem3_2" class="menuItem">Proprietary Information</div>
<div Id="menuItem3_3" class="menuItem">General Provisions Fixed Price
Contracts</div>
</div>
<div Id="menu4" class="menu">
<div Id="menuItem4_1" class="menuItem">Staffing Flow Diagram</div>
<div Id="menuItem4_2" class="menuItem">Performance Development Report
(PDF)</div>
<div Id="menuItem4_3" class="menuItem">90 Day Review</div>
</div>
</div><!-- End of Menu -->
<BODY OnLoad="InitMenu()" Onclick="HideMenu(menuBar)" ID="Bdy"
bgColor=aliceblue>
</body>
</html>
----------------------------------------------------------------------------------
Menu Bar's CSS file:
----------------------------------------------------------------------------------
BODY
{
}
..menuBar
{
POSITION: relative;
BACKGROUND-COLOR: transparent;
TEXT-ALIGN: center
FONT: Arial
FONT COLOR: White
}
..Bar
{
BORDER-RIGHT: blue 1px outset;
BORDER-TOP: blue 1px outset;
FLOAT: left;
BORDER-LEFT: blue 1px outset;
WIDTH: 100px;
CURSOR: hand;
TEXT-INDENT: 5px;
BORDER-BOTTOM: blue 1px outset;
POSITION: relative;
BACKGROUND-COLOR: #0b83bf;
TEXT-ALIGN: center
}
..menu
{
BORDER-RIGHT: buttonhighlight thin outset;
BORDER-TOP: buttonhighlight thin outset;
VISIBILITY: hidden;
BORDER-LEFT: buttonhighlight thin outset;
WIDTH: 150px;
LINE-HEIGHT: 140%;
BORDER-BOTTOM: buttonhighlight thin outset;
POSITION: absolute;
BACKGROUND-COLOR: #0b83bf
}
..menuItem
{
PADDING-RIGHT: 15px;
PADDING-LEFT: 10px;
WIDTH: 100%;
CURSOR: hand;
LINE-HEIGHT: 20px;
BORDER-BOTTOM: white 1px solid
}
..ItemMouseOver
{
PADDING-RIGHT: 15px;
PADDING-LEFT: 10px;
WIDTH: 100%;
CURSOR: hand;
COLOR: highlighttext;
LINE-HEIGHT: 20px;
BORDER-BOTTOM: white 1px solid;
BACKGROUND-COLOR: highlight
}
..ItemMouseOut
{
WIDTH: 100%
}
..Arrow
{
FLOAT: right;
FONT-FAMILY: Webdings;
POSITION: absolute;
TEXT-ALIGN: left
}
..barOver
{
BORDER-RIGHT: blue 1px ridge;
BORDER-TOP: blue 1px ridge;
FLOAT: left;
BORDER-LEFT: blue 1px ridge;
WIDTH: 100px;
CURSOR: hand;
TEXT-INDENT: 5px;
BORDER-BOTTOM: blue 1px ridge;
POSITION: relative;
BACKGROUND-COLOR: #0b83bf;
TEXT-ALIGN: center
}
----------------------------------------------------------------------------------
Thanks,
Lauren