HTML - Can You Play Sounds Without Plugins
I'm using mozilla and seamonkey and for some reason sounds need a apple quicktime
plugin and I was wondering if there is any way to add a sound to an html file that seamonkey and mozilla could play without any plugins? Similar TutorialsHi, I have an album which has 5 to 6 audio files(wma). I used checkboxes to list the audio files. I want to select one or more of the audio files by ticking in checkbox and play those selected using a button. How can I do that using html? I see that many music sites use this functionality, but not sure how to code this using html? Can someone help? Note: I have already hosted the audio files and have the web url for all the wma files. Hi, im making a website for my tafe project. And so far i have made a home page with a table that has links to other sections of the site. Now, i have music that plays when you open the site, however when you click on the links to go to the other parts of the website the music starts again for each page and it then becomes very irritating. What I want to try and do, is get the music to continously play while you click on the other parts of the site so it doesnt stop from the first time you enter. Plus does anyone know how to make a mute icon, so for example at the top right hand of the page you can click the little icon to mute the background music throughout the site. Thanks for you help Is it possible to simply add the word "Play" to an html web page, which, when selected, would play an audio file stored in my web page directory? If possible, can you provide the code? i'm guessing the web visitor would simply need audio player software on his/her computer? Which is on most if not all computers today. Correct? thanks. This might sound pretty lame and stupid for you guys, but I'm a total beginner here and have a deadline that's coming in fast. There's no time for tutorials and so on so here goes: I've implemented a simple search field in my companies website with this: Code: <form name="form" action="http://www.idlena.lt/?section=naujienos&sub=naujienos4&lang=lt" method="get"> <input type="text" name="section=naujienos&sub=naujienos4&lang=lt&q" </> <input type="submit" name="Submit" value="Rasti" /> </form> Quite short and simple. Right? Wrong... the second link in the code should redirect the inputted text (in the search field) to the actual php script that handles the search with my database. The problem is - that link should redirect to Code: http://www.idlena.lt/?section=naujienos&sub=naujienos4&lang=lt&q=&Submit=Rasti Instead it redirects me in browser to Code: http://www.idlena.lt/?section%3Dnaujienos%26sub%3Dnaujienos4%26lang%3Dlt%26q=&Submit=Rasti and it breakes the url this way. I've read that sometimes ampersand has to be written with & in the code, I've done that. Doesn't make a difference. And what is even more strange - why doesn't the equal (=) sign show up as it should? This is just too frustrating. As a total beginner I understand that the explanation or the fix could be very simple but I just can't figure this out. Maybe there's an error in my code? Maybe I'm typing the url wrong? The main question remains - why don't ampersands and "=" signs show up as they should? Tried using the & , &amp; , %26 in the code but nothing helped. Firefox 3.0.5 and IE 8 show up a broken link with "&" shown as "%26" and "=" with "%3D". Heys guys, I'm trying to build a website and I'm trying to embed multiple sound files into one page. I think there will probably be about 5 files. I've actually tried this but when the page loads only 2 or 3 of the 5 files load. I've tried putting them on one or two at a time and it works that way, but not all at the same time. Also, when the page loads I get 5 popup ActiveX boxes to click on...is there anyway to maybe only get 1? Would really appreciate any help!!! Jeff Terrell Hi, After messing around with my script so many time i cant get it to work and i am not sure if i messed up something along the way. Basically what i want to do is have a table that highlights to one color when mouse is on the table and changes back to the original color onmouseout. In addition, having the table produce a sound when i put my mouse on it. So when i put the mouse on the table it should change color and play sound. Then when i click on the link on the table it should make a different sound and take me to the page. I am lost now and i am having a hard time figuring out or finding a simple code that could work. Here is my code. Changing colors on the table works but the sound effects within the same code is giving me trouble. So i just deleted any code i put and left it the way i had it before i started messing with it. sound files are in the my root folder. <Html> <Head> <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] = "Mouse Click 1.wav"; aySound[1] = "wood-cracking-1.mp3"; // 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> </head> <body> <td width="131" id="side1" onclick="playSound(0)" onmouseover="this.style.background='#9CF';this.sty le.cursor='pointer'" onmouseout="this.style.background='white';">{In this part was were i had the other mouse over affect to play sound (1) but didnt work} <a href="www.mypage.html">Cats</a></td> </body> </html> Thanks in advance Not sure where to start with this one so posting a general question here for direction. My website This a weather site / beach cam. I generate timelapses at the top of each hour and would like the snapshot / play button in the right column to be a direct download link to the *LATEST* timelapse movie. Right now I'm just linking to the timelapse page. I'm guessing there is some math involved. Possibly something other than html. I still have my fortran book from college but not sure there are any compilers left. Where should I look next? Thanks. how would I get a 3gp movie to play on my web site. it was taken off my camera phone. TIA I used code below to paly mp3 file but none of them working. Why? < A HREF = "MYMP3.MP3".....> OR, <EMBED SRC= "MYMP3.MP3" ...> Hi this won't play in Internet Explorer on a pc... It's a QT movie I am assuming this is why, but what other format can I use that will work on both Mac and PC? http://www.curiousclothing.com/test/qt.htm Can some one help me with or direct me to some HTML code that I can use to do one of the following. A. After a visitor of my website clicks on some text, a box appears below the text that will play an embedded Youtube video (on autoplay). B. After a visitor of my website clicks on some text, an video that wasn't on autoplay previously begins to play. Note that I want the user to click on some text, not flash. Thank you. Hi: I wish to have set of buttons each as <td> elements in a Table. Each of these 'td' buttons should be able to play an embedded .swf flash movie. I have the code for each of the videos I wish to have 'buttonable', and have tested out that the video plays. Question: How do I set up the 'onclick' code of each of the buttons to start playing the associated video ?? Thanks ! -Mel Smith hi this is new user. i have one query that i want to play a sound(eg.mid) in background when i opne my html code. so anybody can tell me how to do that in detail. with littel code too. thnks in advance i am waiting for reply. Hello, I'm working on a video website for someone and they want to add a pop-up that opens up when a user clicks the play button on the video. The video will play and the pop-up will load. Is there a technical term for this? What's the easiest way to do it? Any documentation anywhere? I couldn't find much on this, probably because I'm not using the right term to find it.. Anyway, any help would be appreciated. Thanks! Hi... Is it possible to have music play when a visitor clicks on a light box image? And then off when closed.... Thanks When I put in my code, it works just fine on my Mac in Safari or Firefox. However, when I test it on a PC in Explorer 7 or 8 it starts playing automatically. This is what my code looks like: Code: <audio controls="controls"> <source src="/media/GOAL.wav" type="audio/wav" autostart="false"/> <embed height="100px" width="200px" src="/media/GOAL.wav" /> </audio> The "autostart" code I put in apparently is wrong. Is there a way to fix this so it does not autostart in Explorer and any other browers? Thx. How to play sound file right away by clicking withoud download file first? How to play an audio file in HTML? _______________ I used code below to play mp3. Explorer can not play mp3 but mozilla can. What is problem? < A HREF = "MYMP3.MP3".....> OR, <EMBED SRC= "MYMP3.MP3" ...> I have placed the code as below <object> <embed src="videos/kyaw.avi" width="380" height="265" autoplay="False"></embed> </object> in using visual studio 2005. video not working or playing on my page. But when i use the notepad for the program it was working. It is quite strange to me and I just novice(started html). pls any advice or coding ,.///... help me that is the web site i doing http://mayrum.co.uk/Myvideo.aspx pleaseeeeeeeeeeeeeee |