*

Recent

Author Topic: W3C embed validation  (Read 3481 times)

Dillon

  • Developer
  • Sr. Member
  • ******
  • Posts: 340
  • Force: +3/-0
    • Arcade Freak
W3C embed validation
« on: February 23, 2012, 08:24:37 PM »
Currently the W3C validation service doesnt support the embed tag. So as long as the script is using the embed tag the site page wont validate. I did some research and found how to make it validate.

Code: [Select]
------Find this code in play.php-----

<object width=\''.$r['width'].'\' height=\''.$r['height'].'\'>
<param name=\'movie\' value=\''.$domain.'/'.$gamesfolder.'/'.$r['file'].'\' />
<embed src=\''.$domain.'/'.$gamesfolder.'/'.$r['file'].'\' width=\''.$r['width'].'\' height=\''.$r['height'].'\'></embed>
</object>

------Replace with this code-----

<object type="application/x-shockwave-flash" data="'.$domain.'/'.$gamesfolder.'/'.$r['file'].'" width="'.$r['width'].'" height="'.$r['height'].'">
  <param name="movie" value="'.$domain.'/'.$gamesfolder.'/'.$r['file'].'" />
</object>

Note: this will only allow games hosted on your site to validate. If you use enabled code from another site it might not always validate depending on if they made it validate or not.
« Last Edit: February 23, 2012, 08:27:32 PM by spagetiokillers »