Jump to content
MakeWebGames

Recommended Posts

Posted

hey i created 3 images for my menu top middle and bottom how do i put it on my main menu im not to sure how to do that i know its some css not sure though :'(

here is my main menu if you can do it :D

 

<?php
global $db,$c,$ir, $set;
$time='unix_timestamp()'-'13500';
$atime='unix_timestamp()';
$q=$db->query("SELECT laston FROM users");
$membs=$db->num_rows($q);
$onmembs=$db->query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60"); 
$onmembs=$db->num_rows($onmembs); 
$offmembs=$db->query("SELECT * FROM users WHERE laston<unix_timestamp()-15*60"); 
$offmembs=$db->num_rows($offmembs); 
$hit = mysql_query("SELECT * FROM hitmanslist WHERE id!=0") or die(mysql_error());
$hit_count = mysql_num_rows($hit);
$hc=$set['hospital_count'];
$jc=$set['jail_count'];
$ec=$ir['new_events'];
$mc=$ir['new_mail'];


print "<P ALIGN='center'><table border=0 width=80% class='table'>


<tr>
<th><center><font color=white>Killah Menu</font></center></th>
<tr>
<td>";

 print "<P ALIGN='center'>[url='index.php']Home[/url]

                        [url='inventory.php']Inventory[/url]
";

if($ec > 0) { print "[url='events.php']<font color=red>Events ($ec)</font>[/url]
"; }
else { print "[url='events.php']Events (0)[/url]
"; }
if($mc > 0) { print "[url='mailbox.php']<font color=red>Mailbox ($mc)</font>[/url]
"; }
else { print "[url='mailbox.php']Mailbox (0)[/url]
"; }
print "[url='explore.php']Explore[/url]

[url='chat.php']Chat![/url]

[url='gym.php']Gym[/url]

[url='criminal.php']Crimes[/url]

[url='job.php']Your Job[/url]

[url='education.php']Education[/url]

[url='services.php?act=view_hosp']Hospital ($hc)[/url]

[url='services.php?act=view_jail']Jail ($jc)[/url]

[url='announcements.php']Announcements ({$ir['new_announcements']})[/url]

[url='hitmanlist.php']Bounty ($hit_count)[/url]

[url='forums.php']Forums[/url]

[url='newspaper.php']Newspaper[/url]

[url='search.php']Search[/url]

[url='advsearch.php']Advanced Search[/url]

[url='usersonline.php']Users Online[/url]
";
if(!$ir['jail'] && $ir['gang'])
{
 print "[url='yourgang.php']Your Gang[/url]
";
}
print "</td>
</tr>
<th><center><font color=white>Member Stats</font</center></th>
<tr>
<td>
Users Online: {$onmembs}

Users Offline: {$offmembs}

Total Users: {$membs}

</td>
</tr>
";
if($ir['user_level'] > 1)
{
print "<th><center><font color=white>Staff Only</font></center></th>
<tr>
<td>";
 echo "[url='staff.php']Staff Panel[/url]
";
if($ir['user_level'] == 2)
{
print "";
}
print "</td></tr>";
}
print "<th><center><font color=white>Staff Online</font></center></th>
<tr>
<td>";
if($ir['user_level'] == 99999)
{
 print "";
}
else
{
 $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level > 1 ORDER BY userid ASC");
 while($r=$db->fetch_row($q))
 {
   $la=time()-$r['laston'];
   $unit="secs";
   if($la >= 60)
   {
     $la=(int) ($la/60);
     $unit="mins";
   }
   if($la >= 60)
   {
     $la=(int) ($la/60);
     $unit="hours";
     if($la >= 24)
     {
       $la=(int) ($la/24);
       $unit="days";
     }
   }
   print "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) [url='mailbox.php?action=compose&ID={$r['][M][/url]
";
 }
}
print "</td>
</tr>";
if($ir['donatordays'])
{
print "<th><center><font color=white>Donators Only</font></center></th>
<tr>
<td>
 [url='friendslist.php']Friends List[/url]

 [url='blacklist.php']Black List[/url]
</td>
</tr>";
}
print "<th><center><font color=white>Your Account</font></center></th>
<tr>
<td>
[url='sug.php']Suggestions[/url]

";
if($set['stafflock'] == 'Locked')
{
echo "$T[url='']<s>Staff Applications</s>[/url]
";
}
else if($set['stafflock'] == 'Unlocked')
{
echo "$T[url='StaffApps.php']Staff Applications[/url]
";
}
echo "
[url='preferences.php']Preferences[/url]

[url='preport.php']Player Report[/url]

[url='breport.php']Bug Report[/url]

[url='helptutorial.php']Help Tutorial[/url]

[url='viewuser.php?u={$ir[']My Profile[/url]

[url='refpage.php']My Referals[/url]

[url='logout.php']Logout[/url]
</td>
</tr>";
print "<th><center><font color=white>Server Time</font></center></th>
<tr>
<td><center>";
echo date ('F j, Y')."
".date('g:i:s a');
echo "
</center></td>
</tr>
</td>
</table>
";
?>
Posted

Re: Main Menu Image Back Ground

hmmm, definetly into <td> tags, also you can cut the middle image down to a few pixels height as you can use repeat-y to make it use the entire <td> height

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...