Dynamic content in Netscape not working. Help!
I have a script that generates a headline dynamically. It's working in IE but not NN. Here's the code in question:
var clients = ['','client1','client2','client3','client4','client 5','client6'];
var hdrs = new Array(6);
hdrs[0] = []
hdrs[1] = ['','Headline 1','Headline 2','','','',''];//client1
hdrs[2] = ['','','','','','',''];//client2
hdrs[3] = ['','','','','','',''];;//client3
hdrs[4] = ['','','','','','',''];//client4
hdrs[5] = ['','','','','','',''];//client5
hdrs[6] = ['','','','','','',''];//client6
function writeHdr(hdr) {
var thisClient = client;
if (nn) {
var lyr = document.header.document
lyr.open()
lyr.write('<span class="headText">'+hdrs[thisClient][hdr]+'<\/span>')
lyr.close()
}
else if (ie) document.all['header'].innerHTML = hdrs[thisClient][hdr];
}
function init() {
var thisClient = client;
var thisLink = 'link0'+link;
var thisImage = img;
var thisHdr = hdr;
document.lgHead.src = 'images/head_s_'+clients[thisClient]+'.gif';
document.lgImage.src = 'images/port_bofa_lg'+thisImage+'.jpg';
eval('writeHdr('+thisHdr+')');
}
It appears in the HTML like this:
<div id="header" class="headText"></div>
|