Jump to content
php.lv forumi

Problēmas ar <embed> validāciju


foxsk8

Recommended Posts

Problēma sekojoša. Validātors izmet kļudu, kur paziņo, ka <embed> is not approved by W3C

 

Šeit ir kods:

 

<object width="270" height="250" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id="MediaPlayer"><param value="{URL}" name="FileName"/><param value="false" name="AutoStart"/><param value="1" name="ShowControls"/><param value="1" name="ShowStatusBar"/><param value="1" name="stretchToFit"/><param value="1" name="ShowPositionControls"/><param value="1" name="ShowAudioControls"/><param value="1" name="ShowTracker"/><param value="0" name="ShowDisplay"/><param value="0" name="ShowGotoBar"/><param value="0" name="ShowCaptioning"/><param value="0" name="AnimationAtStart"/><param value="1" name="enableContextMenu"/><param value="0" name="TransparentAtStart"/> <embed width="270" height="250" transparentatstart="0" showstatusbar="1" showcontrols="1" enablecontextmenu="1" animationatstart="0" showcaptioning="0" showgotobar="0" showdisplay="0" showtracker="1" showaudiocontrols="1" showpositioncontrols="1" autostart="0" name="MediaPlayer" src="{URL}" filename="{URL}" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" type="application/x-mplayer2"> </object>

 

Vēl problēma ir tāda, ja userim ir 11 media player, tad izmērus nevar pareizus uzlikt. Viņš ņem pēc viena standarta. Ja standarta players, tad viss ir ok.

Edited by foxsk8
Link to comment
Share on other sites

Varbuut tomeer izlasiet to ALA rakstu, pirms turpiniet dir** ka "bez embed nu nekaadi nevar".

 

Marcis, ja tu validee lapas tikai taapeec, lai ieliktu lapaa bildi 'valid html' , tad varbuut nav to veerts.

Edited by mefisto
Link to comment
Share on other sites

es nez vai es te ko nejaucu, bet flash muuvi var ielikt ar JS ieksh HTML piem shaadi:

 

JS fails

window.onload = function() { 
if (document.getElementById('fla')){
var flmv = document.getElementById('fla');
flmv.innerHTML= '<object type="application/x-shockwave-flash" data="flash.swf" width="300" height="200">'+
'<param name="movie" value="flash.swf" />'+
'<param name="quality" value="high" />'+
'<param name="wmode" value="transparent">'+
'<img src="spacer.gif" width="300" height="200" alt="No FLASH Player installed" /></object>';
}
}

 

HTML fails

 

<div id="fla"><!-- flash movie --></div>

Link to comment
Share on other sites

×
×
  • Create New...