TeaAddictedGeek
Programmer
I'm trying to create a bit of code that will rotate some graphics and text underneath to go with it. It works BEAUTIFULLY in IE, I couldn't be prouder. In Netscape, the image rotation works, and the text just sits there and thumbs its nose at me.<br>
<br>
Worse yet, the Netscape browser appears to be having an identity crisis, and detecting the browser through the standard code isn't working, either.<br>
<br>
Please help! My code is included below. It's a combination of Javascript and DHTML, hence why I'm here, pleading and moaning for someone to help before I destroy all copies of Netscape in the known universe....<br>
<br>
<br>
function rotate() {<br>
<br>
browsername=navigator.appName;<br>
document.picform.slideshow.src = imgs[n];<br>
<br>
<br>
if (browsername=="Netscape" <br>
document.layers["footer"].document.write(footers[n]);<br>
<br>
else<br>
footer.innerHTML = footers[n];<br>
<br>
<br>
(n == (imgs.length - 1)) ? n = 0 : n++;<br>
window.setTimeout("rotate()", timedelay);<br>
}<br>
window.onload = rotate;<br>
// End --><br>
</script><br>
<br>
<br>
<center><br>
<form name=picform><br>
<img name=slideshow src="../images/flower.gif"><br><br>
<br>
<script><br>
browsername=navigator.appName;<br>
if (browsername=="Netscape" <br>
<br>
document.write('<layer id="footer">');<br>
else<br>
document.write('<p id ="footer">');<br>
<br>
</script><br>
A flower!<br>
<script><br>
browsername=navigator.appName;<br>
if (browsername=="Netscape" <br>
document.write('</layer>');<br>
else<br>
document.write('</p>');<br>
<br>
</script><br>
</form><br>
<br>
<br>
<br>
Worse yet, the Netscape browser appears to be having an identity crisis, and detecting the browser through the standard code isn't working, either.<br>
<br>
Please help! My code is included below. It's a combination of Javascript and DHTML, hence why I'm here, pleading and moaning for someone to help before I destroy all copies of Netscape in the known universe....<br>
<br>
<br>
function rotate() {<br>
<br>
browsername=navigator.appName;<br>
document.picform.slideshow.src = imgs[n];<br>
<br>
<br>
if (browsername=="Netscape" <br>
document.layers["footer"].document.write(footers[n]);<br>
<br>
else<br>
footer.innerHTML = footers[n];<br>
<br>
<br>
(n == (imgs.length - 1)) ? n = 0 : n++;<br>
window.setTimeout("rotate()", timedelay);<br>
}<br>
window.onload = rotate;<br>
// End --><br>
</script><br>
<br>
<br>
<center><br>
<form name=picform><br>
<img name=slideshow src="../images/flower.gif"><br><br>
<br>
<script><br>
browsername=navigator.appName;<br>
if (browsername=="Netscape" <br>
<br>
document.write('<layer id="footer">');<br>
else<br>
document.write('<p id ="footer">');<br>
<br>
</script><br>
A flower!<br>
<script><br>
browsername=navigator.appName;<br>
if (browsername=="Netscape" <br>
document.write('</layer>');<br>
else<br>
document.write('</p>');<br>
<br>
</script><br>
</form><br>
<br>
<br>