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.

html -> embed scr

Empfohlene Antworten

Veröffentlicht

hallo!

ich habe folgende frage:

in einer webseite baue ich folgendes objekt ein:


<EMBED NAME="sound" SRC="test.mp3" 

HIDDEN="TRUE" AUTOSTART="FALSE" MASTERSOUND  

width="8" height="8">

im head habe ich folgende funktion:

<script language = "javascript">

<!--

	function titelladen(titel)

		if(!document.sound){

		          return


	document.sound.src= titel

	}				

-->

</script>

wenn ich die funktion aufrufe (mit einem knopf oder so)und z.b. bla.mp3 übergebe, soll er die quelle ändern. mit images geht es ja auch. aba der macht dat nicht! ich habe den code getestet, d.h. ich habe z.b. ein alert eingefügt, um zu sehen, ob das richtige übergeben wird. funzt...

jetzt die frage: muss ich irgendwie nen reload (document.sound.reload ?? ) oder sowas machen, damit der die änderung annimmt? oder wie kann ich das realisieren?

probier vielleicht mal id statt name und oder mach mal

if(document.sound)

alert("Yepp Objekt is da");

und überprüfe mal ob Du sound nur einmal vergeben hast sonst wäre es nämlich document.sound[0] ...

MfG Spoom

  • Autor

jo das geht alles. ich habe den code auch mal in


document.embeds["sound"].src= 

         document.player.titel.options[document.player.titel.selectedIndex].value


alert (document.embeds['sound'].src)

geändert. der zeigt auch immer die richtige source an...

aba dsa lied, das dann kommt, ist immer das erste.

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.