Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: PAdekit su Navigacija

Parašė INFINITY· 2008 Bal. 20 21:04:41
#12

openside("Navigacija");
$result = dbquery("SELECT * FROM ".$db_prefix."site_links WHERE link_position<='2' ORDER BY link_order");

echo"
<style type='text/css'>
#mygtukas {
width: 100%;
color: #333;
background-color: #6666cc;
}
#mygtukas ul {
list-style: none;
margin: 0px;
padding: 0px;
border: 0px;
}
img {
border: none;
}
#mygtukas li {
height:24px;
}
#mygtukas li a {
display: block;
padding: 5px 5px 5px 35px;
background: url(http://img129.imageshack.us/img129/4136/menujv0.gif);
color: #fff;
text-decoration: none;
width: 100%;
}
html>body #mygtukas li a {
width: auto;
height:auto;
font-size:12px;
font-family: tahoma;
font-weight: bold;
color: #fff;
}
#mygtukas li a:hover {
background: url(http://img129.imageshack.us/img129/4136/menujv0.gif) 0 -24px;
padding: 5px 5px 5px 38px;
font-size:12px;
font-family: tahoma;
font-weight: bold;
color: #fff;
}

</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."><img src'".BASEDIR."images".$data['link_name'].".gif'></a></li>";
} else {
echo "<li><a href='".BASEDIR.$data['link_url']."'".$link_target."><img src'".BASEDIR."images".$data['link_name'].".gif'></a></li>";
}
}
}
}
closeside();







Gal kas pakoreguosit :s ir kur det foto kad matytusi ta kuri ant bg fotkiu? :?