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.

Dynamisches HTML - Link ändern

Empfohlene Antworten

Hallo Leute!

Gibt es eine Möglichkeit, mit Javascript eine Link-Adresse dynamisch zu ändern? Ich habe einen Link

<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Zitat:</font><HR>

<a href="1.jpg"> <img src="1.jpg" name=bild> </a>

Das hier habe ich gerade mal zusammengestrickt und mit IE5.5, Netscape 4.6, Netscape 6 und Opera 5.11 getestet. Es gab keine Probleme damit.

<script language="JavaScript">

Grafik1 = new Image(); Grafik1.src = "1.jpg";

Grafik2 = new Image(); Grafik2.src = "2.jpg";

function ShowImage()

{

window.open(window.document.images[0].src);

if (window.document.images[0].src==Grafik1.src)

{window.document.images[0].src=Grafik2.src;}

else

{window.document.images[0].src=Grafik1.src;}

}

</script>

<a href="Javascript: ShowImage();"><img src="1.jpg"></a>

OK, hat prima geklappt, danke!!

Thread kann von mir aus geschlossen werden :D

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.