View Full Version : What the L are these?
zoobie
09-03-2002, 05:32 AM
I've been using WA's mouseover/onclick audio preloader forever. If you look at the included .gif file, you'll see these tiny squares for each sound file. Is this just a host error? Thanks :p
joh6nn
09-03-2002, 03:06 PM
dunno. code?
zoobie
09-03-2002, 07:21 PM
Maybe a hosting error?
Here's the code:
<script LANGUAGE="JavaScript"><!--
// Preload and play audio files with event handler (MouseOver sound)
// designed by JavaScript Archive, (c)1999
// Get more free javascripts at http://jsarchive.8m.com
var aySound = new Array();
// Below: source for sound files to be preloaded
aySound[0] = "sound1.wav";
aySound[1] = "sound2.wav";
aySound[2] = "sound3.wav";
// DO NOT edit below this line
document.write('<BGSOUND ID="auIEContainer">')
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=auPreload;
function auPreload() {
if (!ver4) return;
if (NS) auEmb = new Layer(0,window);
else {
Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<aySound.length;i++)
Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"
if (IE) auEmb.innerHTML = Str;
else {
auEmb.document.open();
auEmb.document.write(Str);
auEmb.document.close();
}
auCon = IE? document.all.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? aySound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }
//-->
</script>
<INPUT TYPE="BUTTON" VALUE="Fart" onClick="playSound(0)">
<INPUT TYPE="BUTTON" VALUE="Demon" onClick="playSound(1)">
joh6nn
09-03-2002, 07:30 PM
dunno. that looks alright to me. try right clicking on the things, find out what their properties are, etc.
zoobie
09-03-2002, 09:19 PM
You can't click on them or anything. They show the default color. I tried changing the color and background-color of the buttons...but they're still there...
joh6nn
09-04-2002, 01:39 AM
i meant, right click them, and then select "Properties" from the context menu, to see what's up.
i don't think it's a hosting error, but maybe i'm wrong.
zoobie
09-04-2002, 02:14 AM
You can't click on them...left or right. It's the host. I used them for testing PHP 4.22 and thought I'd give them a shot. Now, standard html doesn't display correctly, small audio consoles don't display, wav's don't play, the PHP is misconfigured, the ftp doesn't work, and no support = history.
joh6nn
09-04-2002, 02:28 AM
i have only one way to express how that makes me feel:
eeewwwwwwwwww...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.