Click to See Complete Forum and Search --> : Help?


manutdtom
12-14-2005, 10:33 AM
I want to put the following WAV file onto the backround of my site:

http://www.badongo.com/file.php?file=Band+Aid__2005-12-14_do+they+know+its+chr.wav

I have got the following code from a site (WITH THEIR EXAMPLES!) - where would i put the file extensiton?? (the code above)


<SCRIPT TYPE="text/javascript">
<!--
var filename="hazy_shade_of_winter.mid";
if (navigator.appName == "Microsoft Internet Explorer")
document.writeln ('<BGSOUND SRC="' + filename + '">');
else if (navigator.appName == "Netscape")
document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
// -->
</SCRIPT>
<NOSCRIPT>
<BGSOUND SRC="hazy_shade_of_winter.mid">
</NOSCRIPT>

I am a beginner at codes etc... and i dont relly understand much! If possible, would someone edit the code above and put the file extension and call the WAV sound ' Band Aid ' PLEASE!!

Tom. :)

FromU2ME
12-14-2005, 10:57 AM
Try this:

<SCRIPT TYPE="text/javascript">
<!--
var filename="http://www.badongo.com/file.php?file=Band+Aid__2005-12-14_do+they+know+its+chr.wav";
if (navigator.appName == "Microsoft Internet Explorer")
document.writeln ('<BGSOUND SRC="' + filename + '">');
else if (navigator.appName == "Netscape")
document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
// -->
</SCRIPT>
<NOSCRIPT>
<BGSOUND SRC="http://www.badongo.com/file.php?file=Band+Aid__2005-12-14_do+they+know+its+chr.wav">
</NOSCRIPT>To be able to call the WAV-file 'Band Aid' you'll have to save the file from the URL you gave and rename it to Band Aid, then you can write i.e. 'Band Air.wav' instead of the long URL (marked in green).

manutdtom
12-14-2005, 11:07 AM
I am not hearing any sounds or anything. Not even a window (windows media)

Tom.

FromU2ME
12-14-2005, 11:48 AM
At first I didn't visit the site, but when I did I realized that the URL isn't the file itself - therefor download the WAV-file and run it directly from your server.

Note: The URL you provided was a HTML (made through PHP) file - in other words not the WAV file.