Tutorial : Letak Lagu Dalam Blog

  3 comments    
categories: 


.Dashboard > Design > Add A Gadget > Klik HTML/Javascript.

.Copy code kat bawah ni dan pastekan kat ruangan HTML/Javascript..

<style type="text/css">
#gb{
position:fixed;
top:70px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:55px;
width:57px;
float:left;
cursor: url(http://cur.cursors-4u.net/others/oth-6/oth589.cur), progress;
background:url('URL ICON') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #F5A9D0;
background:url('URL BACKGROUND');padding:5px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 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+")", 10);}
}
</script>
<div id="gb">
<div class="gbtab" onclick="showHideGB()"> </div>
<div class="gbcontent">
"CODE YOU TUBE KORANG"
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script></center>



.code url icon boley cari di SINI.

.code url background boleh cari di photobucket atau mana-mana background yang korang suka.

.code you tube tue cam nie copy pastue just edit ABC untuk lagu korang suka.

<object width="55" height="25"><param name="movie" value="http://www.youtube.com/v/f3iyH7dvZT8?fs=1&amp;autoplay=1&amp;hl=en_US&amp;rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed src="http://www.youtube.com/v/f3iyH7dvZT8?fs=1&amp;autoplay=1&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="55" height="25" allowscriptaccess="always" allowfullscreen="true"></embed></object>

camne? cam nie jer..




.Cari lagu yang korang suka di laman YOUTUBE.

.Korang tekan SHARE > EMBED > Tick Use old embed code.

.Amek code http://www.youtube.com/..... sampai kat tanda '?' . Kalau tak jelas, sila klik gambar di atas nie, yang step 4. gantikan code lagu korang kat ABC.

.Lepas tue save.

3 comments:

Thank you for taking your time to leave what your thoughts! Will respond as soon as possible!