<div class=”leftside”> <!– all icons in floating left side –> </div>
<div class=”rightside”> <!– all things in floating right side –> <!– hide button –> <!– quick menu list –> </div>
</div>
css代码 复制代码 代码如下: div#toolbar, div#toolbarbut { position: fixed; /* set fixed position for the bar */ bottom: 0px; right: 0px; z-index: 9999; /* keep the bar on top */ height: 36px; background: url(images/bcktool.png); /* CSS3 */ -moz-border-radius-topleft: 8px; -khtml-border-radius-topleft: 8px; -webkit-border-top-left-radius: 8px; -moz-border-radius-topright: 8px; -khtml-border-radius-topright: 8px; -webkit-border-top-right-radius: 8px; -moz-box-shadow: 0px 1px 10px #666, inset 1px 1px 0px #a4a4a4; /* inset creates a inner-shadow */ -khtml-box-shadow: 0px 1px 10px #666; -webkit-box-shadow: 0px 1px 10px #666; /* CSS3 end */ border-top: 1px solid #eee; border-left: 1px solid #eee; border-right: 1px solid #eee; }
div#toolbar { width: 85%; min-width: 700px; /* to limit the width when there is an excessive window resize */ margin: 0px auto; /* centered toolbar */ left: 0px; }
div#toolbar a:hover { border: none; /* fix ‘hover" (a:hover {border-bottom: 1px dotted #666;}) border in the News Aggregator */ }
div#toolbarbut { /* div for the ‘hide status" */ width: 60px; height: 15px; margin-right: 3%; display: none; }
//hide toolbar and make visible the ‘show" button $(“span.downarr a”).click(function() { $(“#toolbar”).slideToggle(“fast”); $(“#toolbarbut”).fadeIn(“slow”); });
//show toolbar and hide the ‘show" button $(“span.showbar a”).click(function() { $(“#toolbar”).slideToggle(“fast”); $(“#toolbarbut”).fadeOut(); });
/* custom distances for the icons */ #tipfacebook { left: 75px; }
#tiptwitter { left: 120px; }
#tipdelicious { left: 165px; }
#tipdigg { left: 210px; }
#tipstumble { left: 255px; }
.tip ul { padding: 22px 0 0 25px; }
.tip ul li { display: inline; padding-left: 3px; }
.tip ul li a { font-size: 18px; color: #989898; }
.tip ul li a:hover { color: #666; }
.tip ul li small { font-size: 10px; }
jquery代码
//show tooltip when the mouse is moved over a list element $(“ul#social li”).hover(function() { $(this).find(“div”).fadeIn(“fast”).show(); //add ‘show()” for IE $(this).mouseleave(function () { //hide tooltip when the mouse moves off of the element $(this).find(“div”).hide(); }); });