I'm very new to Java. I have a menu item that is very easy to use to create java menus. The problem is when your trying to create a site that is compatable for many different screen resoluions. The menu created is static. IE it's always left X pix and down Y pix from the upper left hand corner of the screen. This is great if your not worried about creating pages that will be viewed by multiple resolutions. I found the following code off of another site.
"in you're page after the <body> tag you must insert a code like this:
<script language=javascript>
if (document.body.offsetWidth<....){ myLeft = ....;} else {myLeft = ((document.body.offsetWidth-....)/2)+.....;}
</script>
replace ... with correct value for your site."
I need some more help interpreting the script. Basically I want the script above to work for 800x600, 1024x768, and 1280x1024 if possible. Any help you can give would be great. Thanks in advance!
"in you're page after the <body> tag you must insert a code like this:
<script language=javascript>
if (document.body.offsetWidth<....){ myLeft = ....;} else {myLeft = ((document.body.offsetWidth-....)/2)+.....;}
</script>
replace ... with correct value for your site."
I need some more help interpreting the script. Basically I want the script above to work for 800x600, 1024x768, and 1280x1024 if possible. Any help you can give would be great. Thanks in advance!