Oggi pomeriggio subito dopo mensa mi sono imbattuto in un problema interessante. Come riuscire ad inserire senza errori e senza problemi un video da YouTube nel vostro sito personale. La sfida più grossa è stata riuscire anche a fare in modo che sia un documento XHTML 1.0 valido dato che i tag <embed></embed> nn sono più supportati.

Dopo un pò di prove e di ricerche sono arrivato alla conclusione:

usa
<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.youtube.com/v/B6R2A729Q5Y"><param name="movie" value="http://www.youtube.com/v/B6R2A729Q5Y"></object>"


invece di

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/7_6B6vwE83U"></param><embed src="http://www.youtube.com/v/7_6B6vwE83U" mce_src="http://www.youtube.com/v/7_6B6vwE83U" type="application/x-shockwave-flash" width="425" height="350"></embed></object>



Noterai che questo formato lascia fuori i tag <embed></embed> e inserito in una pagina funziona senza problemi.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,
Actions: E-mail | Comments (0) | Trackback
Bookmark this: dzone it! | Del.icio.us | Technorati

Related posts

Comments

Add comment


 

  Country flag





Live preview

February 7. 2012 10:44