- Joined
- Sep 2, 2008
- Messages
- 271
- Reaction score
- 4
how do u change the banner is there a pdf?
<!--START : Ranking -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="100"><a href="ranking.php"><img src="images/bbs_ranking_title.gif" border="0"></a></td>
<td align="right">
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td height="4"></td>
</tr>
<tr>
<td style="background-color: rgb(255, 159, 0);" height="3"></td>
</tr>
<tr>
<td height="4"></td>
</tr>
<?php
$gc = mysql_query("SELECT * FROM `characters` WHERE `gm`='0' ORDER BY `level` DESC,`exp`") or die(mysql_error());
echo "<tr>";
echo "<td>";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<tbody>";
echo "<tr>";
echo "<td rowspan=\"2\">";
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"5\">";
echo "<tbody>";
$p = 0;
while($player = mysql_fetch_array($gc) and $p <=4){
$char = $player['accountid'];
$ban1 = mysql_query("SELECT banned FROM accounts WHERE id = $char");
$ban = mysql_fetch_array( $ban1 );
if ($ban[banned] == 1) { } else { $p++;
if($player[job] == "121"){
$jobpict = "images/job_warrior.gif";
$job = "White Knight";
}else if($player[job] == "000"){
$jobpict = "images/job_beginner.gif";
$job = "Beginner";
}else if($player[job] == "100"){
$jobpict = "images/job_warrior.gif";
$job = "S*****man";
}else if($player[job] == "110"){
$jobpict = "images/job_warrior.gif";
$job = "Fighter";
}else if($player[job] == "120"){
$jobpict = "images/job_warrior.gif";
$job = "Page";
}else if($player[job] == "130"){
$jobpict = "images/job_warrior.gif";
$job = "Spearman";
}else if($player[job] == "111"){
$jobpict = "images/job_warrior.gif";
$job = "Crusader";
}else if($player[job] == "121"){
$jobpict = "images/job_warrior.gif";
$job = "White Knight";
}else if($player[job] == "131"){
$jobpict = "images/job_warrior.gif";
$job = "Dragon Knight";
}else if($player[job] == "112"){
$jobpict = "images/job_warrior.gif";
$job = "Hero";
}else if($player[job] == "122"){
$jobpict = "images/job_warrior.gif";
$job = "Paladin";
}else if($player[job] == "132"){
$jobpict = "images/job_warrior.gif";
$job = "Dark Knight";
}else if($player[job] == "200"){
$jobpict = "images/job_magician.gif";
$job = "Magician";
}else if($player[job] == "210"){
$jobpict = "images/job_magician.gif";
$job = "F/P Wizard";
}else if($player[job] == "220"){
$jobpict = "images/job_magician.gif";
$job = "I/L Wizard";
}else if($player[job] == "230"){
$jobpict = "images/job_magician.gif";
$job = "Cleric";
}else if($player[job] == "211"){
$jobpict = "images/job_magician.gif";
$job = "F/P Mage";
}else if($player[job] == "221"){
$jobpict = "images/job_magician.gif";
$job = "I/L Mage";
}else if($player[job] == "231"){
$job = "Priest";
$jobpict = "images/job_magician.gif";
}else if($player[job] == "212"){
$jobpict = "images/job_magician.gif";
$job = "F/P Arch Mage";
}else if($player[job] == "222"){
$jobpict = "images/job_magician.gif";
$job = "I/L Arch Mage";
}else if($player[job] == "232"){
$jobpict = "images/job_magician.gif";
$job = "Bishop";
}else if($player[job] == "300"){
$jobpict = "images/job_bowman.gif";
$job = "Bowman";
}else if($player[job] == "310"){
$jobpict = "images/job_bowman.gif";
$job = "Hunter";
}else if($player[job] == "320"){
$jobpict = "images/job_bowman.gif";
$job = "Crossbowman";
}else if($player[job] == "311"){
$jobpict = "images/job_bowman.gif";
$job = "Ranger";
}else if($player[job] == "321"){
$jobpict = "images/job_bowman.gif";
$job = "Sniper";
}else if($player[job] == "312"){
$jobpict = "images/job_bowman.gif";
$job = "Bow Master";
}else if($player[job] == "322"){
$jobpict = "images/job_bowman.gif";
$job = "Crossbow Master";
}else if($player[job] == "400"){
$jobpict = "images/job_thief.gif";
$job = "Rogue";
}else if($player[job] == "410"){
$jobpict = "images/job_thief.gif";
$job = "Assassin";
}else if($player[job] == "420"){
$jobpict = "images/job_thief.gif";
$job = "Bandit";
}else if($player[job] == "411"){
$jobpict = "images/job_thief.gif";
$job = "Hermit";
}else if($player[job] == "421"){
$jobpict = "images/job_thief.gif";
$job = "Chief Bandit";
}else if($player[job] == "412"){
$jobpict = "images/job_thief.gif";
$job = "Night Lord";
}else if($player[job] == "422"){
$jobpict = "images/job_thief.gif";
$job = "Shadower";
}else if($player[job] == "510"){
$jobpict = "images/job_gm.gif";
$job = "SuperGM";
}
if ($p == 1){ // displays the character avatar
echo "<tr>";
echo "<td rowspan=6>";
echo "<img src=\"ranking/character/characterdisplay.php?char=".$player['name']."\" border=\"0\" name=\"top5\">";
echo "</td>";
echo "</tr>";
}
echo "<script type=\"text/javascript\">var image = new Image(); image.src = \"ranking/character/characterdisplay.php?char=".$player['name']."\";</script>"; // pre-loads the character images for better viewing
echo "<tr onmouseover=\"roll('top5', 'ranking/character/characterdisplay.php?char=".$player['name']."'); this.style.backgroundColor='#F0F0F0';\" onMouseOut=\"this.style.backgroundColor='#FFFFFF'\">"; // character avatar changing on mouseover/mouseout
echo "<td width=\"16\"><img src=\"images/bbs_ranking_no0".$p.".gif\" width=\"14\" height=\"15\"></td>";
echo "<td><a href=\"player.php?name=".$player['name']."\"><b><font size=-2>".$player['name']."</font><b/></a></td>";
echo "<td><font size=-2>".$player['level']."</font></td>";
echo "<td><font size=-2>".$job."</font></td>";
echo "</tr>";
}
}
echo "</tbody>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "</tbody>";
echo "</table>";
echo "</td>";
echo "</tr>";
?>
</tbody></table>
<script language="javascript">
function changeRankAvatar(intRank)
{
document.getElementById("RankAvatar").innerHTML = document.getElementById("RankAvatar_"+intRank).innerHTML;
document.getElementById("RankAvatar").background = document.getElementById("RankPetAvatar_"+intRank).innerHTML;
}
</script>
<script language="javascript">changeRankAvatar(1)</script>
<!--END : Ranking -->
window.on.error = errorhandler;
function.errorhandler( msg, url, In){
alert("Error: "+msg+"\nIn File: "+url+"\nAt Line: "+In);
return true;
}
<script type="text/javascript">
function handleError() {
return true;
}
window.onerror = handleError;
</script>