HTML - Sounds, Mute'n Music
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 Similar TutorialsCan anyone offer advice as to how do I go about uploading my music to my music webiste. www.discomixdownload.com I am currently running the "easybe 1-2-3 music shop software. They e-mailed me ftp up directories, but I don't know how to go about the whole music file upload process.?. I website is hosted by a www.fastdomain.com Truly D.J.mixhypnatist. 06/21/2008 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? 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 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 hiya, im new to this,and i jus wanted to know how can you put on music on your webpage beside goin through midi and wav???? plz can i have some help thanx in advance hi guys.. hope sm1 gonna sort out my problem i am just a beginner to html script,and my problem is that i smhow manage to get script to include media player into my webpage but i am not able to add song file into in it for e.g if i want to add akon.mp3 or any other song i am not able to do it hope sm will help me thanx in advance script is here Code: <!-- Multi WM Player at www.rainbow.arch.scriptmania.com/scripts/music/ --> <OBJECT ID="music" height=70 width=230 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=,1,52,701" standby="Loading Microsoft Windows Media Player components..." <!-- Change to value=0 to hide status --> <param name="ShowStatusBar" value="1"> <param name="AudioStream" value="-1"> <param name="AutoSize" value="0"> <param name="AutoStart" value="-1"> <param name="AnimationAtStart" value="-1"> <param name="AllowScan" value="-1"> <param name="AllowChangeDisplaySize" value="-1"> <param name="AutoRewind" value="-1"> <param name="Balance" value="0"> <param name="BaseURL" value> <param name="BufferingTime" value="5"> <param name="CaptioningID" value> <param name="ClickToPlay" value="-1"> <param name="CursorType" value="0"> <param name="CurrentPosition" value="-1"> <param name="CurrentMarker" value="0"> <param name="DefaultFrame" value> <param name="DisplayBackColor" value="0"> <param name="DisplayForeColor" value="16777215"> <param name="DisplayMode" value="0"> <param name="DisplaySize" value="0"> <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="Filename" value> <param name="InvokeURLs" value="-1"> <param name="Language" value="-1"> <param name="Mute" value="0"> <param name="PlayCount" value="1"> <param name="PreviewMode" value="0"> <param name="Rate" value="1"> <param name="SAMILang" value> <param name="SAMIStyle" value> <param name="SAMIFileName" value> <param name="SelectionStart" value="-1"> <param name="SelectionEnd" value="-1"> <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="ShowControls" value="-1"> <param name="ShowAudioControls" value="-1"> <param name="ShowDisplay" value="0"> <param name="ShowGotoBar" value="0"> <param name="ShowPositionControls" value="-1"> <param name="ShowTracker" value="-1"> <param name="TransparentAtStart" value="-1"> <param name="VideoBorderWidth" value="0"> <param name="VideoBorderColor" value="0"> <param name="VideoBorder3D" value="0"> <param name="Volume" value="0"> <param name="WindowlessVideo" value="0"> <EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="http://myserver/mypath/myfile.asf" name="MediaPlayer" height=70 width=230> </EMBED> </OBJECT> </div> <p> <BR> <INPUT id=song1 onclick=document.all.music.filename=document.all.song1.value; TYPE="RADIO" NAME="Music" VALUE="http://www.uploadhut.com/id153745/Crazy Frog Remixx ( WARNING VERY FUNNY!!).WAV"> Song 1</p> <p> <INPUT id=song2 onclick=document.all.music.filename=document.all.song2.value; TYPE="RADIO" NAME="Music" VALUE="http://servername/path/to/media.file"> Song 2</p> <p> <INPUT id=song3 onclick=document.all.music.filename=document.all.song3.value; TYPE="RADIO" NAME="Music" VALUE="http://servername/path/to/media.file"> Song 3</p> if i choose song 1 it should play akon.mp3 and so on...... plz help me I'm looking for a small, simple, and customizable code for a music player. I want one where I can just change the code to point to my music. Something like you see on kelliepickler.com Anybody have a link? Thanks in advance! my site i'm working on i want to put in background music which i know how to do. one thing i'm not sure of is can you make the background music carry over form page to page without the song restarting every page load snakes.richscomputers.com is the site [font="Times New Roman"][size="2"] I have built a website for a high school class Class of 52 click here A class member asked me this question I do have another question for you,,,,,,,,,,, If I were to download some old songs and put them on a CD, would you be able to incorporate it into our whole site ? Would it stop when changing pages, like going from the 40th. reunion page to the, Cathe Watson page ? In other words, I would like to have continuous music, while viewing the whole website. How can I do this ...can it be done at all Thanks Walt I have a specific page on my site I want to have background music (and no, I don't care how horrible the idea sounds, I've already heard the arguments against it, and it doesn't bother me). I know the html code (well the basics of it as): HTML Code: <embed src="yourfilename.mp3" autostart="true" hidden="true" loop="true" width="0" height="0"> </embed> <noembed> <bgsound src="yourfilename.mp3" loop="infinite" > </noembed> My question is, is there something Ican to add in order to change the volume of the music? hello please help me how can i put background music .mp3 file in my html website..thanks in advance hoping for your positive responds i was wondering is it possible to download a wav file to the temporary internet files without it showing any download screen or allow it to download screen Hi How can I use e my music files/PC as source in my html code and play it on a social social networking site, what is the best way to do it? I'm not asking for any code but I'm a little confused, I mean, is there any way to use my PC as source or I must upload my files and make a playlist or just upload them on a website and use : <embed src="URI " /> I know Google is my friend but I didn't find anything about redirecting the site to my PC, so my PC can serve the social networking site. Thanks Hi, I am a newbie to HTML. I am making this web page. I wan to place a link where people can click on it and listen to my music. So in the <body> I type in this : <a href="music/music_1.mp3" target="_blank">Song 1.</a>. It does play the music when the link was click, but it pops up a blank page with on the QT control bar in the middle. How can I make it not to pop up another page? or if it has to pop up something perhaps just a QT player rather the blank page. Thanks in advance. MacPC Hey everyone i need to know what is the code for video and music to put on my website. I had music on there before but now that i have firefox, it keeps saying download additional plugins, and i have them all. When i click to search for additional plugins, it says,, "no plugins found" Please help , thanks Hi... Is it possible to have music play when a visitor clicks on a light box image? And then off when closed.... Thanks how do you get music to repeat itself over and over. and to auto play? here is the code <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="13" height="13" allowNetworking="internal"> <param name="wmode" value="transparent"> <param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="resourceID=97664201&flp=false" /> <param name="movie" value="http://static.last.fm/webclient/inline/1/inlinePlayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed wmode="transparent" src="http://static.last.fm/webclient/inline/1/inlinePlayer.swf" quality="high" FlashVars="resourceID=97664201&flp=false" bgcolor="#ffffff" width="13" height="13" name="inlinePlayer" allowNetworking="internal" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <a href="/music/Linkin+Park"></a><a href="/music/Linkin+Park//Wake"></a> problem is i dont know how to make it repeat and i dont know how to make it autoplay i would be very gratefull for any help given Hey there. This is my website which the music that i inserted in cannot be played with IE and Firefox.However where i created the website in my computer (that is stored in my Memory Hard) the music can be loaded by Internet Explorer (after allowing Block Content bar), but cannot be loaded by Firefox. is the problem from the HTML code??? i used this code as u can see in my website... <embed src="music/black cats.mp3"></embed> have also tried this <embed src="music/black cats.mp3" />and again failed on the net. Hi, I am designing a website, I know HTML, and CSS languages. I want my website to play backround music when someone is browsing my site. I know the HTML code that allows the designer (me) to play a backround .wav audio BUT it does not quite do what I need it to do what I am looking for is a code that allows me to play a .mp3 in the backround AND I am having an incredibly difficult time figuring out how to prevent the song from starting over when a person on my site clicks another link. Simply put I want a .mp3 to be playing in the backround of my website no matter where the user browses on my website and most importantly I need to have the backround .mp3 to play conintousely like I stated earlier, I don't want it to start playing from the begining when a user clicks on a link on my site. I am pretty sure that I am getting into Java here, unfortunatly for me, I am only NOW begining to learn Java and can't write the code for what I need. If anybody reading this knows a code, or CAN write the code for what I need, PLEASE post it on this thread!! Thanks in advance, I really hope I will finde that code. |