|OnMouseover Link w/ Sound WITHOUT using Anchor Tags|
Sound with CSS or A:Hover Exist?
| 4:47 am on Feb 3, 2001 (gmt 0)|
Hi! Wondering if anyone has done this or knows how? I am looking to have a sound produced when the user passes mouse over a link. (Not an image!)
Thing is I DO NOT want to use anything in the ANCHOR tags (<a href>). Thereby hoping this might be achieved via CSS with the AHover tag.
Anyone done this or know how?
| 4:57 pm on Feb 3, 2001 (gmt 0)|
Paul, as far as I know a:hover is only supported by MSIE, and even in that case only for color changes to the link text. Hover was inconsistently supported in MSIE 4.x, and support only truly arrived in Explorer version 5.
Even using Javasript, browser compatibility is a concern. Here [wsabstract.com] is one method that is cross browser compatible.
I don't claim the definitive word on whether a:hover can trigger a sound in MSIE. Anyone know anything more about this?
| 7:37 am on Feb 4, 2001 (gmt 0)|
I noticed (weirdo that I am, on a Mac with Netscape) two possible problems with the script you referenced, tedster:
1. It starts Java when you mouseover the link... hence it takes forever on older machines.
I tried forever to find a way to initiate a remote imagechange using jscript/onmouseover *without* using <a href=> and could never find a way to make it work.
I'd LOVE to find out a way to do mouseover effects without having to hyperlink the trigger though... I'll be watching this one to see what turns up!
| 9:34 pm on Feb 4, 2001 (gmt 0)|
On Windows the JVM loads immediately with the page, it doesn't wait for a mouseover to start up. That's an important difference on a Mac. Thanks!
Java is pretty common for embedding sound files -- other methods are too browser specific, but now you've pointed to platform issues as well. One of my friends has a nice g4, and he has constant problems playing music from the web, with either browser.
| 10:45 pm on Feb 4, 2001 (gmt 0)|
using an embed tag (instead of bgsound) allows music to play automatically upon loading a page for Mac NN/IE... I prefer silence on the web, so I really haven't looked into online sound much.
| 11:29 am on Feb 5, 2001 (gmt 0)|
Opera 5 supports hover Tedster.