07 March 2010
Membuat Random Background
hak milik
Sue
Assalamualaikum , Msue ingin berkongsi bagaimana cara hendak membuat random background . Korang refreshkannya untuk melihat hasilnya .
1. Login ke Blogspot .
2. Klik Layout -Add A Gadget- HTML/Javascript .
3. Copy javascript:void(0)kod di bawah dan pastekan ke dalamnya .
<script type="text/javascript">
var background= new Array()
background[0]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWK7lYqNAFFvV5h4_AymKoqdkT3eFWEgn1PH-h5lzYiNmIOuJdj-n5OQyuvD8dypm4RsaEiGFLUbjkGn1Y5yG-rd8khPYwQK7sS50Yg7KHt6V5W-btuH_eDKBWupcshia3YRMUBBsk/s200/woodbg.jpg"
background[1]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj3ZrYPGBg7X8QgFHi38WqCglm71UvaOp_6bYMVuu9rq9_AriZGdFukCeAjnCS3TwuXFV_gj-QRTTxejk6PIvMkBuTTPYOq0tSKUUnr86Qzh0ge10j7OHthXrUZOBwW7o4Gq6Kjgd7/s200/vector-seamless-hearts-background-09-by-dragonart.png"
background[2]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgand-fVXmp7oT6QfNDAlHscyak2e7OoNXQRRw8LYf5cDDgOAQhVmKdfOGGoGJbv9FQbAfBSgsmlp0qWqcT_8Drha9JmVh9ZR9mvSTdRbUKN_oLUjveGtUQxchzd0KcMCIu-MMNX06R/s200/Vintage-Pattern_Black.png"
var random=Math.floor(3*Math.random());
document.write("<style>");
document.write("body {");
document.write(' background:url("' + background[random] + '") repeat top center;');
document.write(" }");
document.write("</style>");
</script>
4. Save dan View
Note:Pada highlight , korang tukarkan ngan url image background yang korang nak .
Via - NescafeAis
1. Login ke Blogspot .
2. Klik Layout -Add A Gadget- HTML/Javascript .
3. Copy javascript:void(0)kod di bawah dan pastekan ke dalamnya .
<script type="text/javascript">
var background= new Array()
background[0]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWK7lYqNAFFvV5h4_AymKoqdkT3eFWEgn1PH-h5lzYiNmIOuJdj-n5OQyuvD8dypm4RsaEiGFLUbjkGn1Y5yG-rd8khPYwQK7sS50Yg7KHt6V5W-btuH_eDKBWupcshia3YRMUBBsk/s200/woodbg.jpg"
background[1]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj3ZrYPGBg7X8QgFHi38WqCglm71UvaOp_6bYMVuu9rq9_AriZGdFukCeAjnCS3TwuXFV_gj-QRTTxejk6PIvMkBuTTPYOq0tSKUUnr86Qzh0ge10j7OHthXrUZOBwW7o4Gq6Kjgd7/s200/vector-seamless-hearts-background-09-by-dragonart.png"
background[2]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgand-fVXmp7oT6QfNDAlHscyak2e7OoNXQRRw8LYf5cDDgOAQhVmKdfOGGoGJbv9FQbAfBSgsmlp0qWqcT_8Drha9JmVh9ZR9mvSTdRbUKN_oLUjveGtUQxchzd0KcMCIu-MMNX06R/s200/Vintage-Pattern_Black.png"
var random=Math.floor(3*Math.random());
document.write("<style>");
document.write("body {");
document.write(' background:url("' + background[random] + '") repeat top center;');
document.write(" }");
document.write("</style>");
</script>
4. Save dan View
Note:Pada highlight , korang tukarkan ngan url image background yang korang nak .
Via - NescafeAis
Tinggalkan Komen Anda Disini