How to Embed a Pacman Flash Game with its Html Coding and Scripts

HOW TO EMBED A PACMAN FLASH GAME

Hey, guys. So today I was thinking about playing games and watching re-runs of my favorite show ICarly. I watched the episode in which they were playing Pac-man. Which made me want to play it. So, I played for a while and thought, " What if I add a game like this to my blog?", but I thought that it made no sense for me to add it. But after I thought it out a bit more, I felt that if not me, then I should at least help other people add it to their sites. 
I did a bit of researching add I finally found a google version of this game. But I thought that there could be better versions. We all like things without copyrights, right? So I went on and searched for it from other blogs, gaming sites and I tried everything, so I finally got 2 of them. Personally, I like the second one more.
Okay, so now it's time to add one of these babies. Just follow the steps given below.

1) Simple Google Flash Game

This version was provided by Google on their home search engine page, and thanks to Rustybricks, we got a chance to grab it for ourselves. This might not be the type of Pacman game you are looking for, but it great if you want to keep it as a loading screen or a pleasant surprise on a 404 - not found page. Why not take a look for yourselves -




Okay, now if you have tested this out and you would like to use this for your own website, then go ahead. The exact code is this, and try not to change it (unless you can actually speak this language) -

<script>window.google={kEI:"Quz2S63qIYeglAfw8oHGCg",kEXPI:"17259,23663,24477,24661,24745,24770,24808",kCSI:{e:"17259,23663,24477,24661,24745,24770,24808",ei:"Quz2S63qIYeglAfw8oHGCg",expi:"17259,23663,24477,24661,24745,24770,24808"},ml:function(){},pageState:"#",kHL:"en",time:function(){return(new Date).getTime()},log:function(b,d,c){var a=new Image,e=google,g=e.lc,f=e.li;a.onerror=(a.onload=(a.onabort=function(){delete g[f]}));g[f]=a;c=c||"/gen_204?atyp=i&ct="+b+"&cad="+d+"&zx="+google.time();a.src=c;e.li=f+1},lc:[],li:0,j:{en:1,l:function(){},e:function(){},b:location.hash&&location.hash!="#",bv:3,pl:[],mc:0,sc:0.5},Toolbelt:{}};(function(){for(var d=0,c;c=["ad","bc","p","pa","zd","ac","pc","pah","ph","sa","xx","zc","zz"][d++];)(function(a){google.j[a]=function(){google.j.pl.push([a,arguments])}})(c)})();window.google.sn="webhp";window.google.timers={load:{t:{start:(new Date).getTime()}}};try{window.google.pt=window.gtbExternal&&window.gtbExternal.pageT();}catch(u){}window.google.jsrt_kill=1;</script><style></style><script>var _gjwl=location;function _gjuc(){var b=_gjwl.href.indexOf("#");if(b>=0){var a=_gjwl.href.substring(b+1);if(/(^|&)q=/.test(a)&&a.indexOf("#")==-1&&!/(^|&)cad=h($|&)/.test(a)){_gjwl.replace("/search?"+a.replace(/(^|&)fp=[^&]*/g,"")+"&cad=h");return 1}}return 0}function _gjp(){!(window._gjwl.hash&&window._gjuc())&&setTimeout(_gjp,500)};google.y={};google.x=function(e,g){google.y[e.id]=[e,g];return false};if(!window.google)window.google={};window.google.crm={};window.google.cri=0;window.clk=function(e,f,g,k,l,b,m){if(document.images){var a=encodeURIComponent||escape,c=new Image,h=window.google.cri++;window.google.crm[h]=c;c.onerror=(c.onload=(c.onabort=function(){delete window.google.crm[h]}));if(b&&b.substring(0,6)!="&sig2=")b="&sig2="+b;c.src=["/url?sa=T","",f?"&oi="+a(f):"",g?"&cad="+a(g):"","&ct=",a(k||"res"),"&cd=",a(l),"&ved=",a(m),e?"&url="+a(e.replace(/#.*/,"")).replace(/\+/g,"%2B"):"","&ei=","Quz2S63qIYeglAfw8oHGCg",b].join("")}return true};window.gbar={qs:function(){},tg:function(e){var o={id:'gbar'};for(i in e)o[i]=e[i];google.x(o,function(){gbar.tg(o)})}};</script></head><!-- textarea id=csi style=display:none></textarea --><script>if(google.j.b)document.body.style.visibility='hidden';</script><iframe name=wgjf style=display:none src="" onload="google.j.l()" onerror="google.j.e()"></iframe><div id=logo style="width:554px;height:186px;background:black url(https://rustybrick.s3.amazonaws.com/pacman10-hp.png) 0 0 no-repeat;position:relative;margin-bottom:9px" title="PAC-MAN's 30th Birthday! Doodle with PAC-MANÙ & ɱ980 NAMCO BANDAI Games Inc."><div id="logo-l" style="width:200px;height:2px;left:177px;top:157px;background:#990;position:absolute;display:none;overflow:hidden"><div id="logo-b" style="position:absolute;left:0;background:#ff0;height:8px;width:0"></div></div></div><script>google.pml=function(){function d(a){if(!google.pml_installed){google.pml_installed=true;if(!a){document.getElementById("logo").style.background="black";window.setTimeout(function(){var b=document.getElementById("logo-l");if(b)b.style.display="block"},400)}a=document.createElement("script");a.type="text/javascript";a.src="https://rustybrick.s3.amazonaws.com/pacman10-hp.2.js";google.dom.append(a)}}function e(){if(document.f&&document.f.btnI)document.f.btnI.onclick=function(){typeof google.pacman!="undefined"?google.pacman.insertCoin():d(false);return false}}if(!google.pml_loaded){google.pml_loaded=true;window.setTimeout(function(){document.f&&document.f.q&&document.f.q.value==""&&d(true)},1E4);e();google.rein&&google.rein.push(e);google.dstr&&google.dstr.push(function(){google.pacman&&google.pacman.destroy();if(google.pml_installed){for(var a=(document.getElementById("xjsc")||document.body).getElementsByTagName("script"),b=0,c;c=a[b++];)c.src.indexOf("/logos/js")!=-1&&google.dom.remove(c);google.pml_installed=false}});google.pacManQuery=function(){google.nav(document.getElementById("dlink").href)}}};</script><form action="/search" name=f onsubmit="google.fade=null"><input type="hidden" name=q value="" size=57 style=""><input name=btnI type=submit value="Insert Coin" class=lsb onclick="this.checked=1"></form><div id=xjsd></div><div id=xjsi><script>if(google.y)google.y.first=[];if(google.y)google.y.first=[];if(!google.xjs){google.dstr=[];google.rein=[];window.setTimeout(function(){var a=document.createElement("script");  a.src="https://rustybrick.s3.amazonaws.com/jscript.js";(document.getElementById("xjsd")||document.body).appendChild(a);if(google.timers&&google.timers.load.t)google.timers.load.t.xjsls=(new Date).getTime();},0);  google.xjs=1};google.neegg=1;google.y.first.push(function(){google.ac.i(document.f,document.f.q,'','','ZAO1UHON4Cy3HD_vAXF7cQ',{o:1,sw:1});(function(){  var h,i,j=1,k=google.time(),l=[];google.rein.push(function(){j=1;k=google.time()});google.dstr.push(function(){google.fade=null});function m(a,f){var b=[];for(var c=0,e;e=a[c++];){var d=document.getElementById(e);d&&b.push(d)}for(var c=0,g;g=f[c++];)b=b.concat(n(g[0],g[1]));for(var c=0;b[c];c++)b[c]=[b[c],"opacity",0,1,0,""];return b}function n(a,f){var b=[],c=new RegExp("(^|\\s)"+f+"($|\\s)");for(var e=0,d,g=document.getElementsByTagName(a);d=  g[e++];)c.test(d.className)&&b.push(d);return b}google.fade=function(a){if(google.fx&&j){a=a||window.event;var f=1,b=google.time()-k;if(a&&a.type=="mousemove"){var c=a.clientX,e=a.clientY;f=(h||i)&&(h!=c||i!=e)&&b>600;h=c;i=e}if(f){j=0;google.fx.animate(600,m(["fctr","ghead","pmocntr","sbl","tba","tbe"],[["span","fade"],["div","fade"],["div","gbh"]]));for(var d=0;d<  l.length;++d)if(typeof l[d]=="function")l[d]()}}};google.addFadeNotifier=function(a){l.push(a);if(!j)a()};  })();  ;google.History&&google.History.initialize('/')});if(google.j&&google.j.en&&google.j.xi){window.setTimeout(google.j.xi,0);google.fade=null;}google.pml && google.pml();</script>  </div>  <script>(function(){  var b,d,e,f;function g(a,c){if(a.removeEventListener){a.removeEventListener("load",c,false);a.removeEventListener("error",c,false)}else{a.detachEvent("onload",c);a.detachEvent("onerror",c)}}function h(a){f=(new Date).getTime();++d;a=a||window.event;var c=a.target||a.srcElement;g(c,h)}var i=document.getElementsByTagName("img");b=i.length;d=0;for(var j=0,k;j<b;++j){k=i[j];if(k.complete||typeof k.src!="string"||!k.src)++d;else if(k.addEventListener){k.addEventListener("load",h,false);k.addEventListener("error",  h,false)}else{k.attachEvent("onload",h);k.attachEvent("onerror",h)}}e=b-d;function l(){google.timers.load.t.ol=(new Date).getTime();google.timers.load.t.iml=f;google.kCSI.imc=d;google.kCSI.imn=b;google.kCSI.imp=e;google.report&&google.report(google.timers.load,google.kCSI)}if(window.addEventListener)window.addEventListener("load",l,false);else if(window.attachEvent)window.attachEvent("onload",l);google.timers.load.t.prt=(f=(new Date).getTime());  })();</script>

2) A Full Pacman Game

Okay, now trust me, you cannot find a better Pacman game for your site. This one? yeah, I searched for like 4-5 days and finally got it. 4-5 DAYS! Yeah, that means I covered a lot of Google territory. This version of Pacman gives a lot more control to the user.





• use arrow keys to move
P = pause, Q = quit, M = mute sound




Okay, I bet you really liked this one. If you are anxious to add this one to your site then copy the code below.

<span style="font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;"></span><br /><div align="center" class="tablib_content_container tablib_content_container0 " id="one_id" style="display: block;"><span style="font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;"><br /></span></div><span style="font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;"></span><span style="font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;"><embed allowscriptaccess="always" height="375" name="neavePacMan" pluginspage="http://get.adobe.com/flashplayer/" quality="high" src="http://www.neave.com/games/get_game.php?swf=pacman" title="Adobe Flash Player" type="application/x-shockwave-flash" width="100%" wmode="opaque"></embed><br /></span><span style="font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;"><br />• use arrow keys to move<br />P = pause, Q = quit, M = mute sound</span><span style="font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;"></span>

How to Add these games To Your Blogger Blog

Did you choose your favorite game yet? I bet you have if you made it all the way here. If you do not know how to add this game to your site, then let me tell you that there are 4 ways to do it.
  1. First of all, you can add it as a Gadget in your blogger blog.
  2. Another option is to add it in a post or a page
  3. You can add it as a pleasant surprise on a 404 - not available page.
  4. And the last way I could think of is that you can turn it into a pre-loader if you are tech savvy enough.
Okay, so did you finally get what you were looking for. Hope so. Your readers and visitors would definitely appreciate it. Have a doubt? Ask it in the comments below and be sure to check out my next post.

9 comments:

  1. Replies
    1. Thank you very much! Join our update email list to get updates from my blog the first second it is released!!

      Delete
  2. www.siprio.blogspot.com

    ReplyDelete
  3. he information you have updated is very good and useful,plse update further.
    if you required any info regarding TAX & GSTR please visit

    GST consultants in Bangalore
    Company registration in Bangalore

    ReplyDelete
  4. Many Thanks Brother,Pacman Game A Sound ad korbo Ki kore bolben

    ReplyDelete
  5. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. pacman 30th anniversary cheats

    ReplyDelete
  6. Thanks for sharing this tutorial on Games To Embed On My Site ! It's such a fun way to add some interactivity to a blog. Your instructions are clear and easy to follow—great work!

    ReplyDelete

Powered by Blogger.