Re: IE versus Netscape
by "Justin H." <justinh(at)whidbey.net>
|
Date: |
Thu, 15 Mar 2001 09:56:16 -0800 |
To: |
"HWG Basics" <hwg-basics(at)hwg.org> |
References: |
acer |
|
todo: View
Thread,
Original
|
|
Netscape understands the document.images[] array. If you know the name or
position of the image, you can do it that way. Otherwise, how you access
the image depends on where it's located. If it's not in a layer (div), you
can use document.imageName. If it is in a layer, you can access it with
document.layerName.imageName.
Justin H.
----- Original Message -----
From: "Phil Collis" <phil(at)databasewebsites.co.uk>
Subject: Fw: IE versus Netscape
> I wrote to the group recently re some scripting problem and I wondered if
> anyone could answer.
> TIA
>
> ----- Original Message -----
> From: Phil Collis <phil(at)databasewebsites.co.uk>
> To: <hwg-basics(at)hwg.org>
> Sent: Friday, March 02, 2001 9:54 PM
> Subject: IE versus Netscape
>
>
> > Please help if you can. I'm using an array to load images into image
tags
> on
> > a HTML page and it works fine with Internet Explorer, but not with
> Netscape.
> > I know Netscape users layers instead of all but I tried just changing
> > document.all to document.layers and it didn't work. Does anyone know how
I
> > would translate this piece of Javascript written for IE into Netscape
> lingo?
> >
> > if(document.all[imgname]){
> > document.all[imgname].src=imgsrc[p];
> > document.all[imgname].alt=orderno[p];
> > document.all[imgname].title=adtitlesrc[p];
> > document.all[imgname].border=0;
> > allocations++;
> > }
> >
> > Thanks in advance
> >
> > Phil Collis
> > phil(at)databasewebsites.co.uk
> >
> >
> >
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA