Posted
_–_:_ _
————————————————————————
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′,’client5′,’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
____document.lgImage.src = ‘images/port_bofa_lg’+thisImage+’.jpg’;
}
It appears in the HTML like this:
<div id=”header” class=”headText”></div>