XHTML

Embedding Flash into a hidden div

Thank Griffin for this nugget:

Griffin asked me about a bug we saw in Firefox where a Flash movie embedded into a hidden div was just plain never showing up. The fix Griffin applied while perusing W3C validates XHTML 1.0 Strict:


data=”images/ov/ov1.swf”
width=”762″ height=”440″>


Pay particular attention to that “wmode” parameter. That seems to do the trick.

Technorati Tags: , , , , ,

Flash
JavaScript
XHTML

Comments Off

Permalink

Unobtrusive Flash Objects

If you’re at all concerned about valid XHTML (like I am), it’s been a real pain to build valid XHTML pages embedded with Flash. There have been several hacks that solve the problem, but they required extra work.

That is, until now.

Authored by Bobby van der Sluis, The Unobtrusive Flash Objects (UFO) V1.0 is a DOM script that will detect and embed Flash files in your web page. It is free, open source – and it validates your XHTML Strict. It requires JavaScript, but that’s generally not a problem for those of us involved in E-Learning. If you’re doing SCORM, you can be confident that JavaScript is available.

Read about it. Try this out. The code is certainly cleaner. If your code doesn’t break, I recommend its use.

http://www.bobbyvandersluis.com/ufo/

Development
Flash
JavaScript
XHTML

Comments Off

Permalink