Click to See Complete Forum and Search --> : Not fully valid...?
JavaHead Jonnie
07-21-2004, 10:48 AM
Does anyone know of a way to get plugins (Like QuickTime and RealPlayer) to show on a page that isn't invalid HTML 4.01 Transitional? I currenly used <EMBED> tags, but they aren't valid...
Thanks & Regards, Jonnie
Charles
07-21-2004, 10:50 AM
Use the OBJECT element. See http://www.w3.org/TR/html401/struct/objects.html.
JavaHead Jonnie
07-21-2004, 11:25 AM
I'm not too sure I understand that; my code is as follows:echo ("<embed src='quicktime4_required.mov' qtsrc='tracks/" . $uri . "' id='qt' autoplay='false' controller='true' loop='false' pluginspage='http://www.apple.com/quicktime/'></embed>");But I'm not sure how I'd convert that to an <OBJECT>.
Robert Wellock
07-26-2004, 08:38 AM
You could always cheat with JavaScript though it wouldn't be very accessible or use XHTML and create the <embed /> like I did with XHTML Strict, but essentially you do what Charles said.
You'll need to use the <param> element.
For example:
<object width="100" height="100">
<param name="FileName" value="video.avi" type="video/avi" />
<param name="ShowDisplay" value="0" />
<param name="ShowControls" value="0" />
<param name="AutoStart" value="-1" />
<param name="PlayCount" value="1" />
<param name="MovieWindowWidth" value="100" />
<param name="MovieWindowHeight" value="100" />
<embed src="video.avi" autostart="true" />
<p>Fallback</p>
</object>
Obvoiusly that's not what you want but you should get the gist.
JavaHead Jonnie
08-07-2004, 02:56 PM
Thanks! That got me there (When I had time to do it :rolleyes: (;))).
Ben Rogers
08-14-2004, 08:49 PM
Well, I wouldn't say inaccessible. In order to view flash, they'd have to have decent browsers, and any normal, decent browser supports JS at least... just be sure to have a <noscript> tag if the flash is content.