Php Arcade Script Forums
May 19, 2013, 12:22:15 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Recover your password to gain access to the forum. If you own a phpAS license you don't have to register a new account.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to generate good game embed code?  (Read 2080 times)
Searchtheweb
Newbie
*
Posts: 35


View Profile Email
« on: May 24, 2011, 07:05:26 AM »

Hi,

JanArve, i would like to offer to my visitors the option to embed games from my website. Now, the code phpas 3.0 has just gives a image with a link on it to the game. What i want is to really allow user to embed my game. I would need to generate a code like: <object width="715" height="357" type="application/x-shockwave-flash" data="http://cdn6.addictinggames.com/newGames/shooting-games/clearvisioniv/clearvisioniv_w.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="transparent"></object>


What would that code look like? i managed to achieve this code but it doesn't show the game:

<object width="600" height="450"><param name="movie" value="<?=$gamefile;?>"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="<?=$gamefile;?>" type="application/x-shockwave-flash" width="600" height="450" allowscriptaccess="always" allowfullscreen="true"></embed></object>
Logged
JanArve
*
Posts: 135


View Profile Email
« Reply #1 on: May 24, 2011, 08:08:58 PM »

Hey,

The code on the end there doesn't have the path to the game file directly, so the problem is most likely with the parsing of that info on the page you have the posted code on.
Logged
Searchtheweb
Newbie
*
Posts: 35


View Profile Email
« Reply #2 on: May 25, 2011, 02:42:42 AM »

How should it look like in order for it to work ?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!