I think if I add some flash games into my blog, people will like to come more often. So I tried to add the game to my blog and wrote the tips down. I hope it could be helpful to you.
1. Find a url directly to the .swf file of the game, such as "http://www.example.com/flashgame.swf".
2. Edit your blogs in "Code" Mode.
Example of switching to code mode in myspace
Example of switching to code mode in wordpress.
3. Add the html codes to play flash file. The following texts in gray background are the codes to embed a .swf file into the html file.
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='flash' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='604' height='500'><param name='movie' value='http://www.example.com/flashgame.swf' /><param name='quality' value='high' /><embed src='http://www.example.com/flashgame.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='604' height='500'></embed></object>
The yellow fonts show the URL of your flash game. Replace it with your URL. The white fonts "604" show the width of the window used to play the game and the white fonts "500" are for the width. Modify them as you like to make the size of the window to fit your blog temlet.
If you are familiar with html syntax, you can also edit the style of the embedded codes.
Sometimes, a flash game site might give you the codes of games on the pages. You can copy them and paste them into your blog directly in "code" mode. I got the codes of a flash game from a game site and paste it here. The texts in gray background are got from the site.
<div style='width:500px;'><center><table width='500' cellpadding='0' cellspacing='1'><tr style='height:20px;'><td width='30%' style='text-align:center;'>Game Name:Flash-Driver</td><td width='70%' style='text-align:center;'><a href='http://www.hitfreegames.com/flash-games/full-1922/Flash-Driver.html' target=_blank>play Flash-Driver game on full screen</a></td></tr><tr><td colspan='2' style='text-align:center;'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='flash' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='604' height='500'><param name='movie' value='http://play.hitfreegames.com/flash/20071225/1922.swf' /><param name='quality' value='high' /><embed src='http://play.hitfreegames.com/flash/20071225/1922.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='604' height='500'></embed></object></td></tr><tr style='height:17px;'><td colspan='2' style='text-align:center;'><a href='http://www.hitfreegames.com'>more flash game codes for blogs</a></td></tr></table></center></div>
Print | posted on Tuesday, January 29, 2008 7:38 PM