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.

Hilfe mit JAVA

Empfohlene Antworten

Hallo,

ich weiß nicht mehr weiter.

Ich hoffe das mir einer helfen kann.

Ich habe ein Formular mit 3 radio Button:

<input type="radio" name="karte_id" value="K1">

<input type="radio" name="karte_id" value="K2">

<input type="radio" name="karte_id" value="K3">

Wenn ich auf einem von diesen Klicke, moechte ich in

<img border="1" src="images/xxxxx.jpg" width="60" height="60">

ein Bestimmtes Bild anzeigen lassen:

xxxxx= k1.jpg || k2.jpg || k3.jpg

Ich weiß nciht, wie ich das hinbekommen sollte.

Kann mir einer helfen ????

Du kannst das mit JavaScript machen, indem du vorher deinem Bild einen Namen gibst (z.B. "name='myimg'") und beim onclick auf die Radio Buttons die URL zum Bild änderst, also ungefähr so (ungetestet):


<img border="1" src="images/xxxxx.jpg" width="60" height="60" name="myimage">

[...]

<input type="radio" name="karte_id" value="K1" onclick="chgImg('k1');">

<input type="radio" name="karte_id" value="K2" onclick="chgImg('k2');">

<input type="radio" name="karte_id" value="K3" onclick="chgImg('k3');">

[...]

<script type="text/javascript">

   function chgImg (name) {

      document.myimage.src="images/" + name + ".jpg";

   }

</script>

Ein anderes Beispiel findest du auch bei SelfHTML.

Besten dank für die Hilfe, dies hat mir sehr geholfen.

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.