Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 74   Yesterday: 1,303   Max: 2,773   Total: 530,407   Current Users : 18 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

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!



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2009 Broadband Media, Inc. All rights reserved.