17 tháng 4, 2012

Tiện ích nghe nhạc Iphone cho blogspot

Tạo tiện ích nghe nhạc giống IPhone trên blogspot, sẽ rất đơn giản vì đã được chuyển đổi bởi tác giả. Giờ chỉ gỏn gọn lại với đoạn code sau


Bắt đầu
Bước 1: Vào thiết kế -> Thêm tiện ích HTML/Javascript sau đó chèn đoạn code sau và lưu lại.
<!--Tiện ích nghe nhac Iphone k3nvil.tk-->
<style type="text/css">
.slide_likebox {
   float:right;
   width:270px;//độ rộng của tiện ích
   height:490px;//chiều cao của tiện ích
   background: url("http://k3nvil.googlecode.com/files/iphone-image.png")
no-repeat !important;
   display:block;
   right:-250px;//độ thụt vào bên phải
   padding:0;
   position:fixed;
   top: 80px;
   z-index:1002;
}

.slide_text {
   font-family: Geneva, Verdana, sans-serif;
   font-size: 8px;
   padding-left: 0px;
   text-decoration: none;
   color: #FFF;
}
</style>
<!--Music-->
<script src="http://k3nvil.googlecode.com/files/jquery.min1.4.3.js" type="text/javascript"></script>
<script type="text/javascript">
//jQuery.noConflict();
jQuery(function (){
jQuery(".slide_likebox").hover(function(){
jQuery(".slide_likebox").stop(true, false).animate({right:"0"},"medium");

                },function(){

                    jQuery(".slide_likebox").stop(true, false).animate({right:"-250&quot;},"medium");

                    },500);

            return false;

        });

    </script>

<div class="slide_likebox"> <div style="color: rgb(255, 255, 255); padding: 110px 8px 5pt 50px;"><div class="FB_Loader"></div><span>
<!--Đoạn code danh sách nhạc ở tren nhaccuatui.com-->
<object width="215" height="300">  <param name="movie" value="http://www.nhaccuatui.com/l/4DlLVhGw8ows" />  <param name="quality" value="high" />  <param name="wmode" value="transparent" />  <param name="allowscriptaccess" value="always" />  <embed src="http://www.nhaccuatui.com/l/4DlLVhGw8ows" flashvars="target=blank" allowscriptaccess="always" quality="high" wmode="transparent" type="application/x-shockwave-flash" width="215" height="300"></embed></object>
<!—kết thúc đoạn code danh sách nhạc ở tren nhaccuatui.com-->
<!--/Music-->
<!-- temp -->
<div style="display:none">
<!-- thread rate -->
<!-- thread ratings form here -->
<!-- / thread rate -->
</div></!—kết></span></div></div>
<!--Tiện ích nghe nhac Iphone k3nvil.tk-->

Hướng dẫn sử dụng: 
Bạn muốn thay đổi nhạc thì chỉ cần vào trang nhaccuatui.com và thay ở phần bôi màu xanh. Và chú ý nhớ thay đổi chiều rộng width=215 và height =300 cho vừa với tiện ích.
- Nếu muốn thay đổi độ thụt ra thụt vào thì thay dổi theo phần màu xanh lá cây
- Nếu muốn nâng cao hay hạ thấp tiện ích thì thay đổi phần màu da cam

0 nhận xét:

|» Đăng hình ảnh | code chèn sẽ là [img] Link ảnh [/img]
|» Đăng nhạc của tui | code sẽ là [nct] Link bài hát [/nct]
|» Đăng Video Youtube | code sẽ là [youtube] Link Video Youtube [/youtube]
|» <b> Chữ in đậm <\/b>
|» <i> Chữ in nghiêng <\/i>

:) :( :)) :(( =)) Mã hóa code