I was wondering if their was a way to put a music file onto a page but keep it out of site for viewers. Also i wanted the music clip to repeat itself. If you can help me please let me know. Thanks!
Music Support
| Kamu8recon wrote: |
| I was wondering if their was a way to put a music file onto a page but keep it out of site for viewers. Also i wanted the music clip to repeat itself. If you can help me please let me know. Thanks! |
| Code: |
| <script>
<!-- /* Background music script By JavaScript Kit (http://javascriptkit.com) Over 400+ free scripts here! */ //specify FULL path to midi var musicsrc="http://www.yourdomain.com/allfor.mid" if (navigator.appName=="Microsoft Internet Explorer") document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">') else document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">') //--> </script> |
Chnage http://www.yourdomain.com/allfor.mid to the location of your music file. Note that if you want to use this at friHost you have to get permission to upload music files.
hey wumingsden,
thanks for the response but can you put that in laments terms. im not much of a computer junkie, im just learning codes so i have no idea what all that means. thanks!
thanks for the response but can you put that in laments terms. im not much of a computer junkie, im just learning codes so i have no idea what all that means. thanks!
you just copy paste that script in one of your html pages and change the name of the music. In this case you would change
var musicsrc="http://www.yourdomain.com/allfor.mid"
with
var musicsrc="http://www.yourdomain.com/yoursong.mid" or whatever you call it.
Try, experiment, and you will get it
var musicsrc="http://www.yourdomain.com/allfor.mid"
with
var musicsrc="http://www.yourdomain.com/yoursong.mid" or whatever you call it.
Try, experiment, and you will get it
| Kamu8recon wrote: |
| hey wumingsden,
thanks for the response but can you put that in laments terms. im not much of a computer junkie, im just learning codes so i have no idea what all that means. thanks! |
Sorry
As the above poster said you need to copy and paste the code that I gave and change the location of the music file. The code should be placed before the </head> tag
I also need to stress that you'll need to get permssion before hosting the music here at FriHost.
much mahalos (thanks in hawaiian) guys. like i posted earlier im very new to this but very willing to learn. if their are any other tips you guys can offer please let me know. once again mahalo.
