Results 1 to 2 of 2

Thread: Problem inserting music player on page

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Location
    Cuenca Ecuador
    Posts
    29

    Default Problem inserting music player on page

    Based on the fact that I am able to turn the computer on I was chosen by an NGO here in Ecuador to do a web site. Retired people are NGO's best friends. But I am an utter novice at web pages. I created the website using NOF XI. The website works. But they want to put on their web page the ten top songs composed by Ecuadorians for their contest and allow people to play the songs.

    I have gotten a mp3 player download courtesy of this forum. I followed the instructions: text box, control T, paste the code. However when I put the site up, there is nothing on the page. I have tried this with different downloads.

    If anybody has a solution to this I would be very appreciative. A blank page with the advice to get in touch with your inner music just isn't going to cut it.

    Thanks, Mike

  2. #2
    Senior Member Adendum's Avatar
    Join Date
    Apr 2010
    Location
    London (UK) & Granada (Spain)
    Posts
    926

    Default

    Mike,

    I'm not 100% sure I understand your needs but here's a go at solving the issue:-

    1. Copy this code into your page just before the /BODY tag.
    <script>
    function EvalSound(soundobj) {
    var thissound= eval("document."+soundobj);
    thissound.Play();
    }
    </script>
    <embed src="file1.wav" autostart=false width=0 height=0 name="sound1" enablejavascript="true">
    ....
    <embed src="file10.wav" autostart=false width=0 height=0 name="sound10"
    enablejavascript="true">
    2. Edit the src= filenames to suit and name= to suit.

    3a. For a text link:-
    <a href="#" onMouseOver="EvalSound('sound1')">This is the first song</A>
    3b. For a mouseover on an image:-
    <img src="image1.gif" onClick="EvalSound('sound1')">
    3c. For a form button:-
    <form>
    <input type="button" value="Play 1st file" onClick="EvalSound('sound1')">
    </form>

    Good luck!
    Paul - Aditerum Ltd and AllSortsOfStuff Ltd
    NOF11 (in Admin mode!); Vista Premium 64bit; AMD Phenom IIx4 945 Processor 3.00Ghz; 8.0Gb RAM
    Wouldn't it be great if there was only a single browser to worry about!!!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •