Как да оправя този буг ?

jeekito

Registered
вижте http://img843.imageshack.us/i/screenwz.png/
http://img828.imageshack.us/i/screen2yq.png/
защо вместо горе го изкарва долу
ето индекса






<?php
session_start();
ob_start();
include("config.php");
if($_SERVER['HTTP_CONNECTION'] != NULL)
{
$name = $_SESSION['name'];
$s = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE name = '$name'"));
$ban = $s['ban'];
$bandsc = $s['bandsc'];
if($ban == "1") { echo "
<style>
body {
font-size: 20pt;
background-color: #1d2022; background-image: url('theme/titlefon2.png');
color: #ffffff;
cursor : default;
}
</style>
<center><font color=red><h1>Нямаш Достъп до сайта.</font></h1><br /><br /><font color=orange><h3>Причина:</font><br /><font color=green>$bandsc</font><br /><br /><a href='sms9.php'>Изчисти Банн от ТУК</a></h3></center>"; }
else {
echo '
<head>
<title>fastandfuryios.tk</title>
<link rel="stylesheet" type="text/css" href="theme/style.css">
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">
<script src="progress.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

</head>

';

include("bgtopconf.php");
$sql = mysql_query("SELECT ctime FROM $dbtable WHERE ip=\"$ip\"");
if($row = mysql_fetch_array($sql)) {
$calc = $row['ctime'] + $vtime;
if ($calc < $time) { show(); }
}
else { show(); }
echo '
<html>
<body vlink="#000000" link="#000000">
<div style="padding: 0px; overflow: hidden; visibility: hidden; position: absolute; width: 0px; left: 0px; top: 0px;" id="WzTtDiV"></div>
<table align="center" border="0" cellpadding="5" cellspacing="0">
<center><div id="header"></center>
</tbody></table>
';

include "menu5.php";
echo '
<tr><td class="outer" style="padding-top: 10px; padding-bottom: 10px;" align="center">
';

include("check.php");

$url="$_SERVER[REQUEST_URI]";
$newurl=explode("/", $url);

if($_GET['a']) {
$page = htmlspecialchars($_GET['a']);
if (file_exists("$page.php")){
$p=@ include("$page.php");
}else{
echo "<center><b>Няма такава страница, моля върнете се !</b></center>";
}
}else{
include "news.php";
}
echo '
</td></tr></tbody></table>
';

include "reklama.php";

}



}
else
{
echo "
<style>
body {
font-size: 20pt;
background-color: #1d2022; background-image: url('theme/titlefon2.png');
color: #ffffff;
cursor : default;
}
</style>
<center><font color=red><h1>Къде отиваш Гоошшооо!!!</font></h1>";
}
?>
<title>jQuery Scroll to Top</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jquery.scroll.pack.js" type="text/javascript"></script>
<script src="js/jquery.easing.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#toTop").scrollToTop({speed:1000,ease:"easeOutBounce",start:500});
});
</script>
<a href="#" id="toTop">^ Върни се горе</a>


<?php
if($_SESSION['name']) {
include("facebook.php");
}
?>



плс помогнете
 
Така?

PHP:
<?php
session_start();
ob_start();
include("config.php");
if($_SERVER['HTTP_CONNECTION'] != NULL)
{
$name = $_SESSION['name'];
$s = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE name = '$name'"));
$ban = $s['ban'];
$bandsc = $s['bandsc'];
if($ban == "1") { echo "
<style>
body {
font-size: 20pt;
background-color: #1d2022; background-image: url('theme/titlefon2.png');
color: #ffffff;
cursor : default;
}
</style>
<center><font color=red><h1>Нямаш Достъп до сайта.</font></h1><br /><br /><font color=orange><h3>Причина:</font><br /><font color=green>$bandsc</font><br /><br /><a href='sms9.php'>Изчисти Банн от ТУК</a></h3></center>"; }
else {
echo '
<head>
<title>fastandfuryios.tk</title>
<link rel="stylesheet" type="text/css" href="theme/style.css">
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">
<script src="progress.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

</head>

';

include("bgtopconf.php");
$sql = mysql_query("SELECT ctime FROM $dbtable WHERE ip=\"$ip\"");
if($row = mysql_fetch_array($sql)) {
$calc = $row['ctime'] + $vtime;
if ($calc < $time) { show(); }
}
else { show(); }
echo '
<html>
<body vlink="#000000" link="#000000">
<div style="padding: 0px; overflow: hidden; visibility: hidden; position: absolute; width: 0px; left: 0px; top: 0px;" id="WzTtDiV"></div>
<table align="center" border="0" cellpadding="5" cellspacing="0">
<center><div id="header"></center>
</tbody></table>
';

include "menu5.php";
echo '
<table align="right"><tr><td class="outer" style="padding-top: 10px; padding-bottom: 10px;" align="center">
';

include("check.php");

$url="$_SERVER[REQUEST_URI]";
$newurl=explode("/", $url);

if($_GET['a']) {
$page = htmlspecialchars($_GET['a']);
if (file_exists("$page.php")){
$p=@ include("$page.php");
}else{
echo "<center><b>Няма такава страница, моля върнете се !</b></center>";
}
}else{
include "news.php";
}
echo '
</td></tr></tbody></table>
';

include "reklama.php";

}



}
else
{
echo "
<style>
body {
font-size: 20pt;
background-color: #1d2022; background-image: url('theme/titlefon2.png');
color: #ffffff;
cursor : default;
}
</style>
<center><font color=red><h1>Къде отиваш Гоошшооо!!!</font></h1>";
}
?>
<title>jQuery Scroll to Top</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jquery.scroll.pack.js" type="text/javascript"></script>
<script src="js/jquery.easing.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#toTop").scrollToTop({speed:1000,ease:"easeOutBounce",start:500});
});
</script>
<a href="#" id="toTop">^ Върни се горе</a>


<?php
if($_SESSION['name']) {
include("facebook.php");
}
?>
 
Така доиде в средата ето снимка
http://img827.imageshack.us/f/snimka.png/
доиде в средата но трябва да се вдигне нагоре
как да го вдигна ?
 
Стила на менюто ли или на саита
ето на саита
Код:
body {
	font-family: "tahoma", "arial", "helvetica", "sans-serif";
	font-size: 8pt;
background-color: #1d2022; background-image: url('site_bg.gif');
  color: #ffffff;
  cursor : default;
  margin-top: 0px;
  margin-bottom: 0px;
  width: 1005px;
padding: 0;
margin: 0 auto;
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #ffffff;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color:  #004499;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: white;
}

table {

   background-color: #3e3e3e;
}

table.message {
  border: solid #ffffff 1px;
}
table.xx {
  border: solid #fafafa 1px;
}
table.main, table.mainouter {
background-color: #373737;
width: 1001px;
padding: 0;
margin: 0 auto;
}

table.bottom {
background-color: #1d2022;
}
table.menustatistika {
background-color: #61a7d5;
 background-image: url('userlinks.gif');
}
table.menustatistika2 {
background-color: #1d2022;
 background-image: url('userlinks2.gif');
}
table.menustatistika3 {
background-color: #1d2022;
 background-image: url('userlinks3.gif');
}
table.test {
background-color: #1d2022;
}
h1 {
  font-size: 12pt;
}

h2 {
  font-size: 10pt;
  margin-bottom: 6px;
}

p {
	font-size: 8pt;
}

p.sub {
  margin-bottom: 4pt;
}

td {
	font-size: 9pt;
	border: solid #1fa5fb 1px;
}

td.embedded {
   border: none;
   padding: 0px;
   text-align: left;
}


#header { background-image: url("img/logo.jpg"); width:1001px; height:174px; }


td.bottom {
  border: none;
}

td.heading {
  font-weight: bold;
}

td.text {
  padding: 10pt;
  text-align: left;
}

td.comment {
  padding: 10pt;
  font-size: 8pt;
  text-align: left;
}

td.colhead {
  font-weight: bold;
  color: #484848;
  background-image: url(http://img.zamunda.net/pic/bar.gif);
}
td.colheadd {
  font-weight: bold;
  color: #484848;
  background-image: url(http://img.zamunda.net/pic/bar1.gif);
}

td.rowhead {
  font-weight: bold;
  text-align: right;
  vertical-align: top;
}

td.title {
	font-size: 14pt;
}

td.navigation {
	font-weight: bold;
	font-size: 10pt;
   border: none;
}

td.clear {
  padding: 0px;
  border: 0px;
  background: transparent;
}

form {
	margin-top: 0;
	margin-bottom: 0;
}

.sublink {
	font-style: italic;
	font-size: 7pt;
	font-weight: normal;
}

font.gray
{
  color: #ACA899;
  text-decoration: underline;
}

a:link, a:visited {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
}

a:hover {
  color: #ff0c00;
  text-decoration: underline;
}

a.index {
	font-weight: bold;
}

a.biglink {
	font-weight: bold;
	font-size: 12pt;
}

a.altlink:link, a.altlink:visited{
	font-weight: bold;
	color: #A83838;
	text-decoration: none;
}

a.altlink:hover {
  text-decoration: underline;
}

.important {
	font-weight: bold;
	font-size: 8pt;
}

.red {
	color: #ee0000;
}

.yellow {
	color: #997700;
}

.green {
	color: #000000;
}

input, select, textarea {
	font-family: "tahoma", "arial", "helvetica", "sans-serif";
	font-size: 8pt;
}

.btn {
  width: 75px;
  height: 23px;
}

.small {
  font-size: 7pt;
}

.big {
  font-size: 10pt;
}

li {
  margin-top: 6pt;
  margin-bottom: 6pt;
}

ul {
  margin-left: 16pt;
  margin-top: 0px;
  margin-bottom: 0px;
}
img.border
{
  border-style: solid;
  border-color: #000000;
  border-width: 1px;
}

a.mainlevel:link, a.mainlevel:visited {
	display: block;

	vertical-align: middle;
	font-size: 13px;
	color: #ccc;
	text-align: center;
	padding-top: 5px;
	padding-left: 12px;
	height: 20px !important;
	height: 25px;
	text-decoration: none;
	font-weight: normal;
}

a.mainlevel:hover {
	background-position: 0px -25px;
	text-decoration: none;
	color: #fff;
	font-weight: normal;
}

.pro {
	background:red;
	color:white;
	font-size:12px;
	font-weight:bold;
	margin:6px 0 0 3px;
	padding:1px;
	text-decoration:none;
}

.actively {
	background:green;
	color:white;
	font-size:13px;
	font-weight:bold;
	margin:6px 0 0 3px;
	padding:0px;
	text-decoration:none;
}

.inactive {
	background:red;
	color:white;
	font-size:13px;
	font-weight:bold;
	margin:6px 0 0 3px;
	text-decoration:none;
}


div.alertbox_green {
padding:10px;
margin-bottom:10px;
}
div.alertbox_green {
border:1px solid #368816;
background-color:#ccdac7;
}

div.alertbox_red {
padding:10px;
margin-bottom:10px;
}
div.alertbox_red {
border:1px solid #fd0000;
background-color:#d59797;
}

div.profileditalertbox_green {
padding:2px;
margin-bottom:2px;
}
div.profileditalertbox_green {
border:1px solid #368816;
background-color:#0018ff;
}


div.msgalertbox_green {
padding:10px;
margin-bottom:10px;
}
div.msgalertbox_green {
border:1px solid #058f02;
background-color:#058f02;
}


div.votealertbox_green {
padding:10px;
margin-bottom:10px;
}
div.votealertbox_green {
border:1px solid #0070e2;
background-color:#0070e2;
}


div.racealertbox_green {
padding:10px;
margin-bottom:10px;
}
div.racealertbox_green {
border:1px solid #e20035;
background-color:#e20035;
}


div.frendsalertbox_green {
padding:10px;
margin-bottom:10px;
}
div.frendsalertbox_green {
border:1px solid #1aba04;
background-color:#1aba04;
}

.style18 {
  color: #99BBFF;
}


.blinktext
{font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #red;
text-decoration: blink;}
text-decoration: blink;}

/* colors */
#gray-text { color: gray; }
#black-text { color: black; }
#white-text { color: white; }
#blud-text { color: #395aff; }
#red-text { color: red; }
#yellow-text { color: yellow; }
#orange-text { color: orange; }
#green-text { color: #66ff00; }

/* game colors */
#mnormal { color: white; }
#mdisabled { color: #ff780b; }
#mself { color: aqua; }
#mally { color: #07ff01; }
#mprotected { color: #007eff; }
#mdead { color: red; }
#madmin { color: yellow; }
#mobhvat { color: #9ba8ae; }
.cgood { color: #00ff5a; }
.cwarn { color: yellow; }
.cbad { color: red; }
.cneutral { color: white; }


#menu { width:145px; background-color: #1d2022; background-image: url('blank.gif'); padding:5px; border: 1px #111111 solid; float:left; }
#menu2 { width:165px; background-color: #1d2022; background-image: url('blank.gif'); padding:5px; border: 1px #111111 solid; float:left; }
#central-block { background-color: #1d2022; background-image: url('blank.gif'); padding:5px; border: 2px #353535 solid; text-align:left; width:609px; float:left; }

#left-link { background-color: #515151; border:1px #757575 solid; text-align: left; width:155px; color: darkgray; vertical-align: top; padding:0px; cursor:pointer; font-size: 11px; padding:2px; float: left; color: gray; margin:2px; }
#left-link:hover { background-color: #515151; border:1px #757575 solid; text-align: left; width:155px; color: darkgray; vertical-align: top; padding:0px; cursor:pointer; font-size: 11px; padding:2px; float: left; color: darkgray; margin:2px; text-decoration:none; }

#right-link { background-color: #515151; border:1px #757575 solid; text-align: left; width:205px; color: darkgray; vertical-align: top; padding:0px; cursor:pointer; font-size: 11px; padding:2px; float: left; color: gray; margin:2px; }
#right-link:hover { background-color: #515151; border:1px #757575 solid; text-align: left; width:205px; color: darkgray; vertical-align: top; padding:0px; cursor:pointer; font-size: 11px; padding:2px; float: left; color: darkgray; margin:2px; text-decoration:none; }


.acenter { text-align:center; }
.aright { text-align:right; }
.aleft { text-align:left; }
#acenter { text-align:center; }
#aright { text-align:right; }
#aleft { text-align:left; }
.vtop { vertical-align:top; }

#hr { height:1px; background-color:#757575; margin-top:5px; margin-bottom:5px; }
#login { height: 20px; border: 1px #757575 solid; width: 150px; background-color: #252525; color: white; margin:2px;}
#login_button { height: 20px; border: 1px #757575 solid; cursor:pointer; background-color: #252525; color: white; }

#input-text { height:20px; border:1px #757575 solid; width:100px; background-color:#252525; color:white; padding-left:5px; padding-right:5px; padding-bottom:0px; padding-top:4px; }
#input-text:hover { height:20px; border:1px white solid; width:100px; background-color:#252525; color:white; padding-left:5px; padding-right:5px; padding-bottom:0px; padding-top:4px; }
#input-text:focus { height:20px; border:1px white solid; width:100px; background-color:#151515; color:white; padding-left:5px; padding-right:5px; padding-bottom:0px; padding-top:4px; }

#input-but { height: 25px; border: 1px #757575 solid; cursor:pointer; background-color: #252525; color: white; }
#input-but:hover { height: 25px; border: 1px white solid; cursor:pointer; background-color: #151515; color: white; }

#paypal-but { color: white; width:220px; border:1px #757575 solid; background-color:#252525; text-align:center; cursor:pointer; padding:5px; }
#paypal-but:hover { color: white; width:220px; border:1px white solid; background-color:#151515; cursor:pointer; text-align:center; padding:5px; }

#input-select { padding-left: 5px; background-color: black; color: white; border: 1px #9d9d9d solid; padding-bottom: 0px; padding-top: 0px; height: 20px; cursor: pointer; }
#input-select:hover { padding-left: 5px; background-color: black; color: white; border: 1px white solid; padding-bottom: 0px; padding-top: 0px;height: 20px; cursor: pointer; }

#top-link-banner { border:0px; width:934px; padding:3px; margin:0px; background-color: black; }
#avatar { border: 1px white solid; width:80px; height:80px; background-color: black; }
#balloon-avatar { border: 1px white solid; width:80px; height:80px; background-color: black; margin: 5px; }

.era1 { color: black; background-color: yellow; }
.era2 { color: white; background-color: maroon; }
.era3 { color: white; background-color: #005F00; }
.era0 { color: white; background-color: maroon; }

.cgood { color: #00ff5a; }
.cwarn { color: yellow; }
.cbad { color: red; }
.cneutral { color: white; }

#buy-table { border: 0px; width: 100%; border-collapse: collapse;}
#actiontable { border: 1px #1d2022 solid; background: #6d6d6d; font-size: 12px; }
#turntable { width:100%; background-image: url('images/bgd.gif'); border: 1px #252525 solid; text-align: left; }
.inputtable TH { background-image: url('images/bgd.gif'); background-repeat: repeat; border: 1px #9d9d9d solid; width:100%; }
#msgtable { background-image: url('images/background.png'); background-repeat: repeat; color: white; border:1px #757575 solid; padding:5px; }

#buy-link { 
	font-family: Lucida Grande,Lucida Sans Unicode,Verdana,Arial,sans-serif;	
	font-size: 12px;
	padding-left: 5px;
	padding-right: 5px;
	padding-bottom: 0px;
	padding-top: 3px;
	color: white;
	background-image: url('images/bgd.gif');
	border: 1px #9d9d9d solid;
	cursor: pointer;
	width: 79px;
	height: 20px;
    text-align: center;
}
#buy-link:hover {
	font-family: Lucida Grande,Lucida Sans Unicode,Verdana,Arial,sans-serif;
	font-weight: bold; 
	font-size: 13px;
	padding-left: 5px;
	padding-right: 5px;
	padding-bottom: 0px;
	padding-top: 3px;
	color: #07ff01;
	background-image: url('images/bgd.gif');
	border: 1px white solid;
	cursor: pointer;
	width: 79px;
	height: 20px;
    text-align: center;
    vertical-align:baseline;
}

#title { padding-top:10px; padding-bottom:10px; }
#canupdate { margin:5px; padding:10px; background-color: green; border: 1px #66ff00 solid; }
#dontupdate { margin:5px; padding:10px; background-color: #660000; border: 1px red solid; }

#none { padding:0; margin:0; height:1px; background-color: #151515; }

/* winners + more */
#score-table { width: 100%; font-size:11px; background-image: url('images/bgd.gif'); border: 1px #999999 solid; border-collapse:collapse; }
.score-table-border { border-width:1px; border-style: inset; border-color: #999999; padding: 2px; }
/* end */

#bank { background-image: url('images/dollars.gif'); background-repeat: no-repeat; font-family: Tahoma; vertical-align:top; background-color: black; }

/* scores */
#score-table-igrach { width:29%; text-align: center; }
#score-table-net { width:15%; text-align: right; }
#score-table-clan { width:22%; text-align: center; }
#score-table-era { width:3%; text-align: center; }
#score-table-uera { padding-left: 5px; padding-right: 5px; text-align: center; }
#score-top {
	font-size:11px;
 	background-image: url('img/background.png');
	border: 1px #999999 solid;
	padding:5px;	
}
#score-info {
      width: 250px;
      vertical-align:top;
      padding: 5px;
}

.style18 {
  color: #99BBFF;
}

.gbrw-menu {
display: block;
width: 138px;
height: 14px;
font-weight: bold;
text-align: center;
padding: 5px;
padding-left: 1px;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}


.vesnik1-menu {
display: block;
width: 270px;
height: 14px;
font-weight: bold;
padding: 5px;

text-align: center;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #7e7e7e;
overflow: hidden;
}

.vesnik2-menu {
display: block;
width: 270px;
height: 114px;
font-weight: bold;
padding: 5px;
text-align: center;
margin-bottom: 1px;
border: #767676 solid 1px;
background-image: url("paper.gif");
overflow: hidden;
}


.messages1-menu {
display: block;
width: 270px;
height: 14px;
font-weight: bold;
padding: 5px;

text-align: center;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #7e7e7e;
overflow: hidden;
}

.messages2-menu {
display: block;
width: 470px;
height: 114px;
font-weight: bold;
padding: 5px;
text-align: center;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}

.right-menu {
display: block;
width: 148px;
height: 14px;
font-weight: bold;
text-align: left;
padding: 5px;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}


.nrg-menu {
width: 180px;
height: 25px;
font-weight: bold;
text-align: left;
padding: 5px;
margin-bottom: 1px;
background-image: url('rest.gif');
border: #3674c1 solid 2px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}

.nrg-menu2 {
width: 180px;
height: 25px;
font-weight: bold;
text-align: left;
padding: 5px;
margin-bottom: 1px;
background-image: url('rest2.gif');
border: #3674c1 solid 2px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}


.expbar-menu {
display: block;
width: 148px;
height: 25px;
font-weight: bold;
text-align: left;
padding: 5px;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}


.frends-menu {
display:inline-block; 
width: 195px;
height: 94px;
font-weight: bold;
padding: 1px;
text-align: center;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}


.profilefrends-menu {
display:inline-block; 
width: 115px;
height: 74px;
font-weight: bold;
padding: 1px;
text-align: center;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
overflow: hidden;
}

.skills-menu {
display: block;
width: 388px;
height: 33px;
font-weight: bold;
text-align: left;
padding: 10px;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
background-image: url('skills.gif');
overflow: hidden;
}

a.glink {text-decoration: none; color: #336699; font-family: Verdana, Helvetica, sans-serif; font-size: 12px;font-weight: bold;
   line-height: 18px;}
a.glink:visited {text-decoration: none; color: #336699; font-family: Verdana, Helvetica, sans-serif; font-size: 12px;font-weight: bold;   line-height: 18px;}
a.glink:hover {text-decoration: underline; color: #336699; font-family: Verdana, Helvetica, sans-serif; font-size: 12px; font-weight: bold;
 line-height: 18px;}
a.glink:active {text-decoration: none; color: #336699; font-family: Verdana, Helvetica, sans-serif; font-size: 12px;font-weight: bold;
 line-height: 18px;}
 
 
a.g3link_border {text-decoration: none;color: #336699;font-family: Verdana, Helvetica, sans-serif;font-size: 13px; font-weight: normal;    line-height: 24px;
background-color: #0cceff;
    border: 1px solid #0c79ff;
padding: 2px 4px 2px 4px;
}
a.g3link_border:visited {text-decoration: none;color: #336699;font-family: Verdana, Helvetica, sans-serif;font-size: 13px; font-weight: normal; line-height: 24px;
background-color: #0cceff;
    border: 1px solid #0c79ff;
padding: 2px 4px 2px 4px;
}
a.g3link_border:hover {text-decoration: none; color: #FFFFFF; font-family: Verdana, Helvetica, sans-serif;font-size: 13px; font-weight: normal; line-height: 24px;
background-color: #0cceff;
    border: 1px solid #0c79ff;
padding: 2px 4px 2px 4px;
}
a.g3link_border:active {text-decoration: none; color: #FFFFFF;font-family: Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 24px;
background-color: #0cceff;
    border: 1px solid #0c79ff;
padding: 2px 4px 2px 4px;
}

.text_border {text-decoration: none; color: #FFFFFF;font-family: Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 24px;
background-color: #0cceff;
    border: 1px solid #0c79ff;
padding: 2px 4px 2px 4px;
}   



.field-submit {
padding:10px;
        
border:5px solid #878787;
        
-moz-border-radius:4px 4px 4px 4px;
background:#3b3b3b;
        
color:white;
font-size:12px;
font-weight:bold;
        
text-transform:capitalize;
}



.bank-field-submit {
padding:1px;
        
border:2px solid #666666;
        
-moz-border-radius:4px 4px 4px 4px;
background:#444444;
        
color:white;
font-size:13px;
font-weight:bold;
        
text-transform:capitalize;
}



.left {
	float: left;
}
.right {
	float: right;
}


.showvesnika	{
font-weight: bold;
padding: 1px;
padding-left: 8px;
padding-right: 11px;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
background-image: url('messages.gif');
overflow: hidden;
}
.addvesnika	{
font-weight: bold;
padding: 1px;
padding-left: 8px;
padding-right: 11px;
margin-bottom: 1px;
border: #767676 solid 1px;
background-position: 2% 50%;
background-color: #111111;
background-image: url('messages.gif');
overflow: hidden;
}



.user {
border: 1px #fff solid;
height: 16px;
width: 125px;
color: #fff;
background: url(../images/user.gif) 2px 2px no-repeat;
padding-left: 20px;
font-weight: bold;
}

.pass {
border: 1px #fff solid;
height: 16px;
width: 125px;
color: #fff;
background: url(../images/pass.gif) 2px 2px no-repeat;
padding-left: 20px;
font-weight: bold;
}




.title{
   background-image:url(titlefon.png);
   background-position: left top;
   background-repeat: repeat-x;
   background-color: #000000;
   font-size: 16px;
   font-weight: bold;
   padding: 4px;
   color: #FFFFFF
}


.userblock{
   text-align: center;
}


.block{
   text-align: center;
   background-color: #0c0c0c;
   padding: 2px;
}


/* TPL ADS */
	#header5  .adds {
		position:absolute;
		display:block;
		width:505px;
		left:284px;
		top:5px;
		overflow:auto;
		z-index:2;
		}
	#header5 .nad, #header .n_ad {
		background-color:#373737;
		display:table-cell;
		float:left;
		width:280px;
		height:85px;
		margin:0 3px 3px 0;
		padding:4px;
		font-size:7.5pt;
		overflow:hidden;
		line-height:10px;
		color:#ccc !important;
		word-wrap: break-word;
		/*background:#333;*/
		}
	#header5 .nad {
/*		letter-spacing: -1px;*/
font-weight:bold;
		font-size:11px;
		line-height:11px;
		width:280px;
		word-wrap: break-word;
	}
	#header5 a.nad:hover {
		text-decoration:none !important;
		/*background-image:url(img/bg.jpg);*/
		background:#222;
		padding:3px;
		border:1px solid #444;
		/*border-bottom:1px solid #f90;*/
		color:white !important;
	}
	#header5 .n_ad { width:282px;}
	#header5 .adnf {
		margin:2px 0 0 0;
		font-size:7pt;
		color:#666;
		}
	#header5 img.avt {
		float:left;
		margin:0 3px 0 0;
		padding:1px;
		vertical-align:middle;
		/*border:1px solid #666;*/
		background-color:#666;
		}
	#header5 .nw{
		/*color:red;*/
		font-weight:bold;
		color:white !important;
	}
	
	
	
	
	
	
.pagetable{
   margin: 0pt auto;
   padding: 4px;
   font-size: 13px;
}

.userblock{
   text-align: center;
}

.block2{
   text-align: center;
   background-color: #f6f4a4;
   padding: 0px;
}
.block3{
   text-align: center;
   background-color: #626262;
   background-image: url('messages.gif');
   padding: 0px;
}
.block4{
	text-align: center;
   background-color: #303030;
    background-image: url('messages.gif');
   border:1px solid #979797;
   padding: 0px;
}
.mypoints{
	text-align: center;
	color:000000;
   background-color: #e5fff3;
   border:4px solid #979797;
}

.novineshta{
	text-align: center;
	color:000000;
   background-color: #6a6a6a;
}





.stranicamenu {
	height: 38px;
	margin:-10px 0 0 0;
	margin-bottom: 10px;
	padding: 12px 0 0 20px;
	background: #4e4e4e;
	letter-spacing: -.5px;
	color: #FFFFFF;
}

.stranicamenu a {
	color: #FFFFFF;
	border: none;
}

.nqkvo_kool {
border: 0px #9DB91A solid;
background-color: #e5fff3;
color: #444;
font-size:12px;
padding: 1px;
}

.nqkvo_kool2 {
border: 0px #921d02 solid;
background-color: #f15b39;
color: yellow;
font-size:12px;
padding: 1px;
}

.active-reg {
border: 0px #9DB91A solid;
background-color: #e5fff3;
color: #444;
font-size:12px;
padding: 1px;
}

.active1-reg {
border: 1px #9DB91A solid;
background-color: #e5fff3;
color: #444;
font-size:12px;
padding: 0px;
}


.error-reg {
border: 0px #921d02 solid;
background-color: #f15b39;
color: #444;
font-size:12px;
padding: 1px;
}

.error1-reg {
border: 1px #921d02 solid;
background-color: #f15b39;
color: #444;
font-size:12px;
padding: 0px;
}



div.msgalertbox_green2 {
padding:1px;
margin-bottom:3px;
}
div.msgalertbox_green2 {
border:1px solid #058f02;
background-color:#058f02;
}


div.votealertbox_green2 {
padding:1px;
margin-bottom:3px;
}
div.votealertbox_green2 {
border:1px solid #0070e2;
background-color:#0070e2;
}

div.frendsalertbox_green2 {
padding:1px;
margin-bottom:3px;
}
div.frendsalertbox_green2 {
border:1px solid #1aba04;
background-color:#1aba04;
}


div.profilealertbox_green2 {
padding:1px;
margin-bottom:3px;
}
div.profilealertbox_green2 {
border:1px solid #bd16e1;
background-color:#bd16e1;
}



	#search5 .nad, #search .n_ad {
		background-color:#373737;
		display:table-cell;
		float:center;
		width:317px;
		height:85px;
		margin:0 3px 3px 0;
		padding:4px;
		font-size:7.5pt;
		overflow:hidden;
		line-height:10px;
		color:#ccc !important;
		word-wrap: break-word;
		/*background:#333;*/
		}
	#search5 .nad {
/*		letter-spacing: -1px;*/
font-weight:bold;
		font-size:11px;
		line-height:11px;
		width:317px;
		word-wrap: break-word;
	}
	#search5 a.nad:hover {
		text-decoration:none !important;
		/*background-image:url(img/bg.jpg);*/
		background:#222;
		padding:3px;
		border:1px solid #444;
		/*border-bottom:1px solid #f90;*/
		color:white !important;
	}
	#search5 img.avt {
		float:left;
		margin:0 3px 0 0;
		padding:1px;
		vertical-align:middle;
		/*border:1px solid #666;*/
		background-color:#666;
		}
	
	
rankpodredba{text-align:center;list-style-type:none;padding:.2em 0;margin:0 0 1em 0;border-bottom:1px solid #000;}#rankpodredba.over_table{margin:0 0 0 1em;text-align:left;}#rankpodredba li{display:inline;}#rankpodredba a{color:#000;text-decoration:none;padding:.2em .4em;background-color:#b7d0fd;border:1px solid #000;}#rankpodredba a:hover{background-color:#d1dff9;}#rankpodredba .current a{background-color:#fff!important;border-bottom-color:#fff;}#rankpodredba.over_table .current a{background-color:#D5DAE0!important;border-bottom-color:#D5DAE0;}#rankpodredba.left{text-align:left;padding:1.7em 0 .2em 1em;}
	
	
#userbox a.logout {
	display:	inline;
	padding:	0px 5px 1px 6px;
	background-image:	url("logout.gif");
	background-color:	#aaa;
	background-repeat:	no-repeat;
	background-position:	0px 0px;
	color:	#222;
	float:	none;
	margin-left:	3px;
}
ето на менюто
Код:
<style type="text/css">
      img {
      vertical-align: middle;
      margin-right: 5px;
      }
      a {
      color: #ffffff;
      text-decoration: none;
      }
      #menu33 {
      background-color: #363636;
      color: #ffffff;
      width: 150px;
	  text-align:left;
      height: auto;
      }
      ul {
      padding: 0;
      margin: 0;
      list-style-image:none;
      list-style-position:outside;
      list-style-type:none;
      }
      li {
      padding-left: 10px;
      margin-bottom: 5px;
      }
      li:hover {
      background-color: #5d5d5d;
      }
   </style>
а ето кода на цялото меню
Код:
<style type="text/css">
      img {
      vertical-align: middle;
      margin-right: 5px;
      }
      a {
      color: #ffffff;
      text-decoration: none;
      }
      #menu33 {
      background-color: #363636;
      color: #ffffff;
      width: 150px;
	  text-align:left;
      height: auto;
      }
      ul {
      padding: 0;
      margin: 0;
      list-style-image:none;
      list-style-position:outside;
      list-style-type:none;
      }
      li {
      padding-left: 10px;
      margin-bottom: 5px;
      }
      li:hover {
      background-color: #5d5d5d;
      }
   </style>
</head>
<body>
   <div id="menu33">
   <?php
if($_SESSION['name']) {
$mess=mysql_num_rows(mysql_query("SELECT * FROM pmessages WHERE touser='$_SESSION[name]' AND unread='unread'"));
echo (" 
      <ul id='options'>
         <li><a href='index.php'><img src='Home.png' height='24' width='24' border='0' />Начало</a></li>
         <li><a href='index.php?a=myprofile'><img src='profile.png' height='24' width='24' border='0' />Профил</a></li>
         <li><a href='index.php?a=sample'><img src='chat.png' height='24' width='24' border='0' />Дъра-бъра</a></li>
         <li><a href='index.php?a=vestnik'><img src='vestnik.png' height='24' width='24' border='0' />Вестник</a></li>
         <li><a href='index.php?a=rest'><img src='Rest.png' height='24' width='24' border='0' />Зареждане</a></li>
         <li><a href='index.php?a=competitions'><img src='racing.png' height='24' width='24' border='0' />Състезания</a></li>
         <li><a href='index.php?a=autoshop'><img src='gear.png' height='24' width='24' border='0' />Автосервиз</a></li>
         <li><a href='index.php?a=autopark'><img src='Car.png' height='24' width='24' border='0' />АвтоПарк</a></li>
         <li><a href='index.php?a=myfrends'><img src='frends.png' height='24' width='24' border='0' />Приятели</a></li>
         <li><a href='index.php?a=ranking'><img src='Chart_bar.png' height='24' width='24' border='0' />Класация</a></li>  
         <li><a href='index.php?a=rankingunion'><img src='unionsr.png' height='24' width='24' border='0' />Класация Съюзи</a></li>
         <li><a href='index.php?a=messages'><img src='mail.png' height='24' width='24' border='0' />Поща (<font color=orange>
$mess
		 </font>) нови</a></li>
         <li><a href='index.php?a=main_forum'><img src='forum.png' height='24' width='24' border='0' />Форум</a></li>
         <li><a href='index.php?a=skills'><img src='skills.png' height='24' width='24' border='0' />Умения</a></li>
         <li><a href='index.php?a=union'><img src='team.png' height='24' width='24' border='0' />Съюзи</a></li>  
         <li><a href='index.php?a=bank'><img src='bank.png' height='24' width='24' border='0' />Банка</a></li>
         <li><a href='index.php?a=search'><img src='Search.png' height='24' width='24' border='0' />Търсене</a></li>
         <li><a href='index.php?a=gifts'><img src='Box.png' height='24' width='24' border='0' />Подаръци</a></li>
         <li><a href='index.php?a=buycredit'><img src='credits.png' height='24' width='24' border='0' />Кредити</a></li>
         <li><a href='index.php?a=logout'><img src='logout.gif' height='24' width='24' border='0' />Излез</a></li>  		 
      </ul>
   </div>
");
 } else {
echo ('

<ul id="options">
<li><a href="index.php"><img src="Home.png" height="24" width="24" border="0" />Начало</a></li>
<li><a href="index.php?a=login"><img src="login.png" height="24" width="24" border="0" />Вход</a></li>
<li><a href="index.php?a=register"><img src="register.png" height="24" width="24" border="0" />Регистрация</a></li>
<li><a href="index.php?a=ranking"><img src="Chart_bar.png" height="24" width="24" border="0" />Класация</a></li>
</ul></div>
'); }
?>
 

Back
Горе