PDA

View Full Version : AnyLink Positioning



bfisher
03-07-2005, 10:59 PM
Script: AnyLink Drop Down Menu
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
---------------------------------------------------------------

Here's one for you guys. I've got my menu positioned to the right with a simple change, but my question is this. How can I set the menu to stay positioned with the element, despite the fact that it may run off the bottom of the window? Thanks in advance.

bfisher

bfisher
03-07-2005, 11:39 PM
Alright. I figured it out. Lucky for me I didn't post my question to a forum... :rolleyes:

Here's what I did. In the clearbrowseredge function you have to return an offset value of 0. It looks like this:


function clearbrowseredge(obj, whichedge){
var edgeoffset=0
return edgeoffset
}

Snazzy!

I'm sure you could trace it back to the function call but I'm not that good at JS, so this will have to do for the time being.

Thanks to the DD team for your hard work on this script.

bfisher