Parašė 123456788999999999· 2008 Gru. 21 00:12:13
#3
taip įmanoma yra specialios navigacijos va žiurėk duosiu tokia gal su čia kas nors išeis
openside("Navigacija");
//@ www.susikurk.com//
$result = dbquery("SELECT * FROM ".$db_prefix."site_links WHERE link_position<='2' ORDER BY link_order");
echo"
<style type='text/css'>
#mygtukas {
width: 185px;
color: #000;
}
#mygtukas ul {
list-style: none;
margin: 0px;
padding: 0px;
border: 0px;
}
img {
border: none;
}
#mygtukas li {
height:24px;
margin:1px;
border: 1px solid #606060;
}
#mygtukas li a {
display: block;
padding: 7px 2px 3px 25px;
background: url(http://eurolyga.xz.lt/images/menu9.gif);
color: #fff;
text-decoration: none;
width: 100%;
}
html>body #mygtukas li a {
width: auto;
height:auto;
font-size:11px;
font-family: sans-serif;
font-weight: bold;
color: #000000;
}
#mygtukas li a:hover {
background: url(http://eurolyga.xz.lt/images/menu9.gif);
padding: 7px 2px 3px 25px;
font-size:11px;
font-family: sans-serif;
font-weight: bold;
color: #606060;
}
</style>
";
echo "<div id='mygtukas'>
<ul>";
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<li><a href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a></li>";
} else {
echo "<li><a href='".BASEDIR.$data['link_url']."'".$link_target.">".$data['link_name']."</a></li>";
}
}
}
}
echo "</ul>
</div>";
closeside();
wa jei tiks ji tau;)