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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to embed Flash and maintain valid HTML?

Status
Not open for further replies.

miraclemaker

Programmer
Oct 16, 2002
127
GB
I use the following code to embed flash files within my webpages (generated by Dreamweaver)
Code:
<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0&quot;[/URL] width=&quot;773&quot; height=&quot;860&quot;>
  <param name=&quot;movie&quot; value=&quot;flashfile.swf&quot;>
  <param name=&quot;quality&quot; value=&quot;high&quot;>
  <embed src=&quot;flashfile.swf&quot; quality=&quot;high&quot; pluginspage=&quot;[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer&quot;[/URL] type=&quot;application/x-shockwave-flash&quot; width=&quot;773&quot; height=&quot;860&quot;>
</embed>
</object>

The object tag is for IE, and the embed tag is for Netscape. The problem is with the embed tag - it does not validate to html 4.01 standard. Does anyone know a way to get round this?

Thanks a lot.
 
Remember that HTML standards are just that - a standard, not a rule. Not all browsers comply with everything in the &quot;standards&quot;, hence the need to write for cross-browser compatability. As long as your flash routine works, then don't fret about it. There's always a better way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top