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.

Bildwechsel mit JavaScript funktioniert nicht

Empfohlene Antworten

Veröffentlicht

Hi Programmers!

Hab folgendes Problem:

In einer Tabellenzelle hab ich ein Bild (jpg) als Link erzeugt. Beim überfahren mit der Maus soll ein anderes Bild widergegeben werden. Dies möchte ich mit JavaScript lösen.

Das 1. Bild wird dargestellt, wenn ich mit der Maus darüberfahre, verschwindet es und es erscheint ein weißes Kästchen mit einem roten Kreuz.

Die Pfade der Bilder stimmen. Hab Sie sogar in den selben Ordner kopiert. ohne Erfolg.

So ist es bisher:

Zugriff auf die externe JS – Datei im <head>

<script language="JavaScript" src="Bildwechsel.js" type="text/javascript">

</script>

Link in der Tabellenzelle:

<td><A HREF="http://www.XXX.de">

<img src="C:\XXX\xx\001.jpg" NAME="grafik" onMouseover="over()" onMouseout="out()" border=0></a></td>

JavaScript – Funktion:

function over()

{

if (document.images)

document.grafik.src = "C:\XXX\xx\002.jpg"

}

function out()

{

if (document.images)

document.grafik.src = "C:\XXX\xx\001.jpg"

}

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.