1 Hour SEO : Domain Registration Bank : Ecommerce Dictionary : GoDefy : Great Web Design Tips
JavaScript 2 : Jumbo Keyword : Marketing Tips Store : Michael Wong Blog : Mike's Marketing Tools
Search Engines 2 : SEO eBook : Text Links Ads : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML > Embedded Objects > <EMBED ...>

Attribute for <EMBED ...>
NAME ="text string"

NAME indicates the name of the embedded object. In most cases this attribute is not needed. However, some types of plugins can be controlled using JavaScript, or can communicate with each other, and those cases NAME comes in handy.

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 NAME attribute you must also use MASTERSOUND.

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!

<EMBED PLUGINSPAGE="..."> >>>

          

Copyright © 2002-10 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com