Demo: [You must be registered and logged in to see this link.]
Các bạn copy đoạn code bên dưới và dán vào cuối overall_header
- Code:
<!-- Menu Nhạc -->
<style type="text/css">
#gb{position:fixed;top:0px;z-index:+1000;}* html #gb{position:relative;}.gbtab{height:48px;width:48px;float:left;cursor:pointer;background:url('http://i974.photobucket.com/albums/ae230/dani9x/images22.png') no-repeat;}.gbcontent{float:left;border:2px solid #000;background:#DDD;padding:10px;}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 50-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 5 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 5);}
}
</script>
<div style="Right: -425px;" id="gb">
<div class="gbtab" onclick="showHideGB()">
</div>
<div class="gbcontent">
<object width="400" height="295"><param name="movie" value="http://static.mp3.zing.vn/skins/mp3_main/flash/embed/zing_mp3_embed_v1.2.swf?xmlURL=http://mp3.zing.vn/xml/album-xml/kmJHyLGadNJcXAJyZFJyDnkH&autostart=false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><embed width="400" height="295" src="http://static.mp3.zing.vn/skins/mp3_main/flash/embed/zing_mp3_embed_v1.2.swf?xmlURL=http://mp3.zing.vn/xml/album-xml/kmJHyLGadNJcXAJyZFJyDnkH&autostart=false" quality="high" wmode="transparent" type="application/x-shockwave-flash"></embed></object><br />
</div>
</div>