Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pakeist raidziu spalvas
Parašė interaktyvus· 2010 Bir. 11 14:06:37
#1
Taigi turiu tokia paprastute navigacija ir man reikia kad uzvedus pele ant kokios nors meniu skylties raides paraudonuotu nes kolkas tik fonas paraudonuoja o man reik kad tik raides tai jai kas mokat pagelbekit
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:#fff;
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();
Parašė DEMO_user· 2010 Bir. 11 14:06:42
#2
Reikia pridėti OnMouse scriptą :D
Bet aš jo nemoku :D
Pagooglink, gal rasi.
Arba duok styles.css per ten irgi galima.
--------------------
Redagavo DEMO_user· 2010 Bir. 11 14:06:21
Parašė interaktyvus· 2010 Bir. 11 15:06:45
#3
per styles.css jau susitvarkiau as ten dabar tik va sita reik kazkaip sutvarkyt kad vietoj pasikeiciancio fono pasikeistu raides
Parašė vagis· 2010 Bir. 11 15:06:50
#4
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 : #ff0033; (čia arba žemiau : ištrink poto)
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: #ff0033; (arba čia : ištrink skliaustus mano)
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: #fff;
border: 0px solid #000;
font: 10px verdana;
font-weight: bold;
color:#fff;
cursor: default;
color:#fff;
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();
Parašė interaktyvus· 2010 Bir. 11 17:06:03
#5
dodisz parašė:
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 : #ff0033; (čia arba žemiau : ištrink poto)
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: #ff0033; (arba čia : ištrink skliaustus mano)
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: #fff;
border: 0px solid #000;
font: 10px verdana;
font-weight: bold;
color:#fff;
cursor: default;
color:#fff;
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();
isvis cia kazkokia nesamone padariai :D gal bus kokiu patyrusiu zmoniu prie sio reikalo ?
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