hermitas
06-30-2003, 07:50 PM
I need help with resizing this sliding menu (sliding_menu.js).
I can widen the menu panel to 250 pixels but not the item_panel. Nothing wider than 150 pixels will work.
Many thanks.
<html>
<title>Sliding Menu</title>
<body text="#000000" leftmargin="25" topmargin="20">
<SCRIPT LANGUAGE="JavaScript">
function goToURL() { history.go(-1); }
</script>
<style>
.menu
{
position:relative;
background-color:#ffffcc;
border:1px solid darkblue;
width:250;
font-size:11px;
font-family:verdana;
font:bold;
position:absolute;
cursor:se-resize;
}
.item_panel
{
width:150;
border-left:1px solid darkblue;
border-right:1px solid darkblue;
clip:rect(0,150,0,0);
position:absolute;
}
.item_panel a
{
text-decoration:none;
color:black;
cursor:hand;
}
.item
{
background-color:lightyellow;
width:150;
font-size:10px;
font-family:verdana;
}
</style>
<script language="JavaScript" src="http://javascript.internet.com/navigation/sliding_menu.js"></script>
<center>
<table width=250><tr><td>
<script language="JavaScript">
//Link[nr] = "position [0 is menu/1 is item],Link name,url,target (blank|top|frame_name)"
var Link = new Array();
Link[0] = "0|Asset Class";
Link[1] = "1|Currencies FRX";
Link[2] = "1|Global Debt DBT";
Link[3] = "1|Global Markets GEM";
Link[4] = "1|Equities STK";
Link[5] = "1|Commodities CMD";
Link[6] = "1|Energy Markets ENR";
Link[7] = "0|General Debt Market";
Link[8] = "1|ABS ABS";
Link[9] = "1|Emerging Markets Debt GEMD";
Link[10] = "1|FRNs FRN";
Link[11] = "1|High Yield Bonds HYB";
Link[12] = "1|Inflation Indexed Notes IIN";
Link[13] = "1|Investment Grade Bonds IGB";
Link[14] = "1|Ratings AAA";
Link[15] = "1|Repos RPS";
Link[16] = "1|Strips STRIP";
Link[17] = "0|Energy";
Link[18] = "1|Oil OIL";
startup(4);
</script>
</body>
</html>
I can widen the menu panel to 250 pixels but not the item_panel. Nothing wider than 150 pixels will work.
Many thanks.
<html>
<title>Sliding Menu</title>
<body text="#000000" leftmargin="25" topmargin="20">
<SCRIPT LANGUAGE="JavaScript">
function goToURL() { history.go(-1); }
</script>
<style>
.menu
{
position:relative;
background-color:#ffffcc;
border:1px solid darkblue;
width:250;
font-size:11px;
font-family:verdana;
font:bold;
position:absolute;
cursor:se-resize;
}
.item_panel
{
width:150;
border-left:1px solid darkblue;
border-right:1px solid darkblue;
clip:rect(0,150,0,0);
position:absolute;
}
.item_panel a
{
text-decoration:none;
color:black;
cursor:hand;
}
.item
{
background-color:lightyellow;
width:150;
font-size:10px;
font-family:verdana;
}
</style>
<script language="JavaScript" src="http://javascript.internet.com/navigation/sliding_menu.js"></script>
<center>
<table width=250><tr><td>
<script language="JavaScript">
//Link[nr] = "position [0 is menu/1 is item],Link name,url,target (blank|top|frame_name)"
var Link = new Array();
Link[0] = "0|Asset Class";
Link[1] = "1|Currencies FRX";
Link[2] = "1|Global Debt DBT";
Link[3] = "1|Global Markets GEM";
Link[4] = "1|Equities STK";
Link[5] = "1|Commodities CMD";
Link[6] = "1|Energy Markets ENR";
Link[7] = "0|General Debt Market";
Link[8] = "1|ABS ABS";
Link[9] = "1|Emerging Markets Debt GEMD";
Link[10] = "1|FRNs FRN";
Link[11] = "1|High Yield Bonds HYB";
Link[12] = "1|Inflation Indexed Notes IIN";
Link[13] = "1|Investment Grade Bonds IGB";
Link[14] = "1|Ratings AAA";
Link[15] = "1|Repos RPS";
Link[16] = "1|Strips STRIP";
Link[17] = "0|Energy";
Link[18] = "1|Oil OIL";
startup(4);
</script>
</body>
</html>