Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Bilderbuch

Empfohlene Antworten

Veröffentlicht

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>

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.

Oh mann.. was ein kram... da fällt mir doch nix mehr zu ein!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.