SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Sound on Mouseover

    Where can I find a java/dhtml script that lets you play a sound on Mouseover?

    Thanks in advance,
    Sparkster

  2. #2
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just like this:

    <embed src="filename.wav" Hidden=True Autostart=False NAME="soundname" mastersound>

    And the link you write like this:

    <a href="document.htm" onmouseover="document.soundname.play(false);return true;">soundname</a> (I think

    or check out this site:

    http://www.artspace2000.com/artspace...und_effect.htm


  3. #3
    SitePoint Guru siphilp's Avatar
    Join Date
    Nov 2001
    Location
    Fife, Scotland
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are using dreamweaver then you can use the behaviours function to add what you require.

    Are you using dreamweaver?


    Si

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2001
    Location
    Sausalito, Ca
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For a utility that supports java and wma streaming, as well as a javascript library with event driven functions, check out AudioBasix 2. They totally make it easy to add event driven audio. They have a dreamweaver extension, audio encoder as well as a code generator.

    http://developer.audiobase.com/

  5. #5
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think Platinum hit the nail on the head...is that code compatible with Netscape 6 and IE 5+?

  6. #6
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Sparkie
    I think Platinum hit the nail on the head...is that code compatible with Netscape 6 and IE 5+?
    I think it might be, i dont have NS6 at the moment though, so i can't test it... NS and IE did used to use different 'sound' methods though... mmmmm

    Try it and see i guess

  7. #7
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post might be somethin' useful in ...


  8. #8
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aha! That WS Abstract one is perfect! And cross browser too!!

    Thanks MMI!

  9. #9
    Non-Member mmi's Avatar
    Join Date
    Jun 2001
    Location
    Rhode Island
    Posts
    587
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy mmy Netscapes aren't happy

    when I visit that page in N6, I get no sound on the examples - maybe I don't have the "LiveAudio plugin" - I figure that just comes with the browser, though

    in N4.7, I get an error:
    line 61:

    unable to reflect embed with index 0 - not loaded yet?.
    I get the sounds in IE and don't know of any other audio problems on my system
    --------------
    hmmm..., they just mean QuickTime, right? - I've got that...
    Last edited by mmi; Jan 30, 2002 at 01:35.


Bookmarks

Posting Permissions

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