Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

“Click to activate and use this control”

Status
Not open for further replies.

madotek

Technical User
Feb 4, 2006
6
0
0
US
Does anyone know a simple solution to prevent the grey “Click to activate and use this control” box from appearing when user puts mouse over Flash elements imbedded in Dreamweaver?
Thanks you.
 
This is a problem since Microsoft lost a bid for active x ( )

The following is a javascript work around to stop this happening:
Download the following: extract the .js file inside and copy to the root directory of your site

Then attach this code before your </head>:
<script src="VM_FlashContent.js" type="text/javascript"></script>

IE does this when it sees the <object> and <embed> tags which, is the standard way of inserting flash media, so you need to modify that code as follows:

Ordinarily your code would look something like this:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ...>
<param name="flash" value="flash.swf">
<embed src="flash.swf">
</embed>
</object>

This now becomes the following:
<script type="text/javascript">
VM_EmbedFlash ( 'codebase', ' 'width', '485', 'height', '300', 'src', 'flash.swf', 'quality', 'high', 'name', 'flash', 'pluginspage', ' );
</script>

This will obviously only prevent that daft message displaying and the box appearing if your visitor has javascript enabled, however, so on the off chance that they don't just wrap up your original code in <noscript> tags and place it below the newly modified, for example:

<body>

<script type="text/javascript">
VM_EmbedFlash ( 'codebase', ' 'width', '485', 'height', '300', 'src', 'flash.swf', 'quality', 'high', 'name', 'flash', 'pluginspage', ' );
</script>

<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="485" height="300" id="flash">
<param name="movie" value="flash.swf">
<param name="quality" value="high">
<embed src="flash.swf" quality="high" width="485" height="300" name ="flash" type="application/x-shockwave-flash"
pluginspage="</embed>
</object>
</noscript>

</body>


Hope this helps,
DigiPencil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top