|
Posted by cwdjrxyz on 10/22/07 17:00
On Oct 22, 7:16 am, "K." <halinaciern...@poczta.onet.pl> wrote:
> Hello!I have a question to you.I have written such code:<object
> classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
> codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab..."
> width="1" height="1" id="tlg_odliczanie_02" align="middle">
> <param name="allowScriptAccess" value="sameDomain" />
> <param name="movie" value="images/banner/banner41.swf" />
> <param name="quality" value="high" />
> <param name="bgcolor" value="#ffffff" />
> <embed src="images/banner/banner41.swf" quality="high" bgcolor="#ffffff"
> width="1" height="1" name="tlg_odliczanie_02"
> align="middle" allowScriptAccess="sameDomain"
> type="application/x-shockwave-flash"
> pluginspage="http://www.macromedia.com/go/getflashplayer" />
> </object>Unfortunately when I validate the page byhttp://validator.w3.org
> my page gives me errors after validating.
> I cheet my page because I use above code only to make my
> page downloading flash player if it is necessary. I don`t want to
> display banner. I only want to my page shown the window
> that your browser needs downloading flash player.
> How would it be the code which let me do so? Of couse I would
> like to have a html code which is good with validator.w3.org
> standards.
> Could you write for me such code?
>
> Thank you very very much in advance
> Marcin
The main problem at the w3c validator is that embed is not and never
has been an official tag either in html or xhtml. Thus everything used
within the embed throws a validation error. The ActiveX path as
specified by the classid is taken by browsers that support it, mainly
IE and closely related ones such as MSN, ATT/Yahoo DSL etc. Most
browsers do not support ActiveX. The embed path is taken by such
browsers that do not support ActiveX. The embed path usually will
work, but it is poor code. This does not seem to bother some media
companies in code they write. However it is easy enough to write a
path for non ActiveX browsers using ordinary objects rather than
invalid embed. One can use a Microsoft conditional comments to route
to the ActiveX path for Microsoft family browsers only and to other
browsers only, for example. In some cases, an ActiveX path is not
needed, and IE will support an ordinary object. This is true for
flash, but IE will not start showing the flash display until it is
completely downloaded which can be a bother for a large flash file.
There are tricks that require a very short initial flash display to
prevent this, but I prefer to use the ActiveX path for IE to allow use
of the full range of parameters on IE browsers, if desired. I never
use a link to download flash, wmp, Real etc., because I don't think
that most viewers will be bothered to download and install a media
player when they are viewing my page.They likely will just leave the
page.
View the source code for my page at http://www.cwdjr.net/flash/Fatty.php
.. for an example of this code. If you use a Firefox browser, you must
select to view the source code before you start playing, otherwise you
will not be offered the option to view source code on right clicking
the page. The video is designed for a good broadband connection, as it
has a quite large .flv video - about 21 MB. However the source code
should be viewable on even a slow dialup connection. It should be
possible to add parameters for both paths to allow downloading of
flash, but I have never done this for reasons mentioned above. if you
want the code in html 4.01 strict, view the page on an IE browser. If
you want the code in xhtml, use most other recent browsers such as
Opera, Firefox, Seamonkey, Safari for Windows etc to view the page.
Navigation:
[Reply to this message]
|