Play sound on mouseover and mouseclick

I have buttons on my website. I want them to swap image and play sound  on mouseover and mouseclick. Dreamweaver has a behavior for swap image, and it used to have a behavior for play sound but they took that away after cs5 and I have cs6, so does anyone know the code I can manually enter and where I'm supposed to enter it? I'm an idiot when it comes to computer languages so can you just give me the exact code that I can copy and tell me where to paste it. the sound file I want to play on mouseover is images/button a.wav, and the sound i want to play on mouseclick is images/button b.wav. thanks for any help
ps
I also know the sounds  can be annoying to some people so is there a way to aslo a make a mute button for just the button sounds(i have videos that have required sound that I need to play), if so could you tell me how

I lied no it didn't work, it worked until I added the swap images.Here's the code with the swap image but the sound not working  <td rowspan="2"><img src="images/index_r2_c2.jpg" width="185" height="95" id="Image1" onmousedown="MM_swapImage('Image1','','images/down_r2_c2.jpg',1)" onmouseup="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/roll_r2_c2.jpg',1)" onmouseout="MM_swapImgRestore()"<a href="#" onmouseover="playSound('images/button b.wav');"onmousedown="playSound('images/button a.wav');"></a></td>, what's wrong with it

Similar Messages

  • Play Sound Through Display AND Connected Computer.

    I bought and connected my new 27" LED Display to my 27" iMac today and would like to know if its possible to play sound through both the display AND the computer at the same time. I know to go into the sound settings in system preferences, however only the option is given to chose the sound output to come from either one or the other.
    Is it possible to play the audio through both?
    Thanks in advance!

    I downloaded this program with the provided link - after changing the settings as advised I began to get that loud static white noise like sound out of the iMac speakers (which apparently is a problem many people have experienced with their 27" i7 iMacs). As soon as I deleted the Audio Hijack program the speakers went back to normal. (Thank God!)
    If anyone else has any suggestions as to how I can play sound through both the iMac and the display at the same time this would be great appreciated.
    Thanks for trying to help though Malcom

  • How to Play animation on Mouseover and Reverse on Mouseout?

    0down votefavorite
    I am trying to create a simple animated navigation bar. I want to mouseover an image and have an animation play, then when you mouseout the animation will play in reverse.
    I can get the animation to play on mouseover, but as soon as I put in the mouseout code it doesn't work. I'm completely new to Edge, so if someone can give me a simple explanation on how to play/reverse an animation on mouseover/out, I would really appreciate it.
    Right now I have an image, converted to a symbol, with another image (nav_on_1) nested inside. The image nested inside is animated with the label "nav_on_1_play".
    My code for mouseover is below:
    sym.$("nav_on_1").show();
    sym.play("nav_on_1_play");

    first I recommend that you use mouseenter and mouseleave instead.
    second: if you have a symbol that has let's say one animation you can do
    on mouse enter
    sym.getSymbol('symbolname').play();
    on mouseleave:
    sym.getSymbol('symbolname').playReverse();
    you may have to add
    sym.getComposition().getStage().getSymbol('symbolname').play();
    sym.getComposition().getStage().getSymbol('symbolname').playReverse();
    or you can put the event in stage/compositionreday
    sym.getSymbol('symbolname').mouseenter(function(){
    sym.getSymbol('symbolname').play();
    sym.getSymbol('symbolname').mouseleave(function(){
    sym.getSymbol('symbolname').play();

  • When i start ifind i get message about load error. i click reload option and icloud main screen opens ifind shows a map that is misaligned. phone shows several blocks away. can play sound thru ifind and acess info on phone. all os upto date. any idea

    start ifind from web on my dell pc with win 7. get error on load to retry later or reload. click reload and icloud main screen comes up. I hit ifind and phone shows up on a misaligned map and is shown several blocks from actual location. tried daughters phone and map shows up inaccurate for hers also. I have 4s she has 5c all ios on phones are updated . I can get phone to sound and access data such as contacts, calendars.  the problem with bad map and message that there is a problem on starting. previously the map had no problems and location was accurate to within a short distance.

    Thank you for the sympathy and the information about the Adobe.com forum Michael.
    I posted here because, to be honest, for a company that's acknowledged their installers and updaters and support needs some work, they seem very determined to obfuscate the means by which users can provide direct feedback to the company. Much like you, I've also noticed a trend in CS5 installations that mirrors the issues that were present in CS4. it's a sad state of affairs.
    As for my installation, you are also quite right to say that a clean install would have been a lot faster than what I went through with TS and it was actually my first idea. Before calling TS I'd actually read through the forums and noticed that a large number of users who were faced with my situation had no other choice but to reformat. I was just giving Adobe the benefit of the doubt and wasted 2 and a half weeks through that course of action...
    What makes this situation even more frustrating is that the installer failed on a fresh system. It was a custom-built design machine, assembled and configured by myself. The only software that had been installed on it prior to Design Premium was Firefox, an FTP client and the start of my problems, trial versions of various CS4 programs. I used trials just long enough to retire the previous design computer so that I wouldn't contravene the EULA's stipulation of not running more than one instance of software at the same time on different machines.  Turns out being honest once again penalised a legal customer.
    If there is just thing users should learn from my far from unique tale of failed tech support it's that if you ever run into a problem with the installation, don't bother calling TS, just reformat and start from scratch.  It might seem like it'll take longer to get going again, but in actuality, it's the opposite. Reformatting means you'll be up and running in about 1 or 2 days rather than 2 weeks.
    Marc

  • IPad only plays sound with music and some games

    My iPad was working great until a week ago but now I only have sound for my music. I have no sound when I type (yes I checked to make sure that the keyboard clicks were on). On certain games I have no sound. When I put my headphones on I have sound on Geometry wars but when i take the headphones out I got nothing. Also when I lock my iPad it doesn't make a sound. Any ideas?

    I don't fully understand what's involved but I've found that a System Reset cures many ills.  It's easy, quick and harmless:
    Hold down the on/off switch and the Home button  simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.
    A System Reset does not remove any apps, music, movies, etc. nor does it cause any settings to revert back to default.
    Also, you might wish to download the iPad-2 User Guide.  Pay special   attention to page 162.  Note that this Guide also applies to the iPad-1 with IOS 4.3 except for those functions that are not supported by the hardware.
    http://support.apple.com/manuals/#ipad
    Finally, the User Guide can be downloaded at no charge via iBooks and a less comprehensive version of the Guide is included as a Safari bookmark.

  • My iPhone 4S wont play sound out loud...

    It's acting like it's plugged into a speaker, which it's not. It will not play sound out loud, and there's no volume bar. And when it does, it's literally for 2 seconds then goes back to no sound... I have no idea what made it start doing this. It was not dropped or anything.... Any suggestions?

    Is the Silent on? the little button on the side near the volume, If it is it will be orange. That might be your problem.

  • My iphone 5c wont play sound on videos or music on certain occasions. why?

    Ive had my phone 5c for just over a year now and recently it wont play sound on music and videos on certain occasions. i have done all the updates possible to do on it and this has made no difference. tried turning it on/off and that doesnt work. any ideas/?

    Hello atbruner,
    Thanks for using Apple Support Communities.
    From your post I see that you'd like your videos taken on your iPhone to be automatically synced to your other devices via iCloud.  Photo Stream will only sync your photos between your devices, however Apple recently introduced the iCloud Photo Library beta which will sync all of the content taken on your devices.  To learn more about these items, please take a look at the articles below.
    Which photo formats does My Photo Stream support?
    My Photo Stream supports JPEG, TIFF, PNG, and most RAW photo formats. My Photo Stream doesn't work with video.
    My Photo Stream FAQ - Apple Support
    iCloud: iCloud Photo Library beta overview
    iCloud Photo Library beta FAQ - Apple Support
    Take care,
    Alex H.

  • Create Button With Mouseover AND Sound

    Hey - I know zilch about FLASH...just enough to fade pictures
    in, etc.
    Have a button created that changes on mouseover. That works
    fine...but now want to add a sound on mouseover or on click. I
    right-clicked on the button and did "edit in place". Then added a
    new layer to the button and at "over" set a new key frame and added
    the sound.
    However the corresponding swf file opens into this mean loop
    of pressing down and unpressing on it's own while playing only part
    of the sound and cutting it off.
    dang it...can anyone help? THANKS.

    Hi,
    it ought to be quite a simple task. Give to these buttons MouseListeners like
    button.addMouseListener(MouseListener listener) and MouseListener class has methods mouseEntered and mouseExited. Maybe you should use MouseAdapter instead of MouseListener class.
    Hope it helps.
    L.P.

  • Play a sound on mouseover in an html canvas document in Flash CC

    Hi,
    I've been looking for quite some time to do something that I'm sure is simple, but I can't find the answer. I'm sorry if I missed it, but I appreciate any help anyone can provide.
    I have a simple button in flash that I am converting to an html canvas document so I can place it as html in my website with animation and sound on mouseover. I got the animation working the way I want it when I publish to html, but using Actionscript 3, I had a sound that played when the user moused over the button. I want to have it still play a sound when the user mouses over it in my html canvas file too, but I have not had success yet with converting my Actionscript to Javascript and am not a javascript expert by any means. I would also like to have multiple formats of the audio file linked in the code for any browsers that don't work with mp3 files. I can convert the audio file no problem but don't know how to code this…. I have found a few general tutorials on this, but have not been able to get it to work with anything I've tried so far.
    Here is the Actionscript code I had which works fine in my original document when I export as a .swf file.
    stop();
    import flash.media.Sound;
    import flash.net.URLRequest;
    import flash.events.Event;
    sprayGunbtn.addEventListener(MouseEvent.MOUSE_OVER, playSound);
    var myExternalSound:Sound = new Sound();
    var req:URLRequest = new URLRequest("ShortSpray.mp3");
    myExternalSound.load(req);
    function playSound(event:Event){
      myExternalSound.play();
    If someone could help me convert this to Javascript so that it will work when I publish my .fla file to html, I would greatly appreciate it. Thanks very much in advance for your time….

    You can follow the below steps to easily play a sound at runtime - like on mouseover.
    1. Make sure your audio is imported in library and has a linkage name specified.
    2. Open Windows Menu -> Code Snippets panel and expand HTML5 Canvas -> Event Handlers section.
    3. Select your button on Stage and apply the MouseOver Event from Code Snippets to it.
    4. In the MouseOverHandler function add the below line and test movie:
              playSound('audio_linkage_name');
    If you still face problems let me know.
    Also, you might want to go through the SoundJS documentation for more control with Audio in HTML5.

  • How do I tell Apple to fix their software like apps that play sound even though the sound is turned off and not being able to disable features you hate like game center

    Apple is suppose to be the pinnacle of usability and, yet, I want to throw my new IPhone 4s as far as I can and watch is smash into a million pieces on concrete. Seriously, I've already got three things that irritate the **** out of me. First, there are Apple apps that insist on playing sound even though the sound is turned off. If I flick a switch to turn the sound off, I want the sound off!!!! Second, if I do not want a totally unnecessary feature like Game Center, I should be able to disable it. I completed most of the Angry Bird levels with 2 or 3 stars and now I have to start over from square one. Maybe, this happened when I upgraded to the 4s but it sure seemed to happen when I joined Game Center. Tomorrow, I am going to reset my 4s to factory defaults to try to get rid of my Game Center account. I don't want Game Center! I do need Game Center! I hate Game Center! Finally, I had an alarm go off to wake me up and there was a Snooze button but no button to turn the alarm off. I flicked the slider to access the main screen expecting to see something to turn the alarm off but there was nothing. The alarm just kept alarming. I had to warm boot my IPhone to shut the alarm off! Really, Apple!!!!

    The sound is turned off. Only, some Apple apps like YouTube and Siri make sound when the sound is turned off. It is very embarrassing when this happens at work. My question was how do I tell Apple to fix this?
    Turning off game center does not work. The games just prompt me to sign in when they are started.I have tried everything I can find online to stop this behavior. It is annoying and should not happen. My question was how do I tell Apple to fix this?
    The alarm went off. There was a green thing that looked like a button but pressing it did nothing. There was a red button that said snooze. I did not want to snooze. I wanted to turn the alarm off. I slid the bar to unlock the phone and there were no running apps with a button to press. The alarm just keep running. I have not had this problem since it first occurred. The alarm now shuts off when I just unlock the phone. It may have happened because I had another alarm app running. The two may have interfered with each other. I would like to tell Apple about it.
    It also annoys me that the button that closes apps leaves the phone app running. If I press on a number at 6:00 AM to get information about who called me, the phone automatically dials the person back and my natural reaction is to press on the button to close the phone app but the phone keeps dialing this person at 6:00 AM. It is a bad design. I would like to tell Apple about it.
    Finally, I looked all over Apple's site to try to find someplace I could send them a polite message to let them know that I was not happy with these "features" but could not find anything. It is extremely frustrating to have issues with a product and not being able to tell the manufacturer about it. So, you grow up!.
    When trying to fix the Game Center issue, I saw a link someone posted to report issues with the IPad to Apple. The answer I am looking for is where is the link to report issues with the IPhone.

  • When plugging in my headset, the sound continues to play on the ipad and not on the heeadset. Why?

    When plugging in my headset in my iPad, the sound continues to play on the ipad and does not switch to the heeadset. Why? I did not have this problem before.

    If you have used earphones in the past then I assume that you realize it takes a very firm push to insert the headphones into the opening - correct?

  • So my I phone 4s volume has decided to pack  allowing only my phone to make sounds when I have an incoming call, I can also here fine using facetime and receiving calls. YouTube, soundcloud, any of I players will no longer play sound. I've restored the ph

    So my I phone 4s volume has decided to pack  allowing only my phone to make sounds when I have an incoming call, I can also here fine using facetime and receiving calls. YouTube, soundcloud, any of I players will no longer play sound. I've restored the phone using iTunes on my laptop and checked all the volumes are turned up and the button at the left hand Side of the phone is in the correct position.

    Try inserting and re-inserting your headphones 7 or 8 times. Also try cleaning out the headphone jack in case of debris that might be interfering with the connection/disconnection.

  • My ipod 5 was stolen but I have find my ipod installed on it but my ipod isn't/never was connected to a wifi network when it was stolen so how will my ipod play sound or go on lost mode and if there's no wifi connected to it?

    my ipod 5 was just recently stolen in a waterpark (same with my best friend) and when i went on to find my ipod I pressed play sound and lost mode but it never successfully did all those things because my ipod wasn't or isn't connected to a wifi network as it says in the app. so how will I ever find my ipod if it never is going to connect to a wifi network without the thief accessing my ipod (I have a passcode). and also when I check the app once in a while it says ipod is online but cannot find location, so does that mean the thief is using my ipod or is trying to get in?

    Yo are correct. It has to connect to internet for the FindMyiPhne features to be transmitted to the iPod
    lost/stolen                                     
    No app on the iPod is required.                           
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected, on a computer browser go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up or conbtinue to show off-line.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    iCloud: Erase your device
    iCloud: Use Lost Mode
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                               
    Reporting a lost or stolen Apple product                                              
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I have lost my ipod 4 and stupidly turned the location off therefore I can't locate it, lost mode is on, I have played sounds but I really want to know if someone has taken it and turned it on to see the message.Please if you have any info to find my ipod

    If you have any information you can email me at********or answer here
    location is off
    can't track it
    played sounds
    lost mode is on
    not sure if someone took it
    not sure if it has been turned on and the message has been seen
    could they have erased it and gave it another name 
    can it be tracked another way
    is there a way so that i can get it back
    Please help me!!
    <Edited by Host>

    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • Lost Mode and Play Sound are "Pending."  However, iCloud indicates that it connected and backed up to iCloud at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)

    Hi,
    My wife lost her iPhone two weeks ago while on vacation in London (cell service inoperative in foreign country).  Using Find My iPhone app on my device, I activated Lost Mode and Play Sound.  However, both are listed as "Pending," since it those actions require the phone to connect to the internet (wifi only due to no cellular data coverage.).
    We recently returned home and purchased a new iPhone.
    However, when looking to restore the apps/settings from her old phone using a previous iCloud backup, iCloud indicates that the old phone connected to iCloud and backed up the original phone at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)?
    If the phone was activated and connected to the internet via a wifi signal, shouldn't it immedately lock, show up on the map, Play Sound, and send me an email that the phone has been found?
    I also read somewhere that if running iOS 7, the iCloud website interface enables you to track previous locations, for instance if the phone moves from wifi hotspot to hotspot.  Is that true?  If so, how do I do that?
    Thank you for your time, and have a great day!
    Sincerely,
    - Matt

    just giving this a wee bump as time is of the essence here and i need advice/ answers quick!
    apologies if i've broke any rules!
    alex

Maybe you are looking for

  • 10.3 PB wireless sharing internet to 10.4 MB Pro not working

    Hi, I want to set up an ad-hoc network and share wireless internet connection from my XP PC, to 10.3.9 PowerBook (cable), to my wife's new MacBook Pro (wireless). Of course, the PB's Ethernet-to-AirPort sharing is active in the preferences. What DOES

  • Problem in scenario JDBC - XI - File

    Hi, In my scenario, data is fetched from database and passed on to external file. In my design i have put source structure which is exactly the same as database structure and mapped it to target structure. Message interfaces for both the source and t

  • How to edit and splice video clips

    I have 3 video clips that I wish to edit and join together.

  • Chmsee will not open chm files.

    I have 3 seperate chm files, I've tried opening them using chmsee, everytime I try and open or view the chm file this is all that shows up each time. Mammon slept. And the beast reborn spread over the earth and its numbers grew legion. And they procl

  • Problem bound variables(shared variable)

    hi , I'm trying to take values from step7 using OPC server, there is no problem sending the values . the only problem is that I can't get the negative values knowing that in OPC server the negative value is seen . when I use an indicator in labview I