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.

mouseover mit Grafiken

Empfohlene Antworten

Hi,

ich bin gerade dabei ein Menu mit Grafiken erstellen. Bei Mouseover soll sich die Grafik ändern. Wie funktioniert das? Mit Text hab ich es hinbekommen, aber mit einer Grafik hab ich das nicht geschafft. Kann mir jemand sagen, wie das geht? :confused:

Danke & Gruß Snopsy

wozu dw für so ein simplen spass. :)


<script>

 function dom(pic,id){

  document.getElementById(id).setAttribute('src',pic);

 }

</script>

<img src="pic.gif" id="p1" />

<a href="#" onMouseOver="dom('neu.gif','p1')" onMouseOut="dom('pic.gif','p1')">wechsel</a>

auch für alte browser

<script>

 over = new Image();

 over.src = 'neu.gif';

 old = new Image();

 old.src = 'pic.gif';

 function dom(pic,id){

  document.images[id].src = pic.src;

 }

</script>

<img src="pic.gif" id="p1" />

<a href="#" onMouseOver="old('neu.gif',over)" onMouseOut="old('pic.gif',old)">wechsel</a>

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.