.We will go through three easy steps.
1) Fetch content from xtremetop100
2) Load it into an HTML-element
3) Find the correct element for votecount and retrieve it
PHP:
Code:
$voteContents = file_get_contents('http://www.xtremetop100.com/conquer-online');
Code:
<div id="voteContents" style="display: none;"><?=$voteContents?></div>
Code:
function GetVotes(serverid)
{
return $("#voteContents").find('a[href="out.php?site=' + serverid + '"]').first().parent().next(".stats1").find("span").eq(1).html();
}
Lets say we have an element with the class "voteCounts"
<span class="voteCounts"></span>
We can now do:
Code:
$(".voteCounts").text(GetVotes(1132343528))
I chose to go with PHP over JSONp for external fetching of data. Whoever uses this should also consider making an AJAX-call to populate the #voteContents once the document is ready, to avoid any possible delay.
Enjoy.






