PSP-Heaven
New Member
- Messages
- 428
- Reaction score
- 0
- Points
- 0
Is there a xAdvance ad code in Perl? SO I can stick the ad in my forum?:hsughwigg
use PHP::Interpreter;
my $p = PHP::Interpreter->new();
$p->include("http://staff.x10hosting.com/adCode.php?ad=advanced");
<script>
function newWindow(targetGame)
{
newWindow = window.open ('http://www.yourdomain.com/path/to/somefile.php?gamename=' + targetGame,
'newWindow', 'width=400, height=400, scrollbars=no, resizable=no, toolbar=no');
}
</script>
<a href="javascript:newWindow('abc')">Open a new window with the ABC game</a>
<?php
// Get the game passed from the Javascript link
if(isset($_GET['targetgame']))
$game = $_GET['targetgame'];
else
$game = "";
// Display the game we want depending on the name passed.
if($game == "abc") {
include("/path/to/abc/game/file");
}
else if($game == "xyz") {
include("/path/to/xyz/game/file");
}
else {
echo "Sorry, that game wasn't found.";
}
// Display the ad code.
include("http://staff.x10hosting.com/adCode.php?ad=advanced");
?>
<script>
function newWindow(targetGame)
{
window.open ('http://www.teamxl.x10hosting.com/arcade/loadgame.php?gamename=' + targetGame,
'newWindow', 'width=400, height=400, scrollbars=no, resizable=no, toolbar=no');
}
</script>
<html>
<head><title>Arcade</title></head>
<body>
<?php
// Get the game passed from the Javascript link
if(isset($_GET['targetgame']))
$game = $_GET['targetgame'];
else
$game = "";
// Display the game we want depending on the name passed.
if($game == "realinvaders") {
include("ri/ri.php");
}
else if($game == "jbreakout") {
include("jbreakout/JBreakout.php");
}
// Finish the rest of the games in your arcade using the same format
else {
echo "Sorry, that game wasn't found.";
}
// Display the ad code.
include("http://staff.x10hosting.com/adCode.php?ad=advanced");
?>
</body>
</html>
<a href="javascript:newWindow('realinvaders')">RealInvaders</a>
<a href="javascript:newWindow('jbreakout')">Java Breakout</a>
<!-- Finish the rest of the games using the same format. Note, the name passed to the javascript newWindow function must be the same as the name of a game in the loadgame.php page-->
javascript:newWindow('realinvaders')
Triggers this PHP statement:
if($game == "realinvaders") {
include("ri/ri.php");
}
<script>
function newWindow(targetGame)
{
window.open ('http://www.teamxl.x10hosting.com/loadgame.php?gamename=' + targetGame,
'newWindow', 'width=400, height=400, scrollbars=no, resizable=no, toolbar=no');
}
</script>
f($game == "realinvaders") {
include("http://www.teamxl.x10hosting.com/arcade/ri/ri.php");
}
// Get the game passed from the Javascript link
if(isset($_GET['targetgame']))
$game = $_GET['targetgame'];
else
$game = "";
// Get the game passed from the Javascript link
if(isset($_GET['gamename']))
$game = $_GET['gamename'];
else
$game = "";