HTML - Embeding Multiple Sounds Files
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 Similar TutorialsI am using the following code to embed sound files and everything works fine but I would like for the sound files to begin downloading when "play" is hit and not when the web loads (automatically starting the download of all sound files). Thanks. <embed src="gtr.mp3" autostart="false" loop="false" width="300" height="42" controller="true" bgcolor="#F9000"></embed> 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 I hope I've posted this in the right place, apologies in advance if I haven't. I'm trying to post multiple XML files using a HTML form. The code I'm using is below and although I am able to select multiple files in Mozilla Firefox it is only ever successfully uploading one file. I need to be able to post 100s of XMLs in a single post, as well as receiving the responses for all uploaded files. I have no experience in this type of thing before, is someone able to assist me and am I even on the right track? Heeelp! <h2>Upload</h2> <form ENCTYPE="multipart/form-data" action="https://asp.test.com.au/ttms/sandbox/ws/external/public/client-profile-xml/multi/receiver" method="POST"> <input type="file" name="linkfile" multiple="multiple"> <br/> <input type="submit"> </form> Im not 100% sure if this belongs to the html section or php section. Im not pro in html coding , but what i have is multiple html files for a site, I would like to publish content on each file at the same time without having to edit each file one by one. Example: Lets say i have a news section on each page, i would like all pages to be updated automatically when news is publish on one page. How would i go about achieving this? ASP? or will PHP be needed for this function. i don't want to use CMS - Anyone understand where im coming from? Hi I need a program to mass edit almost 30,000 html files to remove a couple lines of html from each. Anyone have any suggestions? Thank you. Hey. I'm in need of a program that will go through hundreds of HTML files and delete/edit certain strings of text from the source code. For example: <tr> <td class="thread">Search Forums</td> </tr> <tr> Lets say that that is in the source code of every HTML file I have and I want to replace "Search Forums" with "Search Threads" in every single page without having to manually go through them all. Are there programs that will save me the trouble? Thanks in advance, ~Okin 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 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? 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". Two embeding questions, probably the same answer. 1. I would like to embed a youtube video over a portion of an image. Not sure how? 2. I would like to embed my newsletter signup box over an image, again not sure how? I think I would have to set the image as a background somehow and put the embed code over it? Any tags and order that I would put the code would be awesome! Thanks. Joe Hello, i have an online radio station that id like to embed into my website... the station is hosted and everything..just want a player that will play the station on demand for people... but i dont know how to do it. I have a m3u, but thats about it at this point any help would be greatly appreciated Hi i used to embed movies into my html, but the fact is that when i embed the movie, it aoutomaticaly make the movie to play with windows media player 9. i was wondering that how can i make it to play with jet audio, or windows media player 11 or real player. thanks for the helps Hi Guys, Bit of a n00b here, please be gentle. Using this code I display a couple of videos on a drop down box then stream the selected video below it. this works fine for IE but not FF Code: <select id="cancion" onchange="document.all.music.filename=document.all.cancion.value;" size="1" name="Music"> <option> Select Video </option> <option value="http://somevideo.wmv">Video1</option> <option value="http://somevideo2.wmv">video2</option> </select>a <br /> <p> <object height="300" width="350" id="music" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="AutoStart" value="1" /> <param name="Balance" value="0" /> <param name="DisplaySize" value="0" /> <param name="Filename" /> <param name="Mute" value="0" /> <param name="SelectionStart" value="-1" /> <param name="SelectionEnd" value="-1" /> <param name="ShowControls" value="-1" /> <param name="ShowAudioControls" value="-1" /> <param name="ShowDisplay" value="0" /> <param name="ShowPositionControls" value="-1" /> <param name="Volume" value="0" /> <param name="AudioStream" value="-1" /> <param name="AutoSize" value="0" /> <param name="AnimationAtStart" value="1" /> <param name="AllowScan" value="-1" /> <param name="AllowChangeDisplaySize" value="-1" /> <param name="AutoRewind" value="1" /> <param name="BaseURL" /> <param name="BufferingTime" value="5" /> <param name="CaptioningID" /> <param name="ClickToPlay" value="-1" /> <param name="CursorType" value="0" /> <param name="CurrentPosition" value="-1" /> <param name="CurrentMarker" value="0" /> <param name="DefaultFrame" /> <param name="DisplayBackColor" value="0" /> <param name="DisplayForeColor" value="16777215" /> <param name="DisplayMode" value="1" /> <param name="Enabled" value="-1" /> <param name="EnableContextMenu" value="-1" /> <param name="EnablePositionControls" value="-1" /> <param name="EnableFullScreenControls" value="0" /> <param name="EnableTracker" value="-1" /> <param name="InvokeURLs" value="-1" /> <param name="Language" value="-1" /> <param name="PlayCount" value="1" /> <param name="PreviewMode" value="1" /> <param name="Rate" value="1" /> <param name="SAMILang" /> <param name="SAMIStyle" /> <param name="SAMIFileName" /> <param name="SendOpenStateChangeEvents" value="-1" /> <param name="SendWarningEvents" value="-1" /> <param name="SendErrorEvents" value="-1" /> <param name="SendKeyboardEvents" value="0" /> <param name="SendMouseClickEvents" value="0" /> <param name="SendMouseMoveEvents" value="0" /> <param name="SendPlayStateChangeEvents" value="-1" /> <param name="ShowCaptioning" value="0" /> <param name="ShowGotoBar" value="0" /> <param name="ShowStatusBar" value="0" /> <param name="ShowTracker" value="-1" /> <param name="TransparentAtStart" value="0" /> <param name="VideoBorderWidth" value="5" /> <param name="VideoBorderColor" value="0" /> <param name="VideoBorder3D" value="1" /> <param name="WindowlessVideo" value="1" /> </object> </p> <div align="left"> </div> any ideas? cheers Kev Ok ive tried but i cant seem to get it working. Here is a screenshot of the problem i have: This is the code im using to embed the flv file: Code: <object width="425" height="344"> <param name="Bloopers" value="LINK TO SWF HERE"></param> <embed src="LINK TO SWF HERE" type="application/x-shockwave-flash" width="425" height="344"> </embed> </object> p.s. I have removed the links to the swf file. What am i doing wrong? Thanks a lot for any help. EDIT: Just to let you know, the positioning isn't a problem, I will be able to move it into the right position myself. I just want to get the video working before i move it into the right place Hi All, I am working on one of the website in which designer has used "Zapfino" font which is not system based. So i have to used this font. Can anyone pls help me to know how to embed the font in html? Thanks and Regards, Is it possible to embed a flash game (http://armorgames.com/play/5177/grayscale) into my site without having the add at the beginning? Just the logo and links of the creator! The code is: <embed src="http://www.coolbuddy.com/games/swf/Grayscale.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="600"></embed><br><a href="http://www.coolbuddy.com" target="_blank" title="Play Games">Play Games at coolbuddy</a> Hi, What is the html code to have a Youtube video on my website? Is it possible to embed just the Audio with a stop, pause, progress display? What is the html for this Hi there! I'm quite a newbie to webdesign and programing and right now I'm really stucked! I hope this is the right Forum to post my question! So I'm working at a html based website, and I'm trying to show my photos in a simpleviewer gallery which I want to embed in the html side (I work with tables). however I want this flash gallery to adjust the size depending on screen or window size... which I some how also managed: see he http://www.dgclick.com/portfolio/index.html (just the gallery not embedded) and now my problem...I'm trying to embed this gallery in the html, which I managed in general, just that the gallery is tiny and doesn't resize at all!! see here--> http://www.dgclick.com/portfolio/portfolio_en.html that's how I embedded it: <embed src="viewer.swf" width="100%" height="auto"!important height:"100%" bgcolor="#161317" name="viewer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" scale="exactfit"></embed> what's wrong with it!! Please help me!! Thanks Dani Hi all =) I'm using the following code: Code: <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1" showstatusbar="1" EnableContextMenu="false" autostart="true" width="230" height="240" transparentstart="1" loop="0" controller="true" src="http://www.bartend.com/ecourse/videos/bartendcom-margarita.wmv"> </embed> It makes people download WMP 11 to view the file. I want to be able to let it run in WMP 9 or 10. How can I fix this? Thank you =) Light and Love and Healing to you, -Patrick Arden McNally Howdy, I interning for a musician and part of my job is to make myspace bulletins. What I want to do is embed one of those little media players in my bulletins so the song plays when someone opens the bulletin up... the file is not on a website anywhere, it is on my computer in mp3 format (i believe) so here is my question(s) How do i get the mp3 in html format? and how do I embed a music player into a mysapce bulletin? ______________ notes: Through My Documents I've opened up the file in InternetExplorer in hopes that I could use that html address...... the media player DID show up in the Myspace bulletin, however, the music would not playback (when I hit the play button it just said "stopped." I've googled "embed media player in myspace" and other key words but i'm still not understanding nor am i finding the information i am looking for... _______________ I really want to learn how to this so any advice will be greatly appreciated! Cheers! feel free to IM me MSN: DJMi55ing@live.com AIM: (please ask) |