This sample illustrates how to dump a list of the Top 10 Unreal Tournament 2003 maps from Mapraider.com using JScript/ASP. Keep in mind that you can display the data however you want - you don't have to list them out like this. Back to the Content Sharing Page


<%@ Language="JavaScript" %>

<!--#include file="inc.mapraider.asp"-->

<%

// ====================================================================
// MapRaider test page
// --------------------------------------------------------------------

// --------------------------------------------------------------------
// Code written by Conan Theobald and is Copyright (c)
// 2003 by Conan Theobald unless otherwise stated.
//
// Visit: www.conans.co.uk
// Email: software@conans.co.uk
// ====================================================================

// Initialization

var oMapRaider = new class_XMLMapRaider ( );

oMapRaider.IncludeFile ( 'Top10_UT2003' );
oMapRaider.Update ( );

// Display the Top-10 highest rated Unreal Tournament 2003 maps:

var sHTML = '';
var oMap = oMapRaider.FindFirst ( 'Top10_UT2003' );

do {

	sHTML +=
		'<p style="clear: both;">' +
			'<img src="' + oMap.screenshot + '" align="left" />' +
			'<b>Name:</b> ' + oMap.title + '<br />' +
			'<b>Score:</b> ' + oMap.score + '<br />' +
			'<b>Description:</b> ' + oMap.description +
		'</p>';

} while ( oMap = oMapRaider.FindNext ( ) );

Response.Write ( sHTML );

%>