witam
jak uzyskać efekt takiego menu jak na tej stronie http://visionesport.com/
a{ background:url(green.jpg) no-repeat; } a:hover, a.active{ background:url(red.jpg) no-repeat; }
<ul id="countrytabs" class="shadetabs"> </ul> <div style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px"> <div id="country1" class="tabcontent"> </div> <div id="country2" class="tabcontent"> </div> <div id="country3" class="tabcontent"> </div> <div id="country4" class="tabcontent"> </div> </div> <script type="text/javascript"> var countries=new ddtabcontent("countrytabs") countries.setpersist(true) countries.setselectedClassTarget("link") //"link" or "linkparent" countries.init() </script> <hr /> <div id="flowernote" style="display:none; position:absolute; right: 30px; width:150px; height:150px; background-color:red; color:white"> Arbitrary DIV 1 </div> <div id="flowernote2" style="display:none; position:absolute; right: 200px; width:80px; height:80px; background-color:black; color:white"> Arbitrary DIV 2 </div> <div id="flowernote3" style="display:none; position:absolute; right: 30px; width:140px; height:140px; background-color:navy; color:white"> Arbitrary DIV 3 </div> <div style="border:1px solid gray; width:350px; height: 250px; background-color: #EAEAEA; padding: 5px"> <div id="tcontent1" class="tabcontent"> </div> <div id="tcontent2" class="tabcontent"> </div> <div id="tcontent3" class="tabcontent"> </div> <div id="tcontent4" class="tabcontent"> </div> </div> <div id="flowertabs" class="modernbricksmenu2"> <ul> </ul> </div> <br style="clear: left" /> <script type="text/javascript"> var myflowers=new ddtabcontent("flowertabs") myflowers.setpersist(true) myflowers.setselectedClassTarget("link") //"link" or "linkparent" myflowers.init() </script> <hr /> <div id="pettabs" class="indentmenu"> <ul> </ul> <br style="clear: left" /> </div> <div style="border:1px solid gray; width:550px; height: 150px; padding: 5px; margin-bottom:1em"> <div id="dog1" class="tabcontent"> </div> <div id="dog2" class="tabcontent"> </div> <div id="dog3" class="tabcontent"> </div> <div id="dog4" class="tabcontent"> </div> </div> <script type="text/javascript"> var mypets=new ddtabcontent("pettabs") mypets.setpersist(true) mypets.setselectedClassTarget("link") mypets.init(2000) </script>
.modernbricksmenu2 a:hover{ background-color: #D25A0B; /*Brown color theme*/ color: white; } .modernbricksmenu2 a.selected{ /*currently selected tab*/ background-color: #D25A0B; /*Brown color theme*/ color: white; border-color: #D25A0B; /*Brown color theme*/ }