Forum Moderators: not2easy

Message Too Old, No Replies

Help with Position variable

         

BlackRaven

3:43 pm on Jun 7, 2005 (gmt 0)

10+ Year Member



hi, could anyone tell how to create the popup window above the keyword News?

<div onmouseover="this.childNodes[1].style.display='block'" onmouseout="this.childNodes[1].style.display='none'" style="display:inline;text-decoration: underline; color: #E2A005;" > News <div style="display:none;position:fixed; left:0; top:0; width:200px;z-index:1;background-color: #FFFFFF;border:1px solid #E2A005;padding:5px;color: #000000;"> <a href="www.google.com">Some News</a><br /> todays News </div></div>

Moby_Dim

6:33 am on Jun 8, 2005 (gmt 0)

10+ Year Member



May be change fixed positioning to absolute and add something like ...this.childNodes[1].style.top = this.offsetTop; this.childNodes[1].style.left = this.offsetLeft... to event handler (with all necessary idea dependant corrections.)