|
|
<EMBED ...>NAME = "text string"NAMENAME
For example, the following code uses Netscape's LiveConnect features to play "hello" when the Hello link is clicked. If the browser is something beside Netscape, then the link works as a regular link. The sound will play a little sooner with Netscape, however, because it has already been downloaded. Note also that Netscape requires that if you use the NAMEMASTERSOUND
| this code | produces this |
<EMBED
SRC="../graphics/sounds/helloo.wav"
HEIGHT=144 WIDTH=166
NAME=MySound
MASTERSOUND HIDDEN
>
<SCRIPT TYPE="text/javascript">
<!--
function soundplay()
{
if (navigator.appName == "Netscape")
{
document.MySound.play(false)
return false;
}
else
return true;
}
//-->
</SCRIPT>
<A
HREF="../graphics/sounds/helloo.wav"
onClick="return soundplay()"
>Hello!</A>
|
Hello! |
|
Recommended Resources |
|||
| web hosting tutorials Credit Help |
Search the Internet Search Engine Help |
Low Fat Lifestyle Internet Traffic |
Web
Hosting Web Design |
|
Discount
Hotel Reservations All
Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003 |
|||