darksilence
Goto Top

Klick auf Grafik dann Sound abspielen

Also ich möchte eine Art "Hompage" machen auf der Homepage sollen ganz viele buttons 6x6(6 reihen und in jeder reihe 6 buttons) sein ,dass wenn man drauf klickt ein sound kommt den ich selber aufgenommen habe.

Hi ,

Also ich möchte eine Art "Hompage" machen auf der Homepage sollen ganz viele buttons 6x6
( 6 Reihen und in jeder Reihe 6 Buttons ) sein ,dass wenn man drauf Klickt ein Sound kommt den ich selber aufgenommen habe. (sound.mp3)
Nur das Problem jetzt wie lautet der Html , java oder eine andere code den ich dafür brauche?

Mfg DarkSilence

Ich habe die SUfU benutzt aber nichts gefunden fals ihr was habt bitte Link.

Content-Key: 44091

Url: https://administrator.de/contentid/44091

Printed on: April 23, 2024 at 22:04 o'clock

Member: fdisk
fdisk Nov 09, 2006 at 15:41:44 (UTC)
Goto Top
Hi,

dafür brauchst Du weder Java noch sonst was - das ist ein ganz simples HTML-Skript .

Der Code könnte so aussehen, wobei Du zw. die <td></td> jeweils
<a href="sound.mp3"><img src="deinbild.jpg"></a> einfügst (siehe Beispiel)

<html>
<body>
 <table >
<tr>
 <td> <a href="sound.mp3"><img src="deinbild.jpg"></a></td>  
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
</tr>
<tr>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
</tr>
<tr>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
</tr>
<tr>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
</tr>
<tr>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
</tr>
<tr>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
 <td> </td>
</tr>
</table>
</body>
</html>
Member: DarkSilence
DarkSilence Nov 09, 2006 at 16:02:03 (UTC)
Goto Top
Das Problem jetzt ist es ,das er wenn man auf das Bild klick das Lied herrunterladen möchte!(Ich benutze Firefox aber das gleiche ist auch bei Internet Explorer)


EDIT : Habt ihr keine idee???Wie man das abspielen lässt statt zu Downloaden?
bei Google hab ich das Problem genau andersrum gefunden.Aber das Hilft ja nix
Member: DarkSilence
DarkSilence Nov 09, 2006 at 20:25:41 (UTC)
Goto Top
hat keier i-eine idee??? wie man das mit dem dowload umgehen kann?
Member: Nippie
Nippie Nov 11, 2006 at 19:01:06 (UTC)
Goto Top
Na Kla habe ich eine Idee:

Erstmal das Grundgerüst: Eine Tabelle (6x6)... In jede Zelle kommt ein Iframe...Der einen Hyperlink enthält..... Wenn der Hyperlink ausgeführt wird, kommt die Mp3 File. Das machst du damit:
bgsound="bla.mp3"  
Ich mache dir mal die Index.htm, den Inhalt eines Iframes und die Seite die hinter dem Hyperlink steht.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
<title>Unbenanntes Dokument</title>
</head>
<body>
<iframe src="sound1.htm" height="100" width="16%"></iframe>  
<iframe src="sound2.htm" height="100" width="16%"></iframe>  
<iframe src="sound3.htm" height="100" width="16%"></iframe>  
<iframe src="sound4.htm" height="100" width="16%"></iframe>  
<iframe src="sound5.htm" height="100" width="16%"></iframe>  
<iframe src="sound6.htm" height="100" width="16%"></iframe>  


<iframe src="sound7.htm" height="100" width="16%"></iframe>  
<iframe src="sound8.htm" height="100" width="16%"></iframe>  
<iframe src="sound9.htm" height="100" width="16%"></iframe>  
<iframe src="sound10.htm" height="100" width="16%"></iframe>  
<iframe src="sound11.htm" height="100" width="16%"></iframe>  
<iframe src="sound12.htm" height="100" width="16%"></iframe>  


<iframe src="sound13.htm" height="100" width="16%"></iframe>  
<iframe src="sound14.htm" height="100" width="16%"></iframe>  
<iframe src="sound15.htm" height="100" width="16%"></iframe>  
<iframe src="sound16.htm" height="100" width="16%"></iframe>  
<iframe src="sound17.htm" height="100" width="16%"></iframe>  
<iframe src="sound18.htm" height="100" width="16%"></iframe>  


<iframe src="sound19.htm" height="100" width="16%"></iframe>  
<iframe src="sound20.htm" height="100" width="16%"></iframe>  
<iframe src="sound21.htm" height="100" width="16%"></iframe>  
<iframe src="sound22.htm" height="100" width="16%"></iframe>  
<iframe src="sound23.htm" height="100" width="16%"></iframe>  
<iframe src="sound24.htm" height="100" width="16%"></iframe>  


<iframe src="sound25.htm" height="100" width="16%"></iframe>  
<iframe src="sound26.htm" height="100" width="16%"></iframe>  
<iframe src="sound27.htm" height="100" width="16%"></iframe>  
<iframe src="sound28.htm" height="100" width="16%"></iframe>  
<iframe src="sound29.htm" height="100" width="16%"></iframe>  
<iframe src="sound30.htm" height="100" width="16%"></iframe>  


<iframe src="sound31.htm" height="100" width="16%"></iframe>  
<iframe src="sound32.htm" height="100" width="16%"></iframe>  
<iframe src="sound33.htm" height="100" width="16%"></iframe>  
<iframe src="sound34.htm" height="100" width="16%"></iframe>  
<iframe src="sound35.htm" height="100" width="16%"></iframe>  
<iframe src="sound36.htm" height="100" width="16%"></iframe>  
</body>
</html>

Und dann musst du all diese 36 datein anlegen.

So eine datei sieht dann so aus:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
<title>Unbenanntes Dokument</title>
</head>
<body>
<span class="Stil1"><a href="play_sound1.htm">Hier Klicken</a></span>  
</body>
</html>

Diese muss natürlich noch angepasst werden.

Dann die Play-Datei:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
<title>Unbenanntes Dokument</title>
</head>
<body>
<bgsound src="sound1.wav" loop="1">  
<a href="sound1.htm">Zur&uuml;ck  
</a>
</body>
</html>

Das ist natürlich unglaublich aufwendig.... Klappt aber. Außerdem nur mit html.

Mit Php würde es viel kürzer seinface-big-smile

Mfg Nippie
Member: DarkSilence
DarkSilence Nov 11, 2006 at 22:52:39 (UTC)
Goto Top
OK es klappt natürlich nur jetzt wo muss ich das bild einstellen?Ich will ja eine grafik wo man dann drauf klick und dann der sound kommt. gefummelt ,versucht geklappt hat sich erledigt xD

Warum erklärst du es mir nicht wie es mit php geht ?
Member: Nippie
Nippie Nov 12, 2006 at 11:08:33 (UTC)
Goto Top
Dann musst du den Iframe bearbeiten...

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
<title>Unbenanntes Dokument</title>
</head>
<body>
<a href="play_sound1.htm">  
<IMG SRC="grafik.jpg">  
</a>
</body>
</html>
Member: DarkSilence
DarkSilence Nov 12, 2006 at 11:36:32 (UTC)
Goto Top
Thx aber ich hatte es schon wer wissen will was ich da geamcht habe soll auf www.rmz.rm.funpic.de/jokersounds/ gehen xD
Viel Spass beim anhören

Mfg DarkSilence
Member: fdisk
fdisk Nov 12, 2006 at 14:17:12 (UTC)
Goto Top
Hm,


kann nix sehen - ausser einer Fehlermeldung .