Results 1 to 5 of 5

Thread: Text with music
      
   

  1. #1
    PinCushionQueen's Avatar
    PinCushionQueen is offline First Sergeant
    Join Date
    Aug 2006
    Location
    Cumbria, Northwest UK
    Posts
    71

    Red face Text with music

    I have some sound files (WAV) that I want to use on some of my pages. I want to have my guests click on a certain bit of text to play the sound file but I can't get this set up!!!
    I've seen this many times on other sites - you click on the underlined word and the sound plays but I can't do it!!! Help!!!!

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,116

    Default Re: Can't do what I want to do with my text!!!!

    You most likely need some javascript code to start the sound file. And an onClick event for your link. I don't know the javascript code to play a sound, perhaps its on http://dynamicdrive.com

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    PinCushionQueen's Avatar
    PinCushionQueen is offline First Sergeant
    Join Date
    Aug 2006
    Location
    Cumbria, Northwest UK
    Posts
    71

    Talking Re: Can't do what I want to do with my text!!!!

    Without wishing to sound really stupid, what's an onClick event??!!!! Will check out that link - thanks!

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,317

    Default Re: Can't do what I want to do with my text!!!!

    Most of the time if you have a simple link to a wav or mp3 file- it will trigger your default media player to play the song. Some people's browsers have that option turned off in their browser. (That may be your problem). *Tools>Internet Options>Advanced Tab> then scroll down to Multi-Media and make sure that there is a check in play sound in web pages.

    So- a regular link would look like this:
    http://www.mysite.com/my_wav_file.wav

    Watdaflip is correct in that their is Java scripts out their that will play your wav files when people click on them. **Also- that is called an "on-click" event and it is part of Java Scripting.
    PHP- is a blast!

  5. #5
    PinCushionQueen's Avatar
    PinCushionQueen is offline First Sergeant
    Join Date
    Aug 2006
    Location
    Cumbria, Northwest UK
    Posts
    71

    Smile Re: Text with music

    Thanks for that Andy! I can get a regular link working fine - hurray! But to have say some text saying "African Clawed Frog Call" that you click on and it just plays the sound, that's when I need to add script??

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49