http://www.dynamicdrive.com/dynamici...pmenuindex.htm
the script works wonderfully, but I have a question regarding to its position, instead of dropping down right underneath, is it possible of moving it to pop on the right side instead?![]()
/cheers!
http://www.dynamicdrive.com/dynamici...pmenuindex.htm
the script works wonderfully, but I have a question regarding to its position, instead of dropping down right underneath, is it possible of moving it to pop on the right side instead?![]()
/cheers!
Well, the line:
controls the left offset of the menu. To make the menu appear to the right of the link, you can modify it to:Code:dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
The addition of "obj.offsetWidth" increases the left offset to include the width of the link itself.Code:dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"
Thanks ddadmin !!!!
This is great! Any way to get it to move only slightly to the right, and not clear to the right edge of the link? Like a certain number of pixels?
If You want to move 10 pixels to the right :
Code:dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+10+"px"
Amazing how simple that is. Thank you very much!
You're welcome![]()
Along the same lines, is there a way to align it at the top of an object? I ask because I've put the rollover code in a table cell and would like the menu to display at the to and to the right of the cell. Thanks in advance. Keep up the great work!
I answered my own question. Just goes to show that when you get to the point where you want to quit. Swear at it a little bit and then try again!![]()
Here's what I did:
On this line,
Remove:Code:dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottom")+obj.offsetHeight+"px"
Voila!Code:+obj.offsetHeight+"px"
I have the same question but regarding to the position of Pop-it menu
http://www.dynamicdrive.com/dynamicindex1/popit.htm
Where is, I suppose, no dropmenuobj. Also how can I align the sub-menu to the right.
Thanks
Bookmarks