Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Layers and browsers"

Reply
Thread Tools

Layers and browsers"

 
 
Stuart
Guest
Posts: n/a
 
      08-03-2004
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.document.all.hillList.style.pixelTop= parent.Slave.document.body
..scrollTop+100
parent.Slave.document.all.hillList.style.pixelLeft =600
parent.Slave.document.all.hillList.innerHTML=divHT ML
}
if(!document.all && document.getElementById){

parent.Slave.document.getElementById("hillList").s tyle.top=parent.Slave.docu
ment.body.scrollTop+100+ "px"
parent.Slave.document.getElementById("hillList").s tyle.left=600+ "px"
parent.Slave.document.getElementById("hillList").i nnerHTML=divHTML
};
*******************************


 
Reply With Quote
 
 
 
 
Stuart
Guest
Posts: n/a
 
      08-03-2004

"Stuart" <> wrote in message
news:ceooet$u0r$...
> 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.document.all.hillList.style.pixelTop= parent.Slave.document.body
> .scrollTop+100
> parent.Slave.document.all.hillList.style.pixelLeft =600
> parent.Slave.document.all.hillList.innerHTML=divHT ML
> }
> if(!document.all && document.getElementById){
>
>

parent.Slave.document.getElementById("hillList").s tyle.top=parent.Slave.docu
> ment.body.scrollTop+100+ "px"
> parent.Slave.document.getElementById("hillList").s tyle.left=600+ "px"
> parent.Slave.document.getElementById("hillList").i nnerHTML=divHTML
> };
> *******************************
>

Got it........
if(document.layers){
parent.Slave.document.hillList.top=parent.Slave.wi ndow.pageYOffset+100
parent.Slave.document.hillList.left=600
parent.Slave.document.layers["hillList"].document.open();
parent.Slave.document.layers["hillList"].document.write(divHTML);
parent.Slave.document.layers["hillList"].document.close();
}


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subnets between core and access/distribution layers & routing between layers J Cisco 0 12-13-2006 08:38 PM
Abstraction Layers And Their Importance Silverstrand Front Page News 0 01-31-2006 04:48 AM
Tiers, Layers, Models and Design Patterns (Model-2 of Struts) Jan Brunia Java 1 02-10-2004 05:38 AM
Layers and Forms Andrew Banks HTML 3 12-23-2003 10:24 PM
Dynamic Layers and IE kev HTML 2 09-17-2003 10:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57