Popup() and right alignment

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Joseph
Beginner
Beginner
Posts: 9
Joined: Thu Mar 23, 2006 5:04 pm

Post by Joseph »

Hi Ruth,

Thank you for the idea - it definitely works, great workaround. I am going to use another absolutely positioned empty image as an anchor for a menu rather then one wide image, but I would not have thought of it myself.

Code: Select all

<div class="contentcap">
   <img src="ghost.gif" name="mmanchor" id="mmanchor" style="position:absolute;width:1px;height:1px;right:150px;top:50%;"> 
   <div class="mildiv"> 
      <a href=# onmouseover="popup('milonic','mmanchor')" onmouseout="popdown()"> 
         <font size="3" color="green">Milonic</font> 
         <img src="arrow.gif" border="1" name="milonicmenu" id="milonicmenu" > 
      </a> 
   </div> 
</div>

menu definition: 
top="offset=0"; 
left="offset=0";
Thanks again.

Best regards,
Joseph

P.S. It is still a workaround - I hope Andy will look at it at some stage. :-)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Joseph,

I'm glad it works :)

Since I don't know js and programming, my life is spent in workarounds :lol:

I'm sure Andy will do what he can, but I'm not sure what you suggest would work anyway. I'm not really good an explaining 'techinically' because of my lack of programming knowledge but.... the menu you are using is a pop menu, it's not relatively positioned like when you put it in a table, or in a div as many do which makes it 'a part' of that table or div and so follows what happens in that table or div. So when you pop it up it's sitting 'on top' of the various things. Since it is doing that and it's not 'part' of the div that gets the scroll bar I can't think how the menu would know about that. I don't even know if it would shift over if the div that had the image in it got a scroll bar, since it's 'on top' of that div, also, and not a 'part' of it. I hope that made sense.

Ruth
Post Reply