Fw: IE versus Netscape

by "Phil Collis" <phil(at)databasewebsites.co.uk>

 Date:  Tue, 13 Mar 2001 19:25:55 -0000
 To:  <hwg-basics(at)hwg.org>
  todo: View Thread, Original
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