Minggu, 08 Agustus 2010

Tips | Membuat Efek Salju pada Pointer Mouse di Blog

Weh, udah lama sekali saya tidak pernah posting Blog ini hampir 1 bulan lebih, ya soalnya kemarin lagi sibuk meyelenggarakan upacara ngaben, hampir sebulan saya di kampung ( Klungkung). Nah sekarang mumpung ada waktu senggang seharian saya sempatkan Blogwalking dan update artikel Blog ini.

Efek Salju

Ya namanya juga baru mulai nulis, terpaksa deh bikin postingan umum alias orang umum sudah banyak yang tahu. Yakni sesuai dengan judulnya Membuat Efek Salju pada Pointer Mouse di Blog. Efek salju ini akan muncul setiap kali kamu menggerakkan mouse di atas Blog kamu. Pernak-pernik Blog ini hanya berfungsi sebagai hiasan Blog saja, ya diperuntukkan buat kamu yang senang berdandan maksudnya mendadani Blog. Mohon maaf jika artikel ini kurang berkenan dan tidak informatif.

Langsung saja mulai yuk :

1).Pertama-tama silakan duduk manis di depan computer kamu

2). Login ke blogger dengan akun sobat.

3). Pilih Tata Letak / Rancangan.

4). Pada Tab Element Halaman klik Tambah Gadget.

5). Pilih HTML/Java Script.

6). Langkah berikutnya copy paste kode di bawah ini :

<script type='text/javascript'>
// <![CDATA[
var colour="black";
var sparkles=100;

var x=ox=400;
var y=oy=300;
var swide=800;
var shigh=600;
var sleft=sdown=0;
var tiny=new Array();
var star=new Array();
var starv=new Array();
var starx=new Array();
var stary=new Array();
var tinyx=new Array();
var tinyy=new Array();
var tinyv=new Array();
window.onload=function() { if (document.getElementById) {
var i, rats, rlef, rdow;
for (var i=0; i<sparkles; i++) {
var rats=createDiv(3, 3);
rats.style.visibility="hidden";
document.body.appendChild(tiny[i]=rats);
starv[i]=0;
tinyv[i]=0;
var rats=createDiv(5, 5);
rats.style.backgroundColor="transparent";
rats.style.visibility="hidden";
var rlef=createDiv(1, 5);
var rdow=createDiv(5, 1);
rats.appendChild(rlef);
rats.appendChild(rdow);
rlef.style.top="3px";
rlef.style.left="0px";
rdow.style.top="0px";
rdow.style.left="3px";
document.body.appendChild(star[i]=rats);
}
set_width();
sparkle();
}}
function sparkle() {
var c;
if (x!=ox || y!=oy) {
ox=x;
oy=y;
for (c=0; c<sparkles; c++) if (!starv[c]) {
star[c].style.left=(starx[c]=x)+"px";

star[c].style.top=(stary[c]=y)+"px";
star[c].style.clip="rect(0px, 5px, 5px, 0px)";
star[c].style.visibility="visible";
starv[c]=50;
break;
}
}
for (c=0; c<sparkles; c++) {
if (starv[c]) update_star(c);
if (tinyv[c]) update_tiny(c);
}
setTimeout("sparkle()", 40);
}
function update_star(i) {
if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
if (starv[i]) {
stary[i]+=1+Math.random()*3;
if (stary[i]<shigh+sdown) {
star[i].style.top=stary[i]+"px";
starx[i]+=(i%5-2)/5;
star[i].style.left=starx[i]+"px";
}
else {
star[i].style.visibility="hidden";
starv[i]=0;
return;
}

}
else {
tinyv[i]=50;
tiny[i].style.top=(tinyy[i]=stary[i])+"px";
tiny[i].style.left=(tinyx[i]=starx[i])+"px";
tiny[i].style.width="2px";
tiny[i].style.height="2px";
star[i].style.visibility="hidden";
tiny[i].style.visibility="visible"
}
}
function update_tiny(i) {
if (--tinyv[i]==25) {
tiny[i].style.width="1px";
tiny[i].style.height="1px";
}
if (tinyv[i]) {
tinyy[i]+=1+Math.random()*3;
if (tinyy[i]<shigh+sdown) {
tiny[i].style.top=tinyy[i]+"px";
tinyx[i]+=(i%5-2)/5;
tiny[i].style.left=tinyx[i]+"px";
}
else {


tiny[i].style.visibility="hidden";
tinyv[i]=0;
return;
}
}
else tiny[i].style.visibility="hidden";
}
document.onmousemove=mouse;
function mouse(e) {
set_scroll();
y=(e)?e.pageY:event.y+sdown;
x=(e)?e.pageX:event.x+sleft;
}
function set_scroll() {
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
}
window.onresize=set_width;
function set_width() {
if (typeof(self.innerWidth)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
}
function createDiv(height, width) {
var div=document.createElement("div");
div.style.position="absolute";
div.style.height=height+"px";
div.style.width=width+"px";
div.style.overflow="hidden";
div.style.backgroundColor=colour;
return (div);
}
// ]]>
</script>


7). Dan terakhir jangan lupa simpan gadget baru kamu dan nikmati hasilnya.



Artikel Menarik Lainnya





101 komentar:

salam mengatakan...

Salam Sukses selalu Sob...!

Bunglon Blog Indonesia mengatakan...

wah kalo pake efek mungkin lebih menark ya sob untuk aksesories blog...sayang blog saya sudah lelet banget hehe..
Sukses Slalu!

Software Production House mengatakan...

Sukses dech pak.Sebenernya aku mau pake script ini. Cuma sayang..agak bikin lelet

man mengatakan...

suskses bro...mantap

Gkon Electricals & Electronics Pvt. Ltd. mengatakan...

led light bulbs india- delhi and india based led lights bulbs manufacturer and manufacturing weather proof led light bulbs and plastic bulbs.

Info-Lagu Lawas mengatakan...

Ty sob ..
Get succes.

joel mengatakan...

From operating systems to multimedia, PC & mobile games to anti-virus, from drivers to registry cleaners and internet tools our website features all the latest soft wares for safe and free downloading enjoy.

Precious mengatakan...

I love your blog lots of useful information. I've added it to my favorite bookmarks and subscribed in a reader.

All these issues are important, and that's why I just started blogging a while ago and it feels great.

Kind Regards
Evelina


stop smoking
quit smoking

ninja saga mengatakan...

makasih gan akhirnya juga gan gue dapet

gelang mengatakan...

jual aksesoris gelang
korea hrga murah

Refurbished Used Pc mengatakan...

I have been really glad after reading this blog as the knowledge which has been given via this blog is simply tremendous. I would congratulate and appreciate the blogger for doing this much hard work.

mengatakan...

Coach believe many young friends will coach factory outlet like this brand of clothing products, because this brand clothing is mainly for young people make a professional fashion brand, and Coach dress sort is various, full of beautiful things in eyes clothing products for you to choose not to finish,Coach Necklaces cheap price also is one of the features of chi ndonko
Jack008

Ana mengatakan...

xjd pon

blog reviews mengatakan...

I found this post while doing an internet search for the topic. This will help me complete my research term paper

joomla web design mengatakan...

Yes, well written article. I could find out some useful information on your blog guys. This is really useful for everyone. I love this post. Thanks for sharing it.

Ecommerce website developers mengatakan...

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. I love reading this kind of stuff. Your blog is one of a kind, i love the way you organize the topics.

pulsamurah mengatakan...

mohon ijin mampir, thx infonya...

Sign mengatakan...

Very useful information there! I just thought of to became your regular reader but the problem is your sweet blog does not seem friendly when it show in KMeleon browser which I use regularly other than the old school IE 6, hope you can get it fix soon, thanks in advance. Sign

tonethephone mengatakan...

I m happy to visit your blog. I got lots of information the which i search. Thanks a lot.

Si'her mengatakan...

Mantap, mksi sob :)
Bntu donk bgimn blog jd menarik, please saran

Techbee mengatakan...

Sukses dech pak.Sebenernya aku mau pake script ini. Cuma sayang..agak bikin lelet..
Good..
Job Interview Questions

sarabose mengatakan...

I just came across your blog and wanted to drop you a note telling you how impressed I was with the information you have posted here.HP LaserJet P1505 Driver

Missouri web design mengatakan...

this is really interesting. thank you for sharing.

Compare Life Insurance Policies mengatakan...

Wow, I’m blown away by the variety of material on this site. I’ve found a load of good resources here. I know I will visit this place often.

Small Business Loans mengatakan...

This is a fantastic post,very well authored and easy to understand.Thanks so much for this

Tourist Places in Kanyakumari mengatakan...

This is a wonderful content. I will bookmark this site and visit again. It is very informative.

web hosting company mengatakan...

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities attract us.

Ongky Himawan mengatakan...

tenkyu nih gan...berguna buat ane...

:)

India web hosting mengatakan...

Great blog article about this topic, I have been lately in your blog once or twice now. I just wanted to say my thanks for the information provided here.
india web hosting

dhanushnewupdates mengatakan...

Thank you, thats very interesting information. I need to share with my friends.

Web Development Company Chennai mengatakan...

I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post

Obat Herbal Maag Kronis mengatakan...

Wah keren gan, muantapp dech.. terima kasih banyak atas infonya.
sukses selalu buat agan.

Agen Xamthone Plus Salak mengatakan...

Hallo apa kabar ?

Agen Xamthone Plus Sibolga mengatakan...

Ikut gabung sini ya

Agen Xamthone Plus Siboronggobong mengatakan...

bagus banget infonya gan

Obat Tradisional Ginjal mengatakan...

terima kasih

obat penyakit asma mengatakan...

sukses ya,,,,,,

obat penyakit tbc mengatakan...

salam kenal..........

Obat Penyakit Nyeri Haid mengatakan...

terima kasih ya infonya...

Obat Penyakit Gagal Ginjal mengatakan...

sukses buat kamu..........

Obat Penyakit Insomnia mengatakan...

good artikel........

Creation site web maroc mengatakan...

This blog is wonderful, thank you propose. Glad to see new projects! I wish you much success.

pulsa online mengatakan...

mantapp, trims infonya :)

idzulia mengatakan...

Hallo sobat ? ikut gabung sini lagi ya

idzulia mengatakan...

saya numpang buat nambah backlink di sini ya

obat jelly gamat mengatakan...

bagus banget ya ceritanya

obat jelly gamat mengatakan...

salam kenal dan sukses slalu ya

obat tradisional kelenjar getah bening mengatakan...

hai,apa kabar

obat tradisional insomnia mengatakan...

sukses selalu ajach ya gan

obat tradisional ginjal mengatakan...

informasinya bermanfaat gan, mantap

obat tradisional kanker tumor otak mengatakan...

hai,selamat sore ajach ya gan

obat tradisional keputihan mengatakan...

izin menyimak ajach dulu soalnya belum paham benar

obat tradisional darah tinggi mengatakan...

good luck dan semoga berhasil ya

obat penyakit mengatakan...

Mudah- mudahan semakin mantab lagi ya

obat jelly gamat mengatakan...

Salam kenal dan sukses slalu

nove mengatakan...

selamat siang dan salam kenal ya

nove mengatakan...

semoga sukses selalu ya

nove mengatakan...

ijin menyimak dan backlink disini ya

leo mengatakan...

izin gabung sini ya sobat

riska mengatakan...

nice artikel

riska mengatakan...

thanks yah gan

riska mengatakan...

mantap nih informasinya

riska mengatakan...

hai

akbar mengatakan...

info yang menarik

zul mengatakan...

Halllo, numpang untuk nambah backlink di sini ya !!

Setelah saya menyimak ternyata info-infonya sangat bermanfaat bagi saya untuk menambah pengetahuan saya

Thanks



obat tradisional sinusitis mengatakan...

trimakasih info gan....

obat tradisional kanker darah / leukemia mengatakan...

hai,selamat pagi semuanya. salam kenal ajach ya

obat tradisional diare mengatakan...

semoga sukses selalu ya. ditunggu info selanjutnya.

Obat Penyakit Kanker Usus mengatakan...

Beritanya mennarik untuk di simak,

makasih ya gan atas infonya



Obat Herbal Penyakit ginjal mengatakan...


lanjutkan ,, good luck

Obat Penyakit Alzheimer mengatakan...


hallo gan

Obat Penyakit Darah Tinggi mengatakan...


ikut gabung di sini ya

Obat Penyakit Jantung Koroner mengatakan...

infonya cukup bermanfaat banget bagi saya

Obat Penyakit Kanker Usus mengatakan...


terimakasih ya atas info nya

Obat Penyakit Kanker Paru Paru mengatakan...

salam kenal

obat herbal insomnia mengatakan...

makasih buat infonya

Obat Herbal Penyakit Infeksi Saluran Kemih mengatakan...


hallo:)

Obat Herbal Penyakit Kanker Payudara mengatakan...

makasih ya atas infonya , mudah mudahan bermanfaat trus .

Obat Herbal Penyakit Nyeri Haid mengatakan...

salam hangat slalu

Obat Herbal Penyakit Psoriasis mengatakan...


jangan lupa mampir dulu ya , Good luck !!!

Jual Obat Hepatitis mengatakan...

sukses terus ya ..

obat herbal darah rendah mengatakan...

nice post and thanks y gan.

obat herbal ambeien mengatakan...

sukses selalu ya gan!

obat tradisional sifilis mengatakan...

thanks you very much

obat herbal ace maxs mengatakan...

ditunggu yah kunjungannya,,,

cara mengobati penyakit kuning mengatakan...

salam kenal dari saya

cara mengobati usus buntu mengatakan...

makasih buat infonya

cara mengobati komplikasi mengatakan...

Hallo sobat ? ikut gabung sini lagi ya

obat tradisional ace maxs mengatakan...

hai....

Obat Penyakit Stroke mengatakan...

pusing juga ya kalau belum paham betul caranya ,terima kasih sudah mau berbagi informasi

obat tradisional kolesterol mengatakan...

kemana ajach ne baru muncul ngeblog lagi

obat tradisional tumor lambung mengatakan...

saya sudah coba semua caranya, tapi ko susah banget ya

Obat Tradisional Penyakit Gagal Ginjal mengatakan...

makasih buat tips nya ..

Obat Tradisional Penyakit Kanker Prostat mengatakan...

cukup panjang juga ya langkah-langkah nya

Obat Penyakit Kanker Otak mengatakan...

kalau mau masangnya di postingan website bisa engga ya gan ??

motor advisor mengatakan...

Thanks for sharing information! I appreciate the useful information which you discussed here and I enjoyed

to read such interesting post.

dissertation proposal mengatakan...

I am just catching up but holy crapoly, that sounds like an awesome tailgate! I have to say - they aren't all that amazing. Deep fried Prime Rib? My god. Thank you for providing this information.

toko aksesoris mobil mengatakan...

pengen bnget punya effect dalam blog saya...thx ya gan sharenya...thx juga tips an tutorialnya...

Anonim mengatakan...

That’s a really interesting post, lots of food for thought. I run a computer repair business in London and I’m sure this will help.

chela mengatakan...

SEO Services, find great SEO tips and more about internet marketing

voyance gratuite par mail mengatakan...

Ini bagus sebagai blog !!
semoga sukses untuk Anda!

Posting Komentar