Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RollOver with sound

    Hi,
    I would like to add a sound effect to my rollover - so that the viewer will see the image swap and hear the wav file at the same time. (OnMouseover)

    Thanks for any help (I'm a newbie)
    Joe Y.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is relatively simple when you use Flash, if you have that at hand I would suggest that you use it, because it will do that very very easily and quickly.

    You may have noticed, I am not a Java whizzard, so I can't say much about the OnMouseover event, in that I have never come across something that would allow this - nevertheless I am not saying that it will not work.


    I hope that helps,


    Have fun!


    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #3
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    So which will it be?
    Flash =
    1.Create a button, right click and edit
    2.Select over (I think that's the label been to long out of flash)
    3.Import your wav sound
    4.Drag the wav file from the library (ctrl+L to show library) onto the over label.
    5.Praise me as your god.

    Javascript =
    Ionsurge ships this off to the javascript programming forum
    Omnis mico antequam dominus Spookster!

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    redhead

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    lol, jsk has a habit of doing that
    Omnis mico antequam dominus Spookster!

  • #6
    Banned
    Join Date
    Mar 2003
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hmmm......

    is that really the smallest way? those sites have a way to extend a script to make it easy....


    how bout


    onmouseover="sound('sound')"

    lol

  • #7
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    More Help Please

    Hey, thanks for the help but I still dont get it!
    I don't know anything about Flash. Maybe I'll learn - but not right now.
    Again, I would like to hear the sound AND see the rollover at the same time.

    Also, I am new at this so be easy on me.


    Thanks again,
    Joe Y.

  • #8
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So do you want to use Flash or JavaScript to do it?
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #9
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RollOver with sound

    Java please
    Joe Y.

  • #10
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well red posted a link to an example a few posts up!


    But I recall you wanted a mouseover as well. So I'll try to help you .

    Firstly what sort of mouseover? Eg; Image rollover or background color rollover?
    Omnis mico antequam dominus Spookster!

  • #11
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RollOver with sound

    Hey, thanks for all your help so far!

    I guess you would call mine an "Image rollover".
    I use a routine to pre-load the images and then, the second image replaces the first when the mouse pointer passes over the image.
    I got that part working ok, I would just like to add sound to it So the same mouseove would trigger an image swap AND play a small wav file and the same time.


    Thanks Again!
    Joe Y.

  • #12
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Ok, well you would be calling your rollover image script by something like: onMouseOver="rollimg()" onMouseOut="unRoll()" as an example.

    So if you use the script that redhead posted a few posts up you can call it like;

    onMouseOver="playSound(0);rollimg()" onMouseOut="stopSound(0);unRoll()"

    And just replace rollimg() and unRoll() with the rollover function names making sure to leave the playSound(); and stopSound(); intact.
    Omnis mico antequam dominus Spookster!

  • #13
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RollOver with sound

    GREAT!!!
    That was too eazy! I got it working now.

    Thanks again
    Joe Y.

  • #14
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile PLS Help! Adding Rollover Sound to an Image EZ Generator

    Could someone give me some help, pls?

    I am running EZ Generator and have found the "add custom event" function for an image.

    I have tried the coding listed previously in this thread but have had no luck.

    I am guessing the problem is the syntax of the sound file itself as well as where does the original WAV file need to reside in the site's directory.

    Any help would be greatly appreciated.


  •  

    Posting Permissions

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