Ga naar inhoud

Menu


binkkie

Aanbevolen berichten

Beste PC helpforum ik ben nieuw hier en ik dacht misschien kunnen jullie me helpen ik zit met het volgende probleem : ik ben bezig met een Maffia ( crime site )

En ik ben met de voorpagina bezig ( out game )

Ik wil een menu maken ( huidige is enkel links)

Ik heb alleen een menu links maar het lukt me niet om het rechts te maken.

Dit is me code :

<?php /* ------------------------- */
 if(isset($_COOKIE['login'],$_COOKIE['validate'])) {    setcookie("login",$_COOKIE['login'],time()+24*60*60,"/","");    setcookie("validate",$_COOKIE['validate'],time()+24*60*60,"/","");  }
 include("_include-config.php");
/* ------------------------- */ ?><html>

<head><title>Mafiastreet take your drugs and money!</title>
<link rel="stylesheet" type="text/css" href="<?php echo ($_COOKIE['v'] == 2) ? "css-v2.css" : "css-v1.css"; ?>"><base target="mainFrame" />
<script language="javascript">function showMenu(id) {  if(document.getElementById(id).style.visibility == "hidden") {    document.getElementById(id).style.position      = "static";    document.getElementById(id).style.visibility    = "visible";  }  else {    document.getElementById(id).style.visibility    = "hidden";    document.getElementById(id).style.position      = "absolute";    document.getElementById(id).style.left      = -100;    document.getElementById(id).style.top       = -100;  }
 document.getElementById('mainTable').height       = '100%';}


function openChat() {  var width                     = screen.width-10;  var height                        = screen.height-100;  window.open('#','','left=0,top=0,width='+ width +',height='+ height +',toolbar=no,location=no,status=no,menubar=no,scrollbars=no');}</script>
<?php /* ------------------------- */
 $now                  = time();  print <<<ENDHTML<script language="javascript">now = new Date();dif = now.getTime() - $now*1000;
function updateTime() {  now = new Date();  now.setTime(now.getTime() - dif);
 var hour = now.getHours();  if(hour < 10)    hour = "0" + hour;  var minute = now.getMinutes();  if(minute < 10)    minute = "0" + minute;  var second = now.getSeconds();  if(second < 10)    second = "0" + second;
 document.forms[0].elements[0].value = hour +":"+ minute +":"+ second;}setInterval("updateTime()",1000);</script>ENDHTML;
/* ------------------------- */ ?></head>

<body style="margin: 5px;"><table class="main" ID="mainTable" align="center" width=800 height=100% cellpadding=0 cellspacing=0>  <tr><td width=800 height=140 style="background: url(images/criminals.gif) no-repeat top center;"></td></tr>


 <tr><td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>    <tr><td width=13 style="background: url(images/bleft.gif) left top repeat-y"></td>    <td valign="top"><table width=100% height=100% cellpadding=0 cellspacing=0>      <tr><td width=150 valign="top" align="center" style="position: relative; top: -20;"><?php /* ------------------------- */    $laatstelid = mysql_query("select `login` from `[users]` order by id desc limit 1"); $lastmember = @mysql_result($laatstelid,0,0);   $dbres                = mysql_query("SELECT `id` FROM `[users]` WHERE `activated`=1");  $members              = mysql_num_rows($dbres);  $dbres				= mysql_query("SELECT `id` FROM `[users]` WHERE `level` & 0x80 AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 ORDER BY `login`");  $adminsonline				= mysql_num_rows($dbres);  $dbres				= mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");  $online				= mysql_num_rows($dbres);  print <<<ENDHTML      <table width=150><form>    <tr><td align="center"><b>Members: $members</b></td></tr>                <tr><td align="center"><b>Nieuwste lid:</b></td></tr><br>                 <tr><td align="center"><b><FONT color="white">$lastmember</font></b></td></tr>     <tr><td align="center"><input type="text" name="time" style="text-align: center;"></td></tr>      </form></table>ENDHTML;
 if($data) {    print <<<ENDHTML      <table class="menu" width=150 cellpadding=0 cellspacing=0>        <tr><td><table width=100% cellpadding=0 cellspacing=0>        <tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('main')">#</a> </td>            <td class="menuTitle"><b>Algemeen</b></td></tr>    </table>    <table width=100% cellpadding=0 cellspacing=0 ID="main" style="position: absolute; left: -100; top: -100; visibility: hidden;">        <tr><td class="menuLink"> - <a href="home.php" class="menu">Home</a></td></tr>        <tr><td class="menuLink"> - <a href="wetboek.php" class="menu">Regels</a></td></tr>        <tr><td class="menuLink"> - <a href="sollicitatie.php" class="menu">Solliciteren</a></td></tr>        <tr><td class="menuLink"> - <a href="help.php" class="menu">Help/FAQ</a></td></tr>        <tr><td class="menuLink"> - <a href="login.php?x=logout" class="menu">Logout</a></td></tr>    </table></td></tr>      </table><br>
     <table class="menu" width=150 cellpadding=0 cellspacing=0>        <tr><td><table width=100% cellpadding=0 cellspacing=0>        <tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('control')">#</a> </td>            <td class="menuTitle"><b>User</b></td></tr>    </table>    <table width=100% cellpadding=0 cellspacing=0 ID="control">        <tr><td class="menuLink"> - <a href="hq.php" class="menu">Hoofdkwartier</a></td></tr>        <tr><td class="menuLink"> - <a href="list.php" class="menu">Member-list</a></td></tr>		<tr><td class="menuLink"> - <a href="list.php?s=online" class="menu">Online Leden ($online)</a></td></tr>		<tr><td class="menuLink"> - <a href="list.php?s=admin" class="menu">Online Admins ($adminsonline)</a></td></tr>            <tr><td class="menuLink"> - <a href="shop.php" class="menu">Shop</a></td></tr>        <tr><td class="menuLink"> - <a href="stats.php" class="menu">Statistieken</a></td></tr>        <tr><td class="menuLink"> - <a href="bank.php" class="menu">Bank</a></td></tr>        <tr><td class="menuLink"> - <a href="log.php" class="menu">Logs</a></td></tr>        <tr><td class="menuLink"> - <a href="typewijzigen.php" class="menu">Type Wijzigen</a></td></tr>        <tr><td class="menuLink"> - <a href="message.php" class="menu">Berichten</a></td></tr>        <tr><td class="menuLink"> - <a href="edit.php" class="menu">Profiel</a></td></tr>    </table></td></tr>      </table><br>
     <table class="menu" width=150 cellpadding=0 cellspacing=0>        <tr><td><table width=100% cellpadding=0 cellspacing=0>        <tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('control')">#</a> </td>            <td class="menuTitle"><b>Casino</b></td></tr>    </table>    <table width=100% cellpadding=0 cellspacing=0 ID="control">        <tr><td class="menuLink"> - <a href="casino.php?x=horserace" class="menu">Paarden Race</a></td></tr>        <tr><td class="menuLink"> - <a href="roulette.php" class="menu">Roulette</a></td></tr>	<tr><td class="menuLink"> - <a href="russischeroulet.php" class="menu">Russische Roulette</a></td></tr>	<tr><td class="menuLink"> - <a href="steen papier schaar.php" class="menu">Steen Papier Schaar</a></td></tr>        <tr><td class="menuLink"> - <a href="hogerlager.php" class="menu">Hoger of Lager</a></td></tr>        <tr><td class="menuLink"> - <a href="getallenspel.php" class="menu">Getallenspel</a></td></tr>    </table></td></tr>      </table><br>
     <table class="menu" width=150 cellpadding=0 cellspacing=0>        <tr><td><table width=100% cellpadding=0 cellspacing=0>        <tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('clan')">#</a> </td>            <td class="menuTitle"><b>Clan</b></td></tr>    </table>    <table width=100% cellpadding=0 cellspacing=0 ID="clan" style="position: absolute; left: -100; top: -100; visibility: hidden;">        <tr><td class="menuLink"> - <a href="clan.php?p=list" class="menu">Clan list</a></td></tr>ENDHTML;    if($data->clanlevel == 0) {      print "        <tr><td class=\"menuLink\"> - <a href=\"clan.php?p=join\" class=\"menu\">Aanmelden</a></td></tr>\n";      if($data->level & 0x01)        print "        <tr><td class=\"menuLink\"> - <a href=\"clan.php?p=new\" class=\"menu\">Nieuwe clan</a></td></tr>\n";    }    else {      print "        <tr><td class=\"menuLink\"> - <a href=\"clan.php?x={$data->clan}\" class=\"menu\">Clan profiel</a></td></tr>\n";      if($data->clanlevel >= 8 || $data->clanlevel == 6) {        print "        <tr><td class=\"menuLink\"> - <a href=\"clanbank.php\" class=\"menu\">Bank</a></td></tr>\n";        print "        <tr><td class=\"menuLink\"> - <a href=\"clandonate.php\" class=\"menu\">Doneren</a></td></tr>\n";        print "        <tr><td class=\"menuLink\"> - <a href=\"clanshop.php\" class=\"menu\">Bouwterrein</a></td></tr>\n";      }      if($data->clanlevel >= 8 || $data->clanlevel == 2)        print "        <tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=recruits\" class=\"menu\">Aanmeldingen</a></td></tr>\n";      if($data->clanlevel >= 8) {        print "        <tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=members\" class=\"menu\">Members</a></td></tr>\n";        print "        <tr><td class=\"menuLink\"> - <a href=\"clanmail.php\" class=\"menu\">ClanMail</a></td></tr>\n";        print "        <tr><td class=\"menuLink\"> - <a href=\"clanhq.php?p=info\" class=\"menu\">Clan info</a></td></tr>\n";      }      if($data->clanlevel > 0) {        if($data->clanlevel < 9)          print "  <tr><td class=\"menuLink\"> - <a href=\"clan.php?p=quit\" class=\"menu\">Stap uit je clan</a></td></tr>\n";        else          print "  <tr><td class=\"menuLink\"> - <a href=\"clan.php?p=delete\" class=\"menu\">Delete de clan</a></td></tr>\n";      }    }    print <<<ENDHTML    </table></td></tr>      </table>ENDHTML;
   if($data->level & 0x80) {      print <<<ENDHTML      <br>
     <table class="menu" width=150 cellpadding=0 cellspacing=0>        <tr><td><table width=100% cellpadding=0 cellspacing=0>        <tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('admin')">#</a> </td>            <td class="menuTitle"><b>Admin</b></td></tr>    </table>    <table width=100% cellpadding=0 cellspacing=0 ID="admin" style="position: absolute; left: -100; top: -100; visibility: hidden;">        <tr><td class="menuLink"> - <a href="admin.php?p=search" class="menu">Zoek</a></td></tr>        <tr><td class="menuLink"> - <a href="admin.php?p=massmsg" class="menu">Mass Message</a></td></tr>        <tr><td class="menuLink"> - <a href="admin.php?p=adminmsg" class="menu">Admin Message</a></td></tr>        <tr><td class="menuLink"> - <a href="admin.php?p=donate" class="menu">Doneer</a></td></tr>        <tr><td class="menuLink"> - <a href="admin.php?p=multi" class="menu">Multi Accounts</a></td></tr>    </table></td></tr>      </table>ENDHTML;    }    else      print "   </td>\n";  }  else {    print <<<ENDHTML      <table class="menu" width=150 cellpadding=0 cellspacing=0>        <tr><td class="menuTitle" align="center"><b>Algemeen</b></td></tr>        <tr><td class="menuLink"> - <a href="home.php" class="menu">Home</a></td></tr>        <tr><td class="menuLink"> - <a href="http://s3.invisionfree.com/CrimeWar2004" target="_blank" class="menu">Forum</a></td></tr>        <tr><td class="menuLink"> - <a href="javascript://" onClick="openChat()" class="menu">Chat</a></td></tr>        <tr><td class="menuLink"> - <a href="help.php" class="menu">Help/FAQ</a></td></tr>      </table><br>
     <table class="menu" width=150 cellpadding=0 cellspacing=0>        <tr><td class="menuLink"> - <a href="signup.php" class="menu">Aanmelden</a></td></tr>        <tr><td class="menuLink"> - <a href="login.php" class="menu">Login</a></td></tr>      </table></td>
ENDHTML;  }
/* ------------------------- */ ?>     <td width=15></td>


     <td valign="top">        <iframe src="<?php echo ($data) ? "hq.php" : "home.php" ?>" name="mainFrame" style="position: relative; top: -30;" width=575 frameborder=0 height=100%></iframe>      </td></tr>    </table></td>    <td width=20 style="background: url(images/bright.gif) right top repeat-y"></td></tr>    <tr><td width=13 style="background: url(images/cleft.gif) left bottom no-repeat"></td>    <td height=15 style="background: url(images/bbottom.gif) center bottom repeat-x"></td>    <td width=20 style="background: url(images/cright.gif) right bottom no-repeat"></td></tr>  </table>Mafiastreet</td></tr></table></body>

</html>

Weet iemand hier raad mee ?

binkkie

Link naar reactie
Delen op andere sites

×
×
  • Nieuwe aanmaken...

Belangrijke informatie

We hebben cookies geplaatst op je toestel om deze website voor jou beter te kunnen maken. Je kunt de cookie instellingen aanpassen, anders gaan we er van uit dat het goed is om verder te gaan.