firewalker... Geschrieben 10. August 2004 Geschrieben 10. August 2004 Warum funktioniert das in Mozilla, aber nicht im IE? - Ich stehe auf'm Schlauch! Gruß, Tim! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title> Freunde, Kollegen & Ich </title> <style type="text/css"> <!-- a:link { text-decoration:none; font-weight:bold; color:green; } a:visited { text-decoration:none; font-weight:bold; color:purple; } a:hover { text-decoration:none; font-weight:bold; color:green; } a:active { text-decoration:none; font-weight:bold; color:white; } h1 { text-decoration:none; font-weight:none; color:none; } p { text-decoration:none; font-weight:bold; color:white; font-family:courier; } --> </style> <script type="text/javascript"> <!-- var imgName = new Array( "pic/image1.jpg", "pic/image2.jpg", "pic/image3.jpg", "pic/image4.jpg", "pic/image5.jpg", "pic/image6.jpg", "pic/image7.jpg", "pic/image8.jpg"); var imgText = new Array( "Bla bla bla bla", "Bloe bloe bloe bloe", "Bli bli bli bli", "Bla bla bla blaasd", "Bloe bloe bloe bloesdad", "Bli bli bli bliada", "Bla bla bla blavcxc", "Bloe bloe bloe bloexcvxc"); var aktuell = 0; function Pic(Richtung) { aktuell = aktuell + Richtung; if (aktuell > imgName.length-1) aktuell = 0; else if (aktuell < 0) aktuell = imgName.length-1; window.document.images[1].src = imgName[aktuell]; document.getElementsByName("Text")[0].firstChild.nodeValue = imgText[aktuell]; } //--> </script> <body style="background-color: black"> <h1 align="center"> <img src="images/image16.jpg" border="0"></h1><br> <p align="center"><img src="pic/image1.jpg" alt="image"></p> <p name="Text">Blu blu blu blu</p> <table align="center" border="3" cellpadding="0" cellspacing="0" width="320"> <td align="center"><a href="javascript:Pic(-1)"> Zck </a></td> <td align="center"><a href="javascript:Pic(1)"> Vor </a></td> </tr> </table><br> <p align="center">Hab ein Bilderbuch gebastelt!<br> Leider gibt es noch keine Kommentare zu den Bildern,<br> kommt aber alles noch.</p> </body> </html>
geloescht_JesterDay Geschrieben 10. August 2004 Geschrieben 10. August 2004 Laut HTML Spezifikation ist name für <p> nicht zulässig. Ausnahmsweise hält sich der IE hier wohl sehr streng an den Standard document.getElementsByTagName("p")[1].firstChild.nodeValue = imgText[aktuell]; Damit gehts.
firewalker... Geschrieben 10. August 2004 Autor Geschrieben 10. August 2004 Oh mann.. was ein kram... da fällt mir doch nix mehr zu ein!
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren
Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde Dich hier an.
Jetzt anmelden