
Align a popup window excatly by the parent link
Thanks,
there is a little problem with window.createPopup, as it is MS non-standard
method. I should create the popup in some more standards-compatible way.
I'll try out the microbians.com chromeless window. My problem is actually
rooted from the fact, that IE renders the windowed controls (listbox,
dropdown) over any DHTML popup, therefore I can not place my custom pop-up
controls above these form elements avoiding obscuring. The ony way out I see
is opening a chromeless window instead.
See the link below to understand my problem:
http://www.jurjans.lv/dhtml/demo.htm
Thanks,
--
-Pavils Jurjans
Information Technology consultations and solutions
Phone: (+371) 9459777
ICQ: 4047612
Quote:
> This seems to work, maybe it will give you some ideas..
> You will of course need to do version checking, error
> checking, you know what I mean ..
> TonyD.
> <HTML>
> <HEAD>
> <TITLE>Popup Test</TITLE>
> </HEAD>
> <BODY BGCOLOR="lightyellow">
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <a href="about:blank" onmouseover='testPop("test message")'>Test
> Link</a>
> <SCRIPT Language="JavaScript">
> function testPop(msg) {
> var iXpos=event.offsetX;
> var iYpos=event.offsetY;
> myPopup=window.createPopup();
> myPopupBody = myPopup.document.body;
> myPopupBody.style.setExpression("font","'italic normal bolder 12pt
> Helv'");
> myPopupBody.style.backgroundColor = "LightSeaGreen";
> myPopupBody.style.border = "solid black 2px";
> myPopupBody.innerHTML=msg;
> myPopup.show(iXpos, iYpos, 200, 50, document.body);
> }
> </SCRIPT>
> </BODY>
> </HEAD>
> </HTML>
> > Hallo,
> > How can I make a little windowless popup window make aligned excalty by
the
> > link which opened this popup?
> > For this, I need
> > 1) Parent x, y screen coordinates
> > 2) Link element x,y coordinates within the parent window
> > 3) Ability to move the popup window to the necessary coordinates
> > Maybe there is some ready-make script I could use for this?
> > Thanks,
> > --
> > -Pavils Jurjans
> > Information Technology consultations and solutions
> > Phone: (+371) 9459777
> > ICQ: 4047612