Einen Zufälligen Sound abspielen und den Titel anzeigen lassen

Mit diesem Script kann man einen (Zufalls-Sound) abspielen und dem Besucher zeigen, welcher Gerade läuft.

Einbau: Füge einfach unten folgenden Code in deine Seite ein.

Bemerkungen: Lasse bitte den (c) Vermerk bestehen!

<!-- START SOUND
(c) by: Steven Varco
See: www.tech-island.de.cx for many more usefull Scripts
(Bitte diesen Vermerk stehen lassen!)
-->
<SCRIPT LANGUAGE="JavaScript">
<!--
song = new Array(10);
title = new Array(10);
song[0] ='everlong.mid'
song[1] ='niceshot.mid'
song[2] ='life.mid'
song[3] ='polly.mid'
song[4] ='fly.mid'
song[5] ='damnit.mid'
song[6] ='short.mid'
song[7] ='anarchy.mid'
song[8] ='mable.mid'
song[9] = 'sellout.mid'
song[10] = 'govt.mid'
 
title[0] = 'Everlong'
title[1] = 'Hey Man Nice Shot'
title[2] = 'Meaning Of Life'
title[3] = 'Polly'
title[4] = 'Fly'
title[5] = 'Damn It'
title[6] = "Short On Ideas"
title[7] = 'Anarchy in the UK'
title[8] = 'Mable'
title[9] = "Sellout"
title[10] = 'You are the Government'
 
index = Math.floor(Math.random() * song.length);document.write("<DL>n");
document.write("<EMBED SRC="+song[index]+" width=200 height=55 autostart=true loop=infinite BGCOLOR='#000000'");
document.write(' TEXT="#FFFFFF">');
document.write("<BR>");
document.write("Der Titel des Songs, den Du gerade hörst, ist: ");
document.write("<font size=4 color=red>");
document.write(title[index]);
document.write("</font>")
document.write("</DL>n");
// -->
</SCRIPT>
<!-- END SOUND -->

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert