How can I trigger audio on mouse hover

I know,  I know, sound is annoying on webpages but Im building a site that makes it easier for people who cant read to be able to understand the information better, i.e. making it more a accessible.
Ive tried using the Javascript method but I couldnt get it to work. Ive also looked in Jqeury but its confusing me a lot. Im hoping someone can point me in the right direction, it would be greatly appreciated.
Im using Dreamweaver CS6 btw.
Thanks.

Couple of questions:
What technology will you be using to play the audio? A Flash media player? HTML5 audio? Whatever built-in media player the user has installed on their machine?
How will you confirm that the user can play or even hear the audio?
As HTML was designed as a "reading" medium (linked scholarly documents was the original purpose behind HTML), you may be running into the fundamental limitations of the medium.
That being said here's a possible HTML5 audio approach (modern browsers including IE 9+ or better):
<audio id="demo" src="audio.mp3">
<p>Your browser does not support HTML5 audio.</p>
</audio>
<div>
  <button onclick="document.getElementById('demo').play()">Play the Audio</button>
  <button onclick="document.getElementById('demo').pause()">Pause the Audio</button>
  <button onclick="document.getElementById('demo').volume+=0.1">Increase Volume</button>
  <button onclick="document.getElementById('demo').volume-=0.1">Decrease Volume</button>
</div>
This demo code modified from: https://developer.mozilla.org/en-US/docs/HTML/Using_HTML5_audio_and_video
Now to make this play on hover, you will need to add some javascript code to the element you want to use as your trigger. It would look something like this:
<div id="acessibleAudioPlayback" onMouseOver=""="document.getElementById('demo').play();" onMouseOut="document.getElementById('demo').pause();">
</div>
Hope this is helpful.

Similar Messages

  • How can I register audio extra Serial AUX60-5021-0129-4035

    How can I register audio extra Serial AUX60-5021-0129-4035

    Mr Dean
    I know I`m so importunating.
    I just starting to learn Lingo and have some problems
    I`m trying to make some games to help my sister (she`s a logopedic) with
    work with autistic children and with hearing and sound recognishing problems
    Maybe You know some source on the internet with peoples who make games with
    Director.
    As I mention i`m a poor coder.
    Thanks to You audio extra succesfully register but doesn`t accept my code.
    I1 m trying to make a button When mouse up record sound from mocrophone on
    button stop (mouse up) , play recordered file( can be from RAM)
    This is link to few samples on my Youtube canal
    Big thanks
    Rafał Sadowski
    Sorry for my english I`m a selflearner.
    http://youtu.be/Pqiy3-NcRrA?list=UUIr_3kLY_uKUgghEmCdHA4Q
    And link for playable demo on internet
    http://logomedic.pl/123/towerosDemo.htm
    Maybe some tips from Master
    2014-07-26 15:23 GMT+02:00 Dean Utian <[email protected]>:
        How can I register audio extra Serial AUX60-5021-0129-4035  created
    by Dean Utian <https://forums.adobe.com/people/Dean+Utian> in Director
    - View the full discussion
    <https://forums.adobe.com/message/6585824#6585824>

  • How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.

    How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.
    I've tried plugging the hdmi into the TV directly and the receiver.
    I get video every time.  HBO to Go , Xfinity, ABC, Youtube, etc...
    just no audio.  Any suggestions? 
    I've tried starting the apps then plugging in the hdmi cable.
    I never tried this before I upgraded to IOS 5.

    Claudiamil-
    I had not tried it with mine since upgrading to iOS 5, so I just did.  I'm using a small Vizio HDTV.  I did not try YouTube, but did try several videos and musical numbers.  In all cases there was sound, including stereo when the source had it.
    I assume you are getting sound from the iPad when the adapter is not connected, so the volume is not turned down.  Dah*veed's suggestion to reset may be what you need.
    Fred

  • How can I stream audio from Apple TV 2 to Airport Express speakers.

    how can I stream audio from Apple TV 2 to Airport Express speakers.
    I have LCD projector on one wall and connected ATV to it via HDMI.
    Speakers on the other wall and connected to APXpress.

    To be honest the times we've wanted to have music from more than one set of speakers, I've usually used my mac's iTunes library and controlled it either from the mac or from my phone, since they're not really the times we have any TV on anyway. I've tested AirTunes from the Apple TV but can't recall whether it worked with content from a streaming library.
    Now I've got something to do.

  • My Ipad 2 external speakers does not work and headphones has popping sound. This all occured at the same time as my Iphone and Ipod headphones only played mono (no, the "mono" option is not on). How can there be audio issue for all these devices?

    My IPad 2 external speaker does not work and the original headphones have popping sound when used. This all occurred at the same time as my IPhone and IPod headphones only plays mono (and no, the "mono" option is not on) with the original headphones, as well as, other headphones tested.  How can there be audio issue for all these devices at the same time?
    As you may have noted from the list of Apple devices I own, I believed in the Apple and the products it was producing; but it is hard to believe from my experience and the other voices within the Apple Community that we are all experiencing the same hardware issues. Especially since I recently, I upgraded to an IPhone 4g (no, my faith in IPhone 5 series is very little) and is experiencing the same audio problem as described above. So now, I am off to the Apple store again to be told that it’s a hardware problem on new IPhone. Really? Apple, what happen to the pride in the product you were producing?

    Everyone does things a little differently. I love to "jam " along with iTunes ( or old Lp's) . Always have. That's where/how I've learned to play .
    I'm sure leonieDF is giving a proper way to jam along on a keyboard with an iTune. He blows my mind all the time with what he knows. Nuff respects to him !
    What I do is make a GB project I call "Jam With". I'll make several new tracks that are blank. Just has a few instruments named in the blank tracks. You can change those per song ...
    Because I'm not concerned about changing the pitch / key.... of the iTune or the tempo ... I can simply play along with it.
    Peace,
    P. Dreadie

  • How can I trigger an onchange event for hidden or never displayed item

    hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
    set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
    When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
    it, B never gets changed.
    How can I trigger this onchange event (from B to set C) with B not visible?
    Thanks,
    Carol

    hi Varad -- Probably more info than you want... but here's the whole chain of events.
    Hope it answers your question.
    C
    **** 1
    In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
    onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
    **** 2
    jsLookupValue is the following.
    The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
    // Continue only if there are valid values
    if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
    //Check to see if the source_item_value is null (either all spaces or empty
    //If it is, set the dest item to null, but only if it's not already --
    //otherwise we get into a loop.
    source_item_value = trim(source_item_value);
    dest_item_value = trim($v(dest_item_name));
    if (source_item_value.length==0) {
    if (dest_item_value.length != 0) {
    $s(dest_item_name, null);
    }else{
    //This is the AJAX call to the Application Process from step 1
    ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
    //Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
    ajaxRequest.addParam('x01', source_item_value);
    ajaxRequest.addParam('x02', source_column_name);
    ajaxRequest.addParam('x03', dest_item_name);
    ajaxRequest.addParam('x04', dest_column_name);
    ajaxRequest.addParam('x05', lookup_table_name);
    //Now do the actual AJAX call and put the result in ajaxResponse
    ajaxResponse = ajaxRequest.get();
    //Check if there is a response
    if (ajaxResponse) {
    //We need to format the JSON return string and put it in a JSON object
    // the formatting is done by a function in the external JSON library
    // the jsonobj can be used to retrieve the data returned by the App process
    var jsonobj= ajaxResponse.parseJSON();
    // And finally, we set the DNAME item with the value of the jsonobj.DNAME
    // an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
    if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
    $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
    }else{
    } //not setting
    }else{
    alert('No response from app process');
    } //no response
    } //no source item value
    } //no bad nulls
    } //function
    **** 3
    I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL.

  • How can you get audio for  books on the kindle

    how can you get audio for  books on the kindle

    The audio inputs on Macs are line level inputs and not mic inputs.  You need a mic with a built in preamp (battery powered) or more conveniently a USB mic or bluetooth headset.

  • The audo files do not play from websites instead ask for download. This has occured from the time I have updated Firefox 4 to Firefox 5. Why? And how can i play audio files?

    The audo files do not play from websites instead ask for download. This has occured from the time I have updated Firefox 4 to Firefox 5. Why? And how can i play audio files from websites?

    You have a <b>general.useragent.override</b> pref that identifies you as Firefox/3.5.7
    *Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
    See:
    *https://support.mozilla.com/kb/Websites+or+add-ons+incorrectly+report+incompatible+browser
    *http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

  • How can i make audio player with osmf??

    i want to know how can i make audio player with osmf and flex4.5 ?

    Thanks again...I suppose I'd just like it louder in case the radio is on when the directions are given. The difference between the iPhone & Nokia is like night & day!
    BTW, do you know if the Maps program is using data from my cell phone plan as we drive? Or are the corresponding maps downloaded into the phone once for the trip?
    Thanks again!!

  • How can we trigger an IDOC based on Orders creation.

    Hiii...experts,
                            After searching alot in SDN i am taking this very commonly asked to experts in the hope of a better understanding.
    If i create a sales order means.. i want to trigger a IDOC based on certain Condition on ORDER data .. how can we do this..
    when ever i'm creating a sales order it should be automatically trigger a IDOC , Because when ever sales ordre was created in R/3 system it should be transferred to some destination...
    And pls tell me about the reports that does the job of collecting required data from the sales order and converts it into a IDOC.
    so, how can we trigger an IDOC based on Orders creation..
    pls help.
    Ram.

    Use IDOC_OUTPUT_ORDERS for creating IDOC
    you need to maintain condition records & output type
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 10, 2008 4:18 PM

  • How can I separate audio and clips?

    How can I separate audio and clips?

    I guess you mean "audio and video clips".
    Then select the clip including both audio and video (while in the timeline) and press cmd-L: this unlinks the stereo pair from its video. If you want to work on each audio channel separately press alt-L while the stereo pair is selected.
    Piero

  • How can i trigger the workflow from REPORT

    hi,
      my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
    how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
    pls let me know.
    pls give any documentation if you have.
    thanks & Regards
    Sankar.

    Hi,
    Workflow container
      swc_container        lt_container.
      swc_create_container lt_container.
      swc_set_table lt_container '<cont_name>' lit_int_tab.
    CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = lc_objtyp
          objkey            = lv_objkey
          event             = lc_event_name
        IMPORTING
          event_id          = lv_eventid
        TABLES
          event_container   = lt_container
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
        yv_err_flg = gc_true.
        EXIT.
      ENDIF.
    Rgds,
    Prakash

  • How can i trigger two 5102 PCMCIA by software synchron

    I want to use a mobile measurementsystem with a laptop and two NI5102-PCMCIA. How can i trigger both cards syncron without loosing a channel. how can i trigger both cards syncron by software?

    Sounds like you are interested in triggering two DAQCard-5102. The triggering capabilities of this card are outlined in Chapter 4 of the DAQScope 5102 User Manual:
    http://digital.ni.com/manuals.nsf/websearch/3F29D7C792CBF5478625665E006358EA?OpenDocument&node=132100_US
    One thing to point out is that RTSI lines are not available in the PCMCIA version of the 5102.
    If you have any further questions you can always request support from National Instruments at ni.com/ask
    Regards,
    Russell Blake
    Applications Engineering
    National Instruments
    Engineering Team Leader
    G Systems, www.gsystems.com
    Certified LabVIEW Architect
    Certified Professional Instructor

  • How can i trigger workflow when particular event happens in webdynpro

    how can i trigger workflow when particular event happens in webdynpro

    hi,
    To trigger workflow , use the fm : 'SAP_WAPI_START_WORKFLOW'
    Refer this thread for similar requirment : Workflow in WebDynpro
    Blog : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1564403950DB00699140435432809306End?blog=/pub/wlg/2778

  • I have an ipod nano but i dontknow how can syc the audio books on it?!

    how can i use audio books in my ipod nano?!
    i have a windows7 pc

    Configure the audiobooks to sync to your iPod from under the iPod's Books configuration tab in iTunes.
    To access this configuration tab, plug in your iPod and select it from under the Devices section in the left hand pane of iTunes to bring yourself to the iPod's Summary tab.  Now locate the Books tab and select it.  Here you can configure what and how audiobooks are synced to the device.
    If you make any changes to this tab, make sure to hit the Apply button on in the lower right hand corner.
    B-rock

Maybe you are looking for

  • Is it possible to make PCTFREE 0 a database-wide default via init.ora ?

    In our batch environment we drop/create lots of tables as follows - CREATE TABLE X NOLOGGING PCTFREE 0 PARALLEL AS SELECT ......... Since the tables get created from scratch every time and don't get updated - we use PCTFREE 0 to minimize space usage

  • USB stick troubles

    I'm trying to get USB sticks up...just one problem: every time I plug in my USB stick, it mounts somewhere else. I set /dev/sdb1 /media/usb vfat default 0 0 in my fstab, but the next time I plugged it in, it registered at sdc! Now, I'm no expert, and

  • How to extract username out of SSL Certificate

    is there a sql or pl/slq function I can use to extract the user name out of a certificate (SSL)

  • Corruption & Sysman

    Hi all, here is my situation. This instance is our Production Instance. The setup is: 10.2.0.3 on Redhat After analyzing with rman - Backup validate check logical database; - I got the following result: select * from v$database_block_corruption FILE#

  • Unable to deploy struts 2 in tomcat 5.5.16

    Hi , I have developed a sample example in struts 2 using tomcat5.5.16,but when I try to deploy it gives me 404 error , I am unbale to figure out whats the error. regards srini