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.

Bild in anderem <div>-Container öffnen

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte eine Bildergalerie erstellen und dabei auf Frames verzichten.

Stattdessen habe ich zwei <div>-Container. Im ersten befinden sich die Thumpnails. Beim Klick auf diese Grafiken soll sich die Großansicht im zweiten <div>-Container öffnen.

Ich habe aber nicht die leiseste Ahnung, wie ich dieses Problem angehen soll.

Über Anregungen und/oder Codeschnipsel wäre ich euch sehr dankbar.


<div><!-- liste mit thumbnails -->
<!-- bespiellink -->
<a href="javascript:changeImg('bilder/javaGross.gif')"><img src="bilder/javaKlein.gif" /></a>
</div>
<div><img name="gross" src="leer.gif" /></div>

<script type="text/javascript">
function changeImg(dest) {
var neu = new Image();
neu.src=dest;

var alt = document.images['gross'];
alt.src = neu.src;
}
</script>
[/PHP]

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.