Parašė mariuse3· 2010 Lap. 8 12:11:37
#3
biskuti netaip mane supratai, bet dekui kad padedi, va pasidariau pats kokios norejau :
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;
font-weight: bold;
color:#fff;
cursor: default;
}
.suckerdiv ul li{
position: relative;
background-image: url(http://fizikospamokos.comuv.com/images/nav.gif);
}
/*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-image: url(http://fizikospamokos.comuv.com/images/nav.gif);
border: 1px solid #000;
font: 10px verdana;
font-weight: bold;
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: #000000;
border: 1px solid #000;
font: 10px verdana;
font-weight: bold;
color:#fff;
cursor: default;
}
.suckerdiv .subfolderstyle{
background: url() no-repeat center right;
}
/* Holly Hack for IE \*/
* <span style="border-bottom: 1px dotted black;">html</span> .suckerdiv ul li { float: left; height: 1%; }
* <span style="border-bottom: 1px dotted black;">html</span> .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='news.php'>Namai</a>
</li>
<li><a href='http://fizikospamokos.comuv.com/articles.php?article_id=1'>Fizika</a>
<ul>
<li><a href="#">7-8klasės</a>
<ul>
<li><a href='news.php'>7 klasė</a>
<li><a href='news.php'>8 klasė</a>
</ul>
<li><a href="#">9-10klasės</a>
<ul>
<li><a href='news.php'>9 klasė</a>
<li><a href='news.php'>10 klasė</a>
</ul>
<li><a href="#">11-12klasės</a>
<ul>
<li><a href='news.php'>11(A) klasė</a>
<li><a href='news.php'>12(A) klasė</a>
</ul>
</li>
</ul>
<li><a href='http://www.olimpiados.lt/'>Olimpiados</a>
</li>
<li><a href='http://www.fizika.ktu.lt/konkursai.htm'>BARZAUSKO TURNYRAS</a>
<li><a href='http://www.etalon.lt'>Etalon</a>
<li><a href='http://www.egzaminai.lt/naujienos/'>Egzaminai</a>
<li><a href='forum/index.php'>Forumas</a>
<li><a href='weblinks.php'>Naudingos nuorodos</a>
<li><a href='search.php'>Paieška</a>
</li>
<li><a href="#">Ugdymo programa</a>
<ul>
<li><a href='http://fizikospamokos.comuv.com/articles.php?article_id=2'>Bendrosios nuostatos</a>
<li><a href='news.php'>5-6 klasės</a>
<li><a href='news.php'>7-8 klasės</a>
<li><a href='news.php'>9-10 klasės</a>
<li><a href='news.php'>11-12 klasės</a>
</ul>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<?
closeside();