Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pakeist raidziu spalvas

Parašė ExPerT· 2010 Bir. 11 17:06:34
#6

Kokia spalvą padaryt? Čia padariau žydrą gal tiks tokia,jei ne sakyk kokią.
openside("Navigacija")
?>
<style type="text/css">

.suckerdiv ul{
display:block;
list-style-type: none;
width: 161px;
padding: 0;
margin: 2px 0px 2px 0px;
text-decoration: none;
font: 10px verdana;

a:hover.side {
   color : #DC143C;
   text-decoration : none;
}

color:#fff;
cursor: default;
}

.suckerdiv ul li{
position: relative;
background-color: #1d31eb;
}

/*Sub level menu items */
.suckerdiv ul li ul{
position: absolute;
width: 161px; /*sub menu width*/
top: 0;
visibility: hidden;
}

/* Sub level menu links style */
.suckerdiv ul li a{
display: block;
overflow: auto; /*force hasLayout in IE7 */
display:block;
width: 150px;
padding: 5px;
margin: 2px 0px 2px 0px;
text-decoration: none;
background-color: #1d31eb;
border: 0px solid #000;
font: 10px verdana;

color:#fff;
cursor: default;
}

.suckerdiv ul li a:visited{
color:;
}

.suckerdiv ul li a:hover{
display:block;
width: 150px;
padding: 5px;
margin: 2px 0px 2px 0px;
text-decoration: none;
background-color: #DC143C;
border: 0px solid #000;
font: 10px verdana;
font-weight: bold;
color:#fff;
cursor: default;

color:#00FFFF;
cursor: default;
}

.suckerdiv .subfolderstyle{
background: url(http://www.dynamicdrive.com/cssexamples/media/arrow-list.gif) no-repeat center right;
}


/* Holly Hack for IE \*/
* html .suckerdiv ul li { float: left; height: 1%; }
* html .suckerdiv ul li a { height: 1%; }
/* End */

</style>

<script type="text/javascript">

var menuids=["suckertree1"] //Enter id(s) of SuckerTree UL menus, separated by commas

function buildsubmenus(){
for (var i=0; i<menuids.length; i++){
var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for (var t=0; t<ultags.length; t++){
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfolderstyle"
if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
else //else if this is a sub level submenu (ul)
ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
ultags[t].parentNode.onmouseover=function(){
this.getElementsByTagName("ul")[0].style.display="block"
}
ultags[t].parentNode.onmouseout=function(){
this.getElementsByTagName("ul")[0].style.display="none"
}
}
for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
ultags[t].style.visibility="visible"
ultags[t].style.display="none"
}
}
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus)

</script>

<div class="suckerdiv">
<ul id="suckertree1">
<li><a href="#">BMW</a>
<ul>
<li><a href="/viewpage.php?page_id=0">BMW-3 (E30), 11.82 - 11.90</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-3 (E36), 12.90 - 05.98</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-3 (E46), 01 - 05</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-3 (E46), 06.98 - 08.01</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-5 (E34), 01.88 - 12.95</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-5 (E39), 01.96 - 08.00</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-5 (E39), 09.00 - 06.03</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-5 (E60), 07.03</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-7 (E32), 10.86 - 09.94</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-7 (E38), 10.94 - 11.01</a></li>
<li><a href="/viewpage.php?page_id=0">BMW-7 (E65), 11.01 -</a></li>
</ul>
</li>
<li><a href="#">linkas 3</a></li>

<li><a href="#">Folderis 2</a>
<ul>
<li><a href="#">Sublinkas 2.1</a></li>
<li><a href="#">BMW 2.1</a>
<ul>

</ul>
</li>
</ul>
</li>
</ul>
</div>
<?
closeside();





Redagavo ExPerT· 2010 Bir. 11 17:06:40