DHTML Behaviors Library : SoundRollover Behavior

Description: The soundRollover behavior provides a script-free method for web page authors to add sound effects to elements to make them respond to mouse interaction. In the past, some web sites have used Java applets to create rollover sound effects because Java provides a sound API. This behavior allows a similar effect without the need for code.

Browser/Platform Compatibility
This sample is supported in Internet Explorer 5, on Win32 and Unix platforms. Any browser that doesn't support behaviors will ignore them.

Usage
The soundRollover behavior allows Web authors to specify an audio source to be played when the mouse cursor hovers over an element, or when the element is clicked.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish