hi

   i don't know exactley.Any have only two main browser is there ie/nets.so
according to that u have to write your code.both will be suppporting
scritps. may be some tages not supporting.that time u have to check either
client browser is ie or netsc.just go through the following scripts.hope u
got some idea...


if(document.all)                // testing the browser IE
{
        n=0;
        ie=1;
        fshow="visible";
        fhide="hidden";
}

if(document.layers)             // testing the browser Netscape
{
        n=1;
        ie=0;
        fshow="show";
        fhide="hide";
}

function popdisplaySubMenu(idMainMenu)
{
        var menu;
        var submenu;
        if (n)
        {
                submenu = document.layers[idMainMenu+"submenu"];
                submenu.left = document.layers[idMainMenu].pageX-20;
                submenu.top  = document.layers[idMainMenu].pageY+25;
                submenu.visibility = "show";
                popobject=submenu;
        }
        else
        {
                menu = eval(idMainMenu);
                submenu = eval(idMainMenu+"submenu.style");
                submenu.left = popcalculateSumOffset(menu, 'offsetLeft')-20;
                submenu.top = popcalculateSumOffset(menu, 'offsetTop')+25;
                submenu.visibility = "visible";
                popobject=submenu;
        }
}

function popcalculateSumOffset(idItem, offsetName)
{
        var totalOffset = 0;
        var item = eval('idItem');
        do
        {
                totalOffset += eval('item.'+offsetName);
                item = eval('item.offsetParent');
        } while (item != null);
        return totalOffset;
}
function pophide()
{
        if (n)
        {
                if (popobject != null)
                {
                        popobject.visibility = "hide";
                        popobject.left = 0;
                }
        }
        if(ie)
        {
                if (popobject != null)
                {
                        popobject.visibility = "hidden";
                        popobject.left = 0;
                }
        }
}




ch...
subu

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to