Press SPACEBAR or ENTER to activate and use this control
If you embed an object (such as a Flash movie or video player) in your web page, you will notice that Internet Explorer does not automatically activate the object when you visit the web page. Instead, you will get a message when you hold your mouse over the object, saying "Press SPACEBAR or ENTER to activate and use this control".
This problem is the result of a legal battle over the underlying technology. Microsoft introduced this problem on purpose to avoid litigation problems. Unfortunately the poor webmaster is left to clean up the mess.
In this example we will use the following simple code for embedding a Flash object. The same technique works for any embedding code, e.g. Windows Media Player, Quicktime player, etc.
<object width="400" height="50">
<param name="movie" value="myFlashMovie.swf">
<embed src="myFlashMovie.swf" type="application/x-shockwave-flash" width="400" height="50"></embed>
Make a plain text file and give it a useful name with a js extension, e.g. embedflash.js
Step 2: Create the code
document.write('<object width="400" height="50">');
document.write('<param name="movie" value="myFlashMovie.swf">');
document.write('<embed src="myFlashMovie.swf" type="application/x-shockwave-flash" width="400" height="50"></embed>');
Step 3: Call the Script File
On your web page, insert the following line when you want the code to appear: