This is for HTML 4.01 transitional.

I thought I found a workaround for adding the flash object to a page and still have that page to validate, but it doesn't work all the time (specifically in Opera, well at least for me), b/c the flash object wouldn't show up in Opera 8.51-- for whatever reason . So I tried something else...

Well, this is simple, and I guess you can call it cheating or whatever, but it works. I simply have all the flash <object> info written in a javascript file and I use the "write" command to write it to the web page. That way, if you view the source you only see the javascript function that writes the necessary html tags to embed the flash to the page.

Ie, in the javascript file you have:

// write Flash
var writeFlash = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,0,0" WIDTH="120" HEIGHT="50" id="myFlasher" ALIGN="">  <PARAM NAME=movie VALUE="myFlasher.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#F0F0F0> <EMBED src="myFlasher.swf" menu=false quality=high bgcolor=#F0F0F0  WIDTH="120" HEIGHT="50" NAME="myFlasher" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE=""></EMBED> </OBJECT>'

function showFlash () {
Then in the html page, in the <HEAD> section, put the link to your .js file:

HTML Code:
<script type="text/javascript" src="myJSFile.js"></script>
Then wherever you want the Flash object to show up in the body:

HTML Code:
<script type="text/javascript" >
Hey, you may have already known that, cool, just wish someone would've told me earlier....and I didn't see a thread which really helped on this.... so...

Just thought I'd share this with those of you whom this may concern. Peace.