<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>If I understood correctly, you are using an image for adjusting you're menu?</DIV> <DIV>Well. Anyway, the problem is caused by the&nbsp;absolute size of the image that will cover&nbsp;relative portion of the users screen depending on monitor resolution settings.</DIV> <DIV>If you're formula works fine with other elements, there is no reason to fail with the image, all you have to do is, use/apply you're formula in the image size too.</DIV> <DIV>&lt;img id=thatImage src="itsLocation\theImage.gif"&gt;<BR></DIV> <DIV>...on the script, acces it's properties like u usualy do, and&nbsp;specify the new deppendable size suitable&nbsp;to current resolution.</DIV> <DIV>...</DIV> <DIV>thatImage.style.width=the_formulaResult+'px'</DIV> <DIV>thatImage.style.height=the_formulaResult+'px'</DIV> <DIV>...</DIV> <DIV>&nbsp;</DIV> <DIV>In this casse, it is&nbsp;preferable to use pictures created for higher resolutions like 1024/768, 1152/864; 1280/960; 1280/1024, </DIV> <DIV>because if u use 800/600 res., you have to enlarge it with u're formula for res., like 1024/768 or higher 1280/1024.</DIV> <DIV>This way the image will&nbsp;get poor in the user's screen.</DIV> <DIV>&nbsp;</DIV> <DIV>Or, there is an alternative way. You will have to create different images for different resolution's and ref to them&nbsp;after the update of user's screen res.</DIV> <DIV>&nbsp;</DIV> <DIV>if this that</DIV> <DIV>if this that</DIV> <DIV>if this that</DIV> <DIV>//for every screen resolution&nbsp; and image you might have.</DIV> <DIV>if this //supose it has answered the 1024/768 resolution</DIV> <DIV>//than we take action like</DIV> <DIV>thatImage.src="itsLocation\theImage1024/768.gif"</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>or we can simplify</DIV> <DIV>&nbsp;</DIV> <DIV>scrRes, global var of the user screen resolution determined with&nbsp;you're other function</DIV> <DIV>&nbsp;</DIV> <DIV>function theRightImage(){//or Images perhaps?!</DIV> <DIV>&nbsp;</DIV> <DIV>thatImage.src="itsLocation\theImage" + scrRes +".gif"</DIV> <DIV>thisImage.src="itsLocation\otherImage" + scrRes +".jpg"</DIV> <DIV>...</DIV> <DIV>}</DIV> <DIV>call this function from inside&nbsp; res., determiner function</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;</DIV> <DIV>-Hope&nbsp;it helps</DIV> <DIV>&nbsp;Regards</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B>&nbsp;Russell Scheinberg</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Tuesday, April 24, 2001 12:54 AM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;[Javascript] getting relative position in multiple resolutions</DIV> <DIV><BR></DIV>I am using Heirmenus to display cascading menus. They work really well. However, I am using absolute positioning of the menu to align it correctly with an image I am using. The problem is that this pixel point will change depending on the resolution of the browser displaying it.&nbsp; I can get the resolutiion of the user agent with screen.height and screen.width and even the screen.availheight and screen.availwidth. I thought that if I took the point in one resolution say 1024 X 768 and created a formula, that would work in all resolutions. <BR><BR>So if the point is set at 595 from the left edge of the screen in that res, then 595/1024 would be .581. Then I could set the relative drepoint as .581*screen.height or .581*screen.availheight or something like that. Unfortunately, that doesn't work and sends the location of the menu all over the place in other resolutions. <BR><BR>I was wondering if there is a way to get the pixel point of an image element and then work from there. Any ideas? Thanks.<BR><BR><BR>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>http://www.LaTech.edu/mailman/listinfo/javascript<BR> <DIV></DIV></BLOCKQUOTE></BODY></HTML><DIV><BR><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></DIV>