/**
 * Function: findPosX
 * Finds the current X position of the passed in object
 *
 * From:
 *      http://blog.firetree.net/2005/07/04/javascript-find-position/
 *
 * Parameters:
 *      obj - a proper html item, div for example
 *
 * Returns:
 *      the x position on screen
 */
function findPosX(obj)
{
        var curleft = 0;
        if(obj.offsetParent)
        {
                while(1)
                {
                        curleft += obj.offsetLeft;
                        if(!obj.offsetParent)
                                break;
                        obj = obj.offsetParent;
                }
        }
        else if(obj.x)
        {
                curleft += obj.x;
        }
        
        return curleft;
}

/**
 * Function: findPosY
 * Finds the current Y position of the passed in object
 *
 * From:
 *      http://blog.firetree.net/2005/07/04/javascript-find-position/
 *
 * Parameters:
 *      obj - a proper html item, div for example
 *
 * Returns:
 *      the y position on screen
 */
function findPosY(obj)
{
        var curtop = 0;
        if(obj.offsetParent)
        {
                while(1)
                {
                        curtop += obj.offsetTop;
                        if(!obj.offsetParent)
                                break;
                        obj = obj.offsetParent;
                }
        }
        else if(obj.y)
        {
                curtop += obj.y;
        }
        
        return curtop;
}

And try doing zindex on the menu or define the menu before the
scolling area or below it I forget which.


On 12/5/05, dave <[EMAIL PROTECTED]> wrote:
> yeah i know, thats another problem with that damn dhtml( it positions off of 
> browser not position), have u got a fix 4 that?
>
> Luckily the majority of the target audience doesn't have big screen sizes
>
> ~Dave the disruptor~
> good sites - make money getting rid of ie :)
> http://explorerdestroyer.com/
> http://www.killbillsbrowser.com/
>
> ----------------------------------------
> From: "Bryan Stevenson" <[EMAIL PROTECTED]>
> Sent: Monday, December 05, 2005 5:04 PM
> To: CF-Talk <[email protected]>
> Subject: Re: os x ff div ?
>
> not on a Mac, but your sub-menus show way to the right (big gap between main
> menu and sub-menu) on a widescreen monitor...if I shrink the window to cut off
> on rigt hand side of menu....subs show under to the left of parent menu item.
>
> Cheers
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> phone: 250.480.0642
> fax: 250.480.1264
> cell: 250.920.8830
> e-mail: [EMAIL PROTECTED]
> web: www.electricedgesystems.com
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226137
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to