Ad Perl Code?

PSP-Heaven

New Member
Messages
428
Reaction score
0
Points
0
I did it, now it finds the game, works great. But then, when it comes to loading the file, try the first link. It will not load it. It will then show an 'x' on the top left corner. Is there something else wrong with the code, or how I am loading the movies? Also, some games are bigger than the size of newWindow, so is there a way it automatically adjusts to how big the link requires the window? Thank you VERY much for you time.

For some reason, I checked the error log, and its looking for class.class files, i never needed that before, what are THESE files?
 
Last edited:

The_Magistrate

New Member
Messages
1,118
Reaction score
0
Points
0
Open up your http://www.teamxl.biz/arcade/ri/ri.php file and change this:

Code:
<APPLET CODE=Invaders.class  archive="RealInvaders.jar" WIDTH=550 HEIGHT=335 MAYSCRIPT>
to
Code:
<APPLET CODE=Invaders.class  archive="RealInvaders.jar" WIDTH=550 HEIGHT=335 MAYSCRIPT CODEBASE="http://www.teamxl.biz/arcade/ri/">

Then open all the other .php files for the other games and add a CODEBASE parameter for each of the other games pointing to the directory where it is stored.
 

PSP-Heaven

New Member
Messages
428
Reaction score
0
Points
0
WORKS PERFECTLY. I will be donating the points for your WONDERFUL and non-failing help for a helpless n00b like me! Now, I just have a question ive been bugging you for quite some time :), is there a way, the window automatically resizes to whatever size it calls for? Or a way, within your wonderous code, I can specify for each individual game the length and width, and not just one size fits all? If not, its alright, the code is perfect as it is!
 

The_Magistrate

New Member
Messages
1,118
Reaction score
0
Points
0
Save this new Javascript function in the head of your site instead of the other one.

Code:
<script>
function newWindow(targetGame, windowheight, windowwidth)
{
  window.open ('http://www.teamxl.biz/arcade/loadgame.php?gamename=' + targetGame,
  'newWindow', 'width=' + windowwidth, height=' + windowheight, scrollbars=no, resizable=no, toolbar=no');
}
</script>

and

Code:
<a href="javascript:newWindow('realinvaders', 550, 550)">RealInvaders</a>

The new link specifies the height and width of the window. I just copied the height and width for the example from http://www.teamxl.biz/arcade/ri/ri.php where width and height at defined in the APPLET tag. You'll have to do the same for each game, and remember to increase the height enough to show the ads below all the games.
 

PSP-Heaven

New Member
Messages
428
Reaction score
0
Points
0
I hope your not annoyed at me, the games seem to work, but, for some reason, the windows come out very skinny? Maybe an error? I dont know....
 

The_Magistrate

New Member
Messages
1,118
Reaction score
0
Points
0
Code:
<script>
function newWindow(targetGame, windowhieght, windowwidth)
{
  window.open ('http://www.teamxl.biz/arcade/loadgame.php?gamename=' + targetGame,
  'newWindow', 'width=' + windowwidth + ', height=' + windowhieght + ', scrollbars=no, resizable=no, toolbar=no');
}
</script>
 

PSP-Heaven

New Member
Messages
428
Reaction score
0
Points
0
Thank you, it all works perfectly. Once again, The_Magistrate, you have pulled through for me. I hope i dont forget to mention you in my staff....
 

The_Magistrate

New Member
Messages
1,118
Reaction score
0
Points
0
Just gives a little boost in rep points. Nothing big, and you can't buy anything with them... They are earned through hard work, and I'd like to get more than I already have.
 

PSP-Heaven

New Member
Messages
428
Reaction score
0
Points
0
Oh ok. I have another question, im so full of them! :D How can i make it, when I open a page with target="_blank" i can specify the width and hieght, with no scroll bar, status bar, etc.?
Lets use my affiliates page as an example: <a hre="http://www.teamxl.biz/affiliates.php" target="_blank" width="300" height="300" scrollbar=no statusbar=no resizeable=no>affiliates</a> That doesnt work, im just using it as an example.
 

The_Magistrate

New Member
Messages
1,118
Reaction score
0
Points
0
You can't specify the characteristics of the page like that. You have to use Javascript to make a new window like in the example I showed you. You can always copy and rename the function I gave you to make a new window with new characteristics.
 

PSP-Heaven

New Member
Messages
428
Reaction score
0
Points
0
I have a tiny problem. I added three more games, but for some reason, they are not working! I dont understand why either! I did the same for these new games, as I did for the previous, edited loadgame.php, everything, and yet, they dont work! You think you can help?
 

PSP-Heaven

New Member
Messages
428
Reaction score
0
Points
0
Found my mistake, I had stupidly added target="_blank" and it was opening it in a new window, but nothing was happening. I feel pretty stupid now....
 
Top