SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2000
    Location
    Malaysia
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would like to have some sound effect when mouse over on button and clicking on it.

    How do I acheive that?? Can anyone helps?

  2. #2
    SitePoint Member
    Join Date
    Apr 2000
    Location
    North Sydney, Nova Scotia, Canada
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup, trying to aquire same effect with hover buttons. I'm using FrontPage 2000 if that helps anyone with pretty generic nav buttons? Please help.

    Bond...James Bond LTK

    Please click e-mail icon above if you can help me out. >>>

    ------------------
    live, work, pay taxes (optional) and die...is there any hope?

    [This message has been edited by Bond 007 LTK (edited April 18, 2000).]

  3. #3
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Sound works differently in the two major browsers. You would need to write to different branches of code, one for IE and one for netscape. IE uses the BGSound tag to embed sounds. You would embed the sound, name it and set it to zero volume, loop=0. Netscape uses the embed tag though Netscape 6 will use the Object tag. You would do the same thing embed the sound, loop it once and set the volume to zero.

    When you go to play the sound Netscape has a sound object you can access through liveconnect its as simple as soundname.run(). With IE you have to access it through Windows Media player which is a little more involved but it still comes down to soundname.run(). You can find examples on embedding sound at both Software companies sites. Microsoft's is msdn.microsoft.com and Netscape's is developer.netscape.com.

    Sound will be tricky until both browsers open the sound object to scripting and use sound through the <object> tag. The <object> tag will eventually replace the bgsound and embed tags both of which are proprietary and don't exist in the HTML specification. Once <object> is included properly in the browsers you will be able to access sounds as easy as you do images (note: the object tag is also slated to replace the <img> tag in the future) today.

    ------------------
    Wayne Luke
    WR Moderator
    Internet Media Provider


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
  •