ajaydesai9
asked on
screen resolution on JSP page
I am very new to programming so solution in complete syntax will be great!
I am using top navigation on my web site. This navigation is build inside table. This navigation has tabs. I am including this top navigation on my .JSP pages. I want to do following: When user has 800X600 resolution I want to align my navigation table to left, and when user has 1024X768 resolution I want to align my navigation table to right. I have following script that detects browser resolution. But how can I create jsp variable that I can use in my JSP page to say following: <table If (var for 800X600) align=left else align=right>.
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
????????????
}
else
{
??????????
}
//-->
</SCRIPT>
I am using top navigation on my web site. This navigation is build inside table. This navigation has tabs. I am including this top navigation on my .JSP pages. I want to do following: When user has 800X600 resolution I want to align my navigation table to left, and when user has 1024X768 resolution I want to align my navigation table to right. I have following script that detects browser resolution. But how can I create jsp variable that I can use in my JSP page to say following: <table If (var for 800X600) align=left else align=right>.
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
????????????
}
else
{
??????????
}
//-->
</SCRIPT>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.