assallamuallaikum kali ini lightning blog akan memberikan sebuah postingan cara mengubah background sama kursor dengan random wah gimana sh itu maksudnya ? ya maksudnya tuh background kita sama cursornya dapat terganti secara random /acak apabila kita membuka sebuah tab baru nah mau tau caranya langsung saja just follow me :
- log in ke blog sobat
- lalu masuk ke tata letak > tambah gadget > HTML javascript judul tak perlu diisi kosong kan saja
- lalu copy kode html berikut ini ke kontent /berada dibawah yang bertuliskan judul
<script type="text/javascript">
function gantiWalpeper(){
var daptarWolpeper = [
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3bpxF3pxsWdBjXiFx0ER41SJeU5SruDHTWDQGlfVqd8fKpwHZ9QefhwJz5mC1WnBu11GyAG_C-ar5FT2y_CY01j92ek5iDjAwp8C47R29LtMmPmiqzfPfaawthVUS1cH-UQBO1ATZOK3b/s1600/Cyber_soul_WALLPAPER_by_Necrania_ar.jpg",
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghKLr5ntlcS3TWNMFQZbc79lx51Mn_yUu3USdOxSd4EF1ivCr6kc32bimIM1vjWL9VJdt9I3hbDl5zXX8vSbLPFWaxiX87Qp47sCOxwGQ-HrMZRiSJo-82vuHRVY4WQTxQbXYNtapleQGQ/s1600/Cyber_Girl_hd_wallpaper.jpg",
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvc7HdBn2mDR0mBEzCgQdN9G457ZyAVoCI6XLFtiAxbkyT8QWdCx6gZhkE8SoDXTNh4A_3k-6J_0tmSlrUkgWgJt0f7xi71hiB8Koa2F_BVi1lOO0ej85LmJFN2TTNQ0ZP4in_jULTzUv/s1600/Dark+Fairy.jpg",
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6YSFk7qyg4udhTQ5ZyukjdakWMbln2hrUaIzCL7ugbO9LDyc2V097FHvem0YlQqthV4wyH_TkunAXclE9AyNdoYqdIX5bNOjjl3UXqkckQ49OMLGtx0YnX0WiXEK8IJ6fxBR9naFC4Rti/s1600/Fairy_Tales_Bird_of_Happiness.jpg",
"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhty9KI9DI39VKGlAguG_aTyR-lUO5YVUuGxGWlNUUf3UaxFdCSdbZWSCqEQ-yaftfULcv3zZoBgw3Dgr7YsfbVz45uSCfIHotgmyC57vLETu5XC_EFm9Noq5B42ouAFbQWY4cIa7OonwUS/s1600/Boy-With-Fire-Ball-Wallpaper-and-photo.jpg"
];
daptarWolpeper = daptarWolpeper.sort(function() {return 0.5 - Math.random()});
document.body.style.backgroundImage='url('+daptarWolpeper[0]+')';
}
gantiWalpeper();
function gantiKursor(){
var daptarKursor = [
"http://cur.cursors-4u.net/smilies/smi-3/smi203.cur",
"http://cur.cursors-4u.net/smilies/smi-2/smi130.cur",
"http://cur.cursors-4u.net/cursors/cur-1/cur7.cur",
"http://cur.cursors-4u.net/symbols/sym-4/sym347.cur",
"http://cur.cursors-4u.net/mechanics/mec-1/mec92.cur",
"http://cur.cursors-4u.net/mechanics/mec-1/mec20.cur",
"http://cur.cursors-4u.net/people/peo-6/peo754.cur",
"http://cur.cursors-4u.net/user/use-1/use102.cur",
"http://cur.cursors-4u.net/others/oth-2/oth181.cur",
"http://cur.cursors-4u.net/others/oth-2/oth114.cur",
"http://cur.cursors-4u.net/others/oth-2/oth113.cur",
"http://cur.cursors-4u.net/others/oth-2/oth115.cur",
"http://cur.cursors-4u.net/others/oth-3/oth246.cur",
"http://cur.cursors-4u.net/symbols/sym-1/sym25.cur",
"http://cur.cursors-4u.net/symbols/sym-4/sym322.cur",
"http://cur.cursors-4u.net/food/foo-2/foo164.cur",
"http://cur.cursors-4u.net/food/foo-2/foo134.cur",
"http://cur.cursors-4u.net/food/foo-2/foo146.cur",
"http://cur.cursors-4u.net/food/foo-5/foo431.cur",
"http://cur.cursors-4u.net/food/foo-2/foo109.cur",
"http://cur.cursors-4u.net/food/foo-1/foo81.cur",
"http://cur.cursors-4u.net/sports/spo-2/spo145.cur",
"http://cur.cursors-4u.net/sports/spo-5/spo403.cur",
"http://cur.cursors-4u.net/sports/spo-1/spo26.cur",
"http://cur.cursors-4u.net/anime/ani-10/ani983.cur",
"http://cur.cursors-4u.net/anime/ani-10/ani997.cur",
"http://cur.cursors-4u.net/anime/ani-10/ani952.cur",
"http://cur.cursors-4u.net/anime/ani-11/ani1030.cur",
"http://cur.cursors-4u.net/anime/ani-2/ani201.cur",
"http://cur.cursors-4u.net/toons/too-5/too449.cur",
"http://cur.cursors-4u.net/toons/too-5/too430.cur",
"http://cur.cursors-4u.net/toons/too-10/too931.cur",
"http://cur.cursors-4u.net/games/gam-5/gam440.cur",
"http://cur.cursors-4u.net/games/gam-4/gam335.cur",
"http://cur.cursors-4u.net/games/gam-6/gam503.cur",
"http://cur.cursors-4u.net/games/gam-11/gam1045.cur",
"http://cur.cursors-4u.net/games/gam-12/gam1143.cur",
"http://cur.cursors-4u.net/nature/nat-2/nat120.cur",
"http://cur.cursors-4u.net/nature/nat-6/nat581.cur",
"http://cur.cursors-4u.net/nature/nat-9/nat865.cur",
"http://cur.cursors-4u.net/nature/nat-9/nat859.cur",
"http://cur.cursors-4u.net/nature/nat-1/nat4.cur",
"http://cur.cursors-4u.net/nature/nat-1/nat32.cur",
"http://cur.cursors-4u.net/nature/nat-1/nat95.cur",
"http://cur.cursors-4u.net/nature/nat-1/nat69.cur",
"http://cur.cursors-4u.net/nature/nat-1/nat95.cur",
"http://cur.cursors-4u.net/holidays/hol-1/hol4.cur",
"http://cur.cursors-4u.net/special/spe-1/spe20.cur",
"http://cur.cursors-4u.net/special/spe-2/spe114.cur"
];
daptarKursor = daptarKursor.sort(function() {return 0.5 - Math.random()});
document.body.style.cursor='url('+daptarKursor[0]+'), default';
}
gantiKursor();
function antiCK(e) {
if (e.which==3) {
alert("Sorry for any inconvenience, some feature were disabled to prevent plagiarism");
return false;
}
}
</script><script src="http://yourjavascript.com/2239211691/queenidya.js" type="text/javascript"></script>
5. tinggal simpan deh
6. dan lihat hasilnya
selamat mencoba semoga berhasil
Keren dan bermanfaat sekali gan postingannya. Thanks :)
Blogaul : ya sama sama sob berkunjung lagi ya :D
saya coba ya gan.. done follback.. :)
BLOGWALKING yaa..
Z-T Blog : ya silahkan di coba udeh ane follback tuh