Thanks Dan (and everybody else who pointed me in the right direction) that did the trick!
-- Jillian > -----Original Message----- > From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] > Sent: July 10, 2003 10:06 AM > To: CF-Talk > Subject: RE: Javascript / Div's in NS 7 and Mozilla > > > Jillian, > > > I've got an unusual problem. > > > > I have a Javascript that rotates through a series of books > > (images/text w/links). It's very simple. It works in IE and NS > > 4.x... But it doesn't workin Mozilla / NS 7... nothing > appears on the > > screen. How can I modify this script/div so that it will > display in > > all browsers? > > The code doesn't comply w/the W3C standard--which is why it > won't work in Gecko-based browsers. Change the following code: > > > if (document.layers) { > > document.layers["myDiv"].document.open(); > > document.layers["myDiv"].document.write(rs); > > document.layers["myDiv"].document.close(); > > } else { > > document.all["myDiv"].innerHTML = rs; > > } > > } > > To: > > if (document.layers) { > document.layers["myDiv"].document.open(); > document.layers["myDiv"].document.write(rs); > document.layers["myDiv"].document.close(); > } else if (document.getElementById) { > document.getElementById("myDiv").innerHTML = rs; > } else { > document.all["myDiv"].innerHTML = rs; > } > } > > While I believe the innerHTML is actually in the W3C spec, it > should work with all the modern versions of the browsers out there. > > - Dan > ....................................... > : Name: Dan G. Switzer, II : > : E-mail: [EMAIL PROTECTED] : > : Blog: http://blog.pengoworks.com/ : > :.......................................: > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

