ActiveX and IE
Simply click here and
be taken to a page where you can just drop in your page's source code and it will spit out the revised source code along with
the accompanying JavaScript page. Alternatively you can read the instructions below on how to make changes to your html pages. Either way you will find that the solutions here are quick and easy and will get your web pages back up and running again
in the single click state that they were in the past.
Need more time to get stuff done? Then Click HERE
I have placed a few very simple ways to get around this court forced “upgrade” to IE below. I hope you find them useful.
FLASH FIX
This first example shows how to embed a static piece of flash into a page:
Here is the original code for displaying a piece of flash:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="450" height="240" id="pr" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="pr.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="pr.swf" quality="high" bgcolor="#ffffff" width="450" height="240" name="pr" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
|
Now all you have to do to get around the need for users to your site to first click the flash object before they can interact with it is place this code into a page called myflash.htm and add document.write to the front of each line so it looks like this:
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"450\" height=\"240\" id=\"pr\" align=\"middle\">")
document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />")
document.write("<param name=\"movie\" value=\"pr.swf\" />")
document.write("<param name=\"quality\" value=\"high\" />")
document.write("<param name=\"bgcolor\" value=\"#ffffff\" />")
document.write("<embed src=\"pr.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"450\" height=\"240\" name=\"pr\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />")
document.write("</object>")
|
Finally make a call to it from your existing web page by writing this:
<script src=" myflash.htm"></script>
|
That’s it, nothing more nothing less.
Now, if you wish to make the myflash.htm page a little more dynamic so you can pass variable to it and change things like the height and width you can do it like this:
function flash(w,h,bg) {
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + w + "\" height=\"" + h + "\" id=\"pr\" align=\"middle\">")
document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />")
document.write("<param name=\"movie\" value=\"pr.swf\" />")
document.write("<param name=\"quality\" value=\"high\" />")
document.write("<param name=\"bgcolor\" value=\"" + bg + "\" />")
document.write("<embed src=\"pr.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"" + w + "\" height=\"" + h + "\" name=\"pr\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />")
document.write("</object>")
}
|
Then make a call to it from your existing web page by writing this:
<script src="myflash.htm" type="text/javascript"></script>
<script type="text/javascript">flash(450,240,'ffffff');</script>
|
You can expand this variable that you send to control anything you would like and you can also pass variables to the flash file itself. If you have found this to be helpful please take a minute and send us a donation. If you need help or would like to see how to pass more variables, email us at larry@happinessu.org
|