![]() |
HTML, Java, CSS help needed
I'm trying to create a soundboard like so and am trying to do it without flash.
I'm hitting a wall with the JavaScript. You can see by the code below that I've gotten some test images to preform rollover effects just fine; HTML Code:
Code:
/* stylesheet.css - a simple style sheet */JavaScript Code:
<script>Help/ examples would be much appreciated. EDIT: Edited per Fifthfiend's advice. Will post with results after my next attempt. |
I think you want sound.wav, not sound, in your onClick action.
EDIT No wait sorry I think you want sound1, it's supposed to match the name from your embed. |
Hm. It is arranged like so...
Code:
<head>And yes my filepath is correct and yes I am actually using a file named 'sound.wav' that makes for reals noise. I'm using IE7 if that helps. |
Huh. It apparently works fine in Firefox / IE8 / Chrome so IDK. Does that link work for you?
EDIT: Does this? Maybe the problem isn't the javascript so much as whatever plugin you have/don't have installed? |
FFFFFFFFFFFFFFFFFuuuu...
Yeah that'd be it but I am checking it on another computer. Unfortunatly the fact that the OTHER computer doesn't have the right plugin means that all the computers that will be using it don't have it either. |
Do you have quicktime installed? That's what mine uses to play 'em.
But yeah if this is some sort of serious project or w/ev you probably shouldn't count on people having whatever dumb plugin. Which I guess is why every media site uses Flash, it's the dumb plugin that everybody has! |
Yeah and basically any way to make this work that I have researched needs the plugin to play it right off the page... or else there is some insane magic way to do it in CSS.
Thanks for the help though! At least now I can stop wasting my time with USELESS JAVASCRIPT! GAH! |
I guess if you wanna stick to doing it in java/html could figure out how to set it up to detect whether people have X plugin and if they don't be like "HEY YOU DON'T HAVE X PLUGIN YOU GOTTA GO GET DAT OR THIS SITE WON'T DO SHIT"
|
Here's a sort of weird thing. Off your site, it works. But if I try to play it locally out of just 'My Documents' or whatever, it brings up the Active-X error and then won't play at all. Could it have to do with the file types I'm using? It's just a .wav I found from the OS so it should be a thang...
|
Quote:
EDIT "My Documents" so lol, yeah. I bet that's what's fucking it up. |
| All times are GMT -5. The time now is 03:33 AM. |
Powered by: vBulletin Version 3.8.5
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.