How To Detect And Embed FLASH in XHTML
First of all we need to find out what's up with Flash on the client site. Easy going, thanks to Flash Player Detection Kit from Adobe (formerly Macromedia). JavaScript function JSGetSwfVer gathers basic information about the plug-in, while the DetectFlashVer Function returns has right version or even is installed. Secondly we're up to see what we can do for W3C compatiblity. Our way doing this is to forget things about the "embed" tag and handle the "object" tag in standard code. T he most important thing adapting the source code on individual Websites is to make sure that "data" holds the same value (fqdn = fully qualified domain name) as the param "movie" did - and - the "codebase" points to Macromedia's Flash download page. That works great in all browsers and we've no need for the redundant "embed" tag. Third, there's no job been done if you forgot Google, Yahoo, MSN, etc. Search engines only read the noscript part of the Flash plug-in - no big deal. The JavaScript function fx needs to be set by the parameter of the Flash file, additional parameters for controlling issues (optional), the "ID" of the Flash object (optional) and overwrites the "div" layer of the same name with the instruction fx.write("object-layer"). Thus, not contents of the "div" tags are shown, but the Flash file.
|