Hallöchen,
Ich habe ein Srcript gemacht das beim wechseln eines Webcambildes ein Bild in meine Homepage einfügt:
$SCHWARZ= 0;
$WEISS = 16777215;
$output = '';
$input_bild = ImageCreateFromPNG('http://webcam/1.png');
$GeV = imagecolorat ($input_bild , 637, 17 );
else if ($GeV == $WEISS && $A == $SCHWARZ && $B == $WEISS && $C == $SCHWARZ && $D == $SCHWARZ && $E == $WEISS && $F == $WEISS && $G == $SCHWARZ)
{
$bild1 = 'test/regenbogen.jpg'; }
$output = '31';
?>
<div id="content_to_load2">
<div id="output_check" style="display:none;"><?php print($output);?></div>
<img id="status_bild2" src="<?php print($bild1);?>" border="0">
</div>
Nun wollte ich, dass wenn das Regenbogenbild erscheint auch eine wav Datei abgespielt wird.
Nur hab ich jetzt keine Idee wie ich das machen könnte. Wie und wo häng ich da die wav.datei dran?
Ich habe ein Srcript gemacht das beim wechseln eines Webcambildes ein Bild in meine Homepage einfügt:
$SCHWARZ= 0;
$WEISS = 16777215;
$output = '';
$input_bild = ImageCreateFromPNG('http://webcam/1.png');
$GeV = imagecolorat ($input_bild , 637, 17 );
else if ($GeV == $WEISS && $A == $SCHWARZ && $B == $WEISS && $C == $SCHWARZ && $D == $SCHWARZ && $E == $WEISS && $F == $WEISS && $G == $SCHWARZ)
{
$bild1 = 'test/regenbogen.jpg'; }
$output = '31';
?>
<div id="content_to_load2">
<div id="output_check" style="display:none;"><?php print($output);?></div>
<img id="status_bild2" src="<?php print($bild1);?>" border="0">
</div>
Nun wollte ich, dass wenn das Regenbogenbild erscheint auch eine wav Datei abgespielt wird.
Nur hab ich jetzt keine Idee wie ich das machen könnte. Wie und wo häng ich da die wav.datei dran?
Zuletzt bearbeitet: