foxsk8 Posted February 10, 2008 Report Share Posted February 10, 2008 (edited) 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 February 10, 2008 by foxsk8 Link to comment Share on other sites More sharing options...
IM24LV Posted February 10, 2008 Report Share Posted February 10, 2008 Ieteikums - lieto flash vai ko citu, šāds veids vnk ir vēsture, ko pats redzi ka w3c neatbalsta... Link to comment Share on other sites More sharing options...
andrisp Posted February 10, 2008 Report Share Posted February 10, 2008 IM24LV, lai flashu lietotu gan uz IE, gan FF, tāpat nāksies embed tagu izmantot. :) Link to comment Share on other sites More sharing options...
mefisto Posted February 11, 2008 Report Share Posted February 11, 2008 o rly ?! Ehh .. http://www.alistapart.com/articles/byebyeembed Link to comment Share on other sites More sharing options...
Evi Posted February 11, 2008 Report Share Posted February 11, 2008 Ar JS smuki var ielikt flash, un tad laadeejas tavs flash lpp-aa peedeejais un nav active-x bordera. Link to comment Share on other sites More sharing options...
Aleksejs Posted February 11, 2008 Report Share Posted February 11, 2008 Evi, varbūt piemēru kādu? Link to comment Share on other sites More sharing options...
andrisp Posted February 11, 2008 Report Share Posted February 11, 2008 Evi, un tad vai tad HTML (embed, whatever) nav jāizmanto ? :) Link to comment Share on other sites More sharing options...
marcis Posted February 11, 2008 Report Share Posted February 11, 2008 Ar JS <embed> arī ir, tikai tiek drukāts ar JS, tādejādi embed'u var ieraudzīt tikai apskatot ģenerēto sourci un w3c to nedara Link to comment Share on other sites More sharing options...
mefisto Posted February 11, 2008 Report Share Posted February 11, 2008 (edited) 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 February 11, 2008 by mefisto Link to comment Share on other sites More sharing options...
andrisp Posted February 11, 2008 Report Share Posted February 11, 2008 mefisto, var būt iedziļinies par ko pēdējie teikumi ir, pirms lēkā. Link to comment Share on other sites More sharing options...
mefisto Posted February 11, 2008 Report Share Posted February 11, 2008 Evi, un tad vai tad HTML (embed, whatever) nav jāizmanto ? :) EMBED nav jizmanto vispr. Punkts. Link to comment Share on other sites More sharing options...
andrisp Posted February 11, 2008 Report Share Posted February 11, 2008 Es tikai gribēju pateikt, ka nav jau svarīgi kā tu ievieto to flash - pa taisno vai ar JS, ja izmanto nevalīdu html, tad tas paliek nevalīds html. Punktotājs atradies. Link to comment Share on other sites More sharing options...
mefisto Posted February 11, 2008 Report Share Posted February 11, 2008 Es tieshaam, tieshaam centos tai teikumaa shaadu jeegu sasktatii, bet man tieshaam nesanaaca. =P P.S> runa nav par flash. Link to comment Share on other sites More sharing options...
andrisp Posted February 11, 2008 Report Share Posted February 11, 2008 mefisto, nu tur es neko nevaru padarīt, tādā gadijumā. Nujā - par to flashu sajaucu. Link to comment Share on other sites More sharing options...
Evi Posted February 11, 2008 Report Share Posted February 11, 2008 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 More sharing options...
Recommended Posts