Bug #132422, was updated on 2001-Feb-14 15:08
Here is a current snapshot of the bug.

Project: DynAPI 2
Category: Browser-Specific Issue
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: wessto
Assigned to : nobody
Summary: Layers not showing up in netscape 6

Details: this works in ie and ns4, but layers and content don't show up in
netscape 6.  The following is the code I'm using...

##############BEGIN CODE#######################

<html> <head> <title>title</title> <LINK href="style.css" rel="STYLESHEET"
type="text/css"> <script language="Javascript"
src="/javascript/dynapi/src/dynapi.js"></script> <script
language="Javascript" src="/javascript/dynLayerHelper.js"></script> <script
language="Javascript">   
DynAPI.setLibraryPath('/javascript/dynapi/src/lib');
        DynAPI.include('dynapi.api.browser.js');
        DynAPI.include('dynapi.api.dynlayer.js');
        DynAPI.include('dynapi.api.dyndocument.js');

                
        
        var mainColor = '#333333';
        var titleColor = '#333333';
        var borderColor = '#ffffff';
        var navColor = '#330000';
        var borderWidth = 1;
        var baseX = 5;
        var baseY = 5;
        var titleWidth = 750;
        var titleHeight = 52;
        var contentWidth = titleWidth - 200;

        var contentHeight = 580;
var dbResult = 'text here';

        var hNavHeight = 30;
        var vNavWidth = titleWidth - contentWidth;
        var vNavHeight = contentHeight - hNavHeight;
        var hNavFillerX = contentWidth + baseX;
        var vNavX = hNavFillerX;
        var contentY = baseY + hNavHeight + titleHeight - borderWidth;
        var hNavY = baseY + titleHeight - borderWidth;
        var vNavFillerX = vNavX - borderWidth;
        var vNavFillerY = contentY + vNavHeight;
        

        
        DynAPI.onLoad=function() {

                //border order = top,right,bottom,left
                
makeLayerWithBorders('title',baseX,baseY,titleWidth,titleHeight,titleColor,borderWidth,borderColor,true,true,false,true);
                
makeLayerWithBorders('hNav',baseX,hNavY,contentWidth,hNavHeight,navColor,borderWidth,borderColor,true,false,true,true);
                
makeLayerWithBorders('hNavFiller',hNavFillerX,hNavY,vNavWidth,hNavHeight,navColor,borderWidth,borderColor,true,true,false,false);
                
makeLayerWithBorders('vNav',vNavX,contentY,vNavWidth,vNavHeight,navColor,borderWidth,borderColor,false,true,true,false);
                
makeLayerWithBorders('mainContent',baseX,contentY,contentWidth,contentHeight,mainColor,borderWidth,borderColor,false,true,true,true);
                makeLayerWithBorders('lastEdited',vNavFillerX,vNavFillerY,vNavWidth +
borderWidth,contentHeight -
vNavHeight,mainColor,borderWidth,borderColor,false,true,true,false);
                
                
                
                
                
                content = '<span class=title><b>title</b></span>';
title.setHTML(content);         content = '<span class=hnav><a
href="somesite">home</a> | <a href="?page=resume">resume</a> | <a
href="?page=services">services</a> | <a
href="?page=about">about</a></span>';
hNav.setHTML(content);          
                //PAGE SELECTION
                mainContent.setHTML(dbResult);

content = '<span class=last><b>rev:</b>02.14.01 22:58:06</span>';
lastEdited.setHTML(content);
        }

</script> </head> <body> <!--- REQUIRED FOR NETSCAPE ---> <SCRIPT
language="JavaScript"> height = contentHeight + hNavHeight + titleHeight;
document.write('<img src="images/pixel.gif" width=1 height=' + height + '
border=0>');
</script> </body> </html>

#############END CODE#################


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=132422&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to