PDA

View Full Version : menu positioning ...


vladimir
12-23-2001, 09:22 PM
i find very good dhtml drop down menu
positioned by pixels - from top and from left.
in page i have IFRAME.
problem is:
i need drop down menu to be positioned from top and left of IFRAME
(not from top and left of whole page (because site wich i making is
% resizable and optimized for resolutions 800*600 and 1024*768)).
you can say: "put it in the iframe page",
but than menu script allways unnecessary loading with new iframe page,
and i want to avoid that.

this is example page:
http://www.abstraction.co.yu/av/main.htm

scoutt
12-23-2001, 11:47 PM
I think the problem you might run into is that most pixels will align from top left of the page not from where you want. just a thought.

WarGiant
12-24-2001, 12:14 PM
did u try puting the menu in the file that get loaded to the iframe instead of the main document.

Jon Hanlon
12-27-2001, 07:56 PM
If it's possible to put it in the <IFRAME> then do it.
It's a lot simpler than trying to work in absolute positioning across browsers.
What I would do is whack the script into a file called, say, menu.js and then put the line:
<script language="Javascript" src="menu.js"></script>
inside the <IFRAME>

As it is a separate .js file the browser will check inside its cache to see if it needs to reload it, so it will be very fast. You won't see any performance decrease or network overhead.

vladimir
01-03-2002, 04:13 AM
ok friends ...
thanx for your time deditacted to me and my problem
:)