Layers and browsers"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stuart

    #1

    Layers and browsers"

    The following code works well in IE5 and Netscape 7, apparently my page is
    not working in Netscape 4.6 and it has been suggested that i need a third
    option dwellig around the document.layers object, could someone tell me what
    line I need to make it compatable for earlier browsers?


    *************** ************
    if(document.all ){

    parent.Slave.do cument.all.hill List.style.pixe lTop=parent.Sla ve.document.bod y
    ..scrollTop+100
    parent.Slave.do cument.all.hill List.style.pixe lLeft=600
    parent.Slave.do cument.all.hill List.innerHTML= divHTML
    }
    if(!document.al l && document.getEle mentById){

    parent.Slave.do cument.getEleme ntById("hillLis t").style.top=p arent.Slave.doc u
    ment.body.scrol lTop+100+ "px"
    parent.Slave.do cument.getEleme ntById("hillLis t").style.left= 600+ "px"
    parent.Slave.do cument.getEleme ntById("hillLis t").innerHTML=d ivHTML
    };
    *************** *************** *


  • Stuart

    #2
    Re: Layers and browsers"


    "Stuart" <jddr@khhgf.hhf > wrote in message
    news:ceooet$u0r $1@newsg1.svr.p ol.co.uk...[color=blue]
    > The following code works well in IE5 and Netscape 7, apparently my page is
    > not working in Netscape 4.6 and it has been suggested that i need a third
    > option dwellig around the document.layers object, could someone tell me[/color]
    what[color=blue]
    > line I need to make it compatable for earlier browsers?
    >
    >
    > *************** ************
    > if(document.all ){
    >
    >[/color]
    parent.Slave.do cument.all.hill List.style.pixe lTop=parent.Sla ve.document.bod y[color=blue]
    > .scrollTop+100
    > parent.Slave.do cument.all.hill List.style.pixe lLeft=600
    > parent.Slave.do cument.all.hill List.innerHTML= divHTML
    > }
    > if(!document.al l && document.getEle mentById){
    >
    >[/color]
    parent.Slave.do cument.getEleme ntById("hillLis t").style.top=p arent.Slave.doc u[color=blue]
    > ment.body.scrol lTop+100+ "px"
    > parent.Slave.do cument.getEleme ntById("hillLis t").style.left= 600+ "px"
    > parent.Slave.do cument.getEleme ntById("hillLis t").innerHTML=d ivHTML
    > };
    > *************** *************** *
    >[/color]
    Got it........
    if(document.lay ers){
    parent.Slave.do cument.hillList .top=parent.Sla ve.window.pageY Offset+100
    parent.Slave.do cument.hillList .left=600
    parent.Slave.do cument.layers["hillList"].document.open( );
    parent.Slave.do cument.layers["hillList"].document.write (divHTML);
    parent.Slave.do cument.layers["hillList"].document.close ();
    }


    Comment

    Working...