HTML Include
It is possible to create an HTML high score list right in your game's webpage. This has the powerful feature of allowing players to see today's top scores without having to enter the game. It could look something like this:

In order for this to work, the page that is containing this table must be a PHP page as well (for example, index.php). Insert the following code into your HTML wherever you want the table to appear:
php $filen = "http://www.myscore.com/scores.php?filename=scores/score.sco&scoresize=10&action=VIEW&viewtype=HTML"; include($filen); ?>
With that code, you can have dynamic high score lists in any webpage. If you want to change the appearance of the HTML table within the HTML page, you're going to have to search in scores.php for the following code:
if ($viewtype == "HTML")
{
// HTML PAGE CREATED HERE
Below this code you will find the formatting, color, font and size settings for the table. Modify this at your own risk!
| » Level Intermediate |
|
Added: 2001-08-24 Rating: 7.93 Votes: 375 |
| » Author |
| No details available |
| » Download |
| Download the files used in this tutorial. |
| Download (147 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!