embed html5/javascript game into wordpress post

Discussion in 'JavaScript' started by Domainer426, Oct 10, 2010.

  1. #1
    Hi,

    I want to embed html5/javascript games into individual wordpress posts (like flash games but javascript). How feasible/difficult is this to do ? I don't have programming knowledge so would it be possible to pay a programmer to set it up such that it would be easy for me to add games- or would it be a major hassle every single time adding a new game? I ask this because I did some googling and it looks like this is not a simple task. Any insight is greatly appreciated.

    Thanks
     
    Domainer426, Oct 10, 2010 IP
  2. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #2
    It's a simple task, but not how you're expecting it I think. See with flash the whole app / game is compiled into 1 file. Then you simply embed it into your site and it works fine. With HTML5 / Javascript it could be hundreds of files on the server and there is no way to embed the game. You can however simply go to the website that has the HTML5 game and view the source code. Take all the source code that has to do with the game. Keep in mind that not all the code may be displayed on the page, the page may link to external js files. Once you have all the code simply copy and past the code into your wordpress blog and it should work fine as long as you have an HTML5 compatible browser.

    Keep in mind though this may not be legal taking the code of someones hard work, but you asked how to do it and I explained. =)
     
    bigrollerdave, Oct 20, 2010 IP