Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape frustrations ... :(

Status
Not open for further replies.

TeaAddictedGeek

Programmer
Apr 23, 1999
271
US
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.<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>


 
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>


 
Oh I give up. I post it one moment, it displays fine. Then it decides not to display correctly anymore. The thread is over at HTML/DHTML. Sorry for the inconvenience. :(
 
Didn't I just see you in DHTML/HTML? Anyway, check out my response there. Sometimes it's just a matter of messy coding. <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top