IE versus Netscape

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

 Date:  Fri, 2 Mar 2001 21:54:40 -0000
 To:  <hwg-basics(at)hwg.org>
  todo: View Thread, Original
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