hi, i need help with this, i'm just changing the width of the menu if the resolution is lower.. I was wondering if this would work, or is there another way without using different style sheets because this is the only style i'm putting in... Thanks!
<SYTLE>
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
.menu {
PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-TOP: 3px; PADDING-BOTTOM: 3px; Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute; WIDTH: 900; left: 125px; top: 80px; BACKGROUND-COLOR: #000099; LAYER-BACKGROUND-COLOR: #000099
}
}
else
{
.menu {
PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-TOP: 3px; PADDING-BOTTOM: 3px; Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute; WIDTH: 680; left: 125px; top: 80px; BACKGROUND-COLOR: #000099; LAYER-BACKGROUND-COLOR: #000099
}
}
//-->
</SCRIPT>
</STYLE>
<SYTLE>
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
.menu {
PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-TOP: 3px; PADDING-BOTTOM: 3px; Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute; WIDTH: 900; left: 125px; top: 80px; BACKGROUND-COLOR: #000099; LAYER-BACKGROUND-COLOR: #000099
}
}
else
{
.menu {
PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-TOP: 3px; PADDING-BOTTOM: 3px; Z-INDEX: 10; VISIBILITY: hidden; POSITION: absolute; WIDTH: 680; left: 125px; top: 80px; BACKGROUND-COLOR: #000099; LAYER-BACKGROUND-COLOR: #000099
}
}
//-->
</SCRIPT>
</STYLE>