Note: This embeded active x control (flash) should not need activation in IE (the bookmarking/history stuff is not enabled in this example).

This is achieved by first hiding all objects on the page using a style sheet, then when the dom is ready (window.onload) the script (which is located in an external file) will get a list of all the objects on the page and replace them with themselves, then disable the stylesheet that hid them way back at the beginning. And conditional comments make sure only IE 6+ sees the scripts. You would embed this after all of your own style sheets in the head section of thlike this:

As a bonus, this page is validating XHTML, so feel free to use it as a template if you need XHTML output.

<!--[if gte IE 6]>
<style type="text/css" id="ObjectPatentMagic">object{display:none}</style>
<script type="text/javascript" src="ObjectPatentMagic-p.js"></script>
<![endif]-->

Here is the javascript source and here is a packed version for absolute minimum impact on page load time.

Valid XHTML 1.1