Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2011
    Location
    Ohio
    Posts
    1
    Member #
    30114
    Liked
    1 times
    I am using a .png transparent image as a hyperlink on my webpage. How can I attach a sound effect upon clicking the image?

    This is the code I am using at the moment on my page..

    *******************************************

    <script type="text/javascript"> //preload images first img1=new Image() img1.src="/images/themagicbutton.png" img2=new Image() img2.src="/images/themagicbutton5.png" </script> </head><body bgcolor="C4C996"> <br> <br> <br> <br> <br>
    <br> <br> <br> <br> <br> <center><a href="http://bit.ly/tZ7iUv" onMousedown="document.images['example'].src=img2.src" onMouseup="document.images['example'].src=img1.src"> <img src="/images/themagicbutton.png" name="example" border=0></a>
    chrisHPZ likes this.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,715
    Member #
    5580
    Liked
    717 times
    That will be some javascripting or embedding of something.
    I've never tried it myself:
    https://www.google.com/#hl=en&cp=24&...w=1366&bih=675

    I wonder if HTML5/CSS3 .. the new HTML changes has something like that?


  4. #3
    Senior Member chrisHPZ's Avatar
    Join Date
    Aug 2011
    Location
    Ohio
    Posts
    133
    Member #
    28760
    Liked
    31 times
    Read this post. It involves using JavaScript and includes ways for onclick and onmouseover. Only other way I know to do what you want is using Flash. But that opens up the need for Flash Player on the users part, and knowledge of Actionscript on your part. This gives me a few ideas too.

    http://webdesign.about.com/od/sound/...sound_oncl.htm


Remove Ads

Posting Permissions

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

Search tags for this page

add a sound to an image click
,
add sound to image click eclipse
,
click image to link to sound
,
html sound effects link click
,

picture click sound effect in javascript

Click on a term to search for related topics.
All times are GMT -6. The time now is 03:07 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com