I guess you are referring to NS4 when you are talking about the scrollbars
not appearing.

There is one way around this.  Add a listener that sets the
"document.width" value.  This is a slight fix.  It allows you to increae
the document size but not decrease it.

Dave Waller wrote:

> I have some problems with my new site.  It works in IE 5 and netscape 4
> on Linux, but not on netscape 6 or netscape 4 on windows.
>
> Also how do I make the scrollbars work when I put some html in a layer
> that is bigger than the window.
>
> This is the URL
> http://www.precisiondrive.com:84/www/home.html
>
> I have a vanity logo animation here.
> http://www.precisiondrive.com:84/www/
>
> the somewhat working code is this.
>
> <HTML>
> <HEAD>
>  <TITLE>Precision Drive and Control</TITLE>
>  <META NAME="AUTHOR" CONTENT="Dave Waller">
>
> <script language="Javascript" src="js/dynapi.js"></script>
> <script language="Javascript">
> DynAPI.setLibraryPath('js/lib/');
> DynAPI.include('dynapi.api.*');
> DynAPI.include('dynapi.gui.loadpanel.js');
> </script>
> <script language="Javascript">
>    var industStatus = 0;
>    var motorStatus = 0;
>    var contractStatus = 0;
>    var csStatus = 0;
>    var prevClick = "";
>     DynAPI.onLoad = function() {
>
>       var dw = DynAPI.getDocument().getWidth();
>       var dh = DynAPI.getDocument().getHeight();
>
>       var tLh = dh * .2;
>
>       var mLh = dh - tLh;
>
>       topLayer = new LoadPanel();
>       topLayer.setHTML("");
>       topLayer.setSize(dw,tLh);
>       topLayer.setBgColor('white');
>       topLayer.moveTo(0,0);
>
>       mainLayer = new LoadPanel();
>       mainLayer.setHTML("");
>       mainLayer.setSize(dw,mLh);
>       mainLayer.setBgColor('white');
>       mainLayer.moveTo(0,tLh);
>
>       DynAPI.document.addChild(topLayer);
>
>       DynAPI.document.addChild(mainLayer);
>
>       topLayer.setURL('top.html');
>
>       mainLayer.setURL("main.html");
>
> }
>
> function changePage(group){
>      // alert("contractStatus = " + contractStatus  + " motorStatus = "
> + motorStatus + " csStatus = " + csStatus + " contractStatus = " +
> contractStatus + "prevClick = "+ prevClick + "group = " + group )
>       var s = eval(group + "Status")
>       if ( s == 0 ){
>          topLayer.doc.images[group + "Button"].src = "images/" +group +
> "OnButton.png";
>            topLayer.doc.images["logo"].src = "images/mini_logo.jpg"
>           mainLayer.setURL(group + "Main.html");
>          eval(group + "Status = 1")
>          if ( prevClick != "" && prevClick != group){
>               topLayer.doc.images[prevClick + "Button"].src = "images/"
> + prevClick + "OffButton.png";
>               eval(prevClick + "Status = 0")
>          }
>          prevClick = group
>       }
>       else {
>          topLayer.doc.images[group + "Button"].src = "images/" +group +
> "OffButton.png";
>          topLayer.doc.images["logo"].src = "images/blankLogo.jpg"
>           mainLayer.setURL("main.html");
>          eval(group + "Status = 0")
>          eval(prevClick + "Status = 0")
>       }
>
>       //alert("contractStatus = " + contractStatus  + " motorStatus = "
> + motorStatus + " csStatus = " + csStatus + " contractStatus = " +
> contractStatus + "prevClick = "+ prevClick + "group = " + group )
> }
>
> </script>
> </HEAD>
>
> <body>
>
> </body>
> </HTML>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




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

Reply via email to