Silahkan Copy Paste script di bawah ini simpan di blog sobat
<script type='text/javascript'>
//<![CDATA[
// Ojos que siguen al cursor
// Script original de Oopstudios.com
// Adaptado por ciudadblogger.com
EYES = {};
EYES.stack = [];
//
EYES.follow = function (eye) {
var el1 = document.getElementById (eye);
var el2 = el1.getElementsByTagName ("IMG");
el2 = el2[0];
el2.centre = (el1.offsetWidth - el2.offsetWidth) / 2;
el2.style.margin = el2.centre + "px 0 0 " + el2.centre + "px";
el1.maxDist = 6 * el1.offsetWidth;
EYES.stack.push ([el1, el2]);
};
EYES.mousemove = function (e) {
if (!EYES.stack.length) {
return;
}
//
var mouseX = mouseY = 0;
if (!e) var e = window.event;
if (e.pageX || e.pageY) {
mouseX = e.pageX;
mouseY = e.pageY;
} else if (e.clientX || e.clientY) {
mouseX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
mouseY = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
}
//
for (var e=0, l=EYES.stack.length; e<l; e++) {
var el = EYES.stack[e];
var elX = elY = 0;
if (el[0].offsetParent) {
obj = el[0];
do {
elX += obj.offsetLeft;
elY += obj.offsetTop;
} while (obj = obj.offsetParent);
}
el[0].centreX = elX + Math.round (el[0].offsetWidth / 2);
el[0].centreY = elY + Math.round (el[0].offsetHeight / 2);
var difX = mouseX - el[0].centreX;
var difY = mouseY - el[0].centreY;
var dTan = Math.atan2 (difX, difY);
var dist = Math.sqrt ((difX * difX) + (difY * difY));
dist = Math.sin ((dist > el[0].maxDist ? 1 : dist / el[0].maxDist));
var newX = el[1].centre + Math.round (Math.sin (dTan) * el[1].centre * dist);
var newY = el[1].centre + Math.round (Math.cos (dTan) * el[1].centre * dist);
el[1].style.margin = newY + "px 0 0 " + newX + "px";
}
};
if (window.attachEvent) document.attachEvent ("onmousemove", EYES.mousemove);
else document.addEventListener ("mousemove", EYES.mousemove, false);
//]]>
</script>
<div style="position:relative; height:150px; margin-bottom:30px;">
<div id="Ojo1" style="width: 170px; height: 140px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIg5Mgp37OQFW-Hj2NKsfBshg5t8HXcgveUAK5bW7RlsUSINzd45Ie-e3TZzh8crNhFW7FF3vfHBHRJvgTT9HeSlOJJGK4znBZrqnLCxc4NMq9cihs3-QTEKjBwvKEPbgcApvX_9cuvjM/s170/ojo_1.png) center center no-repeat; position: absolute; left: 307px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg60uokYehmWx4BTA_4BJoExld2wjz9BIsAdYS-p2SZuo0N4Z_fJe9tIznMHqYE2jy1MjwrCakmKi3LkIbSvscVDRQJYitCYi1MPwpx-otybfJnYRcpmh2gr8NjF73wlKKBcHtjQp8v14w/s30/pupila.png" width="23" height="23" /></div>
<div id="Ojo2" style="width: 170px; height: 140px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij8tqIlvIeZZHXjJEf4FI3Fn7uJGiwdAIPqEetCPHpP9_ULNOjDH7WHP_PtYA8g-VuOlTtQgdq-ffbU-JRj3SSmOqd1T_iwPTlTsiJIKqB5MIidGTHEeCtkPt7wTjusxK8CmL2vES7FP4/s170/ojo_2.png) center center no-repeat; position:absolute;
left: 485px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg60uokYehmWx4BTA_4BJoExld2wjz9BIsAdYS-p2SZuo0N4Z_fJe9tIznMHqYE2jy1MjwrCakmKi3LkIbSvscVDRQJYitCYi1MPwpx-otybfJnYRcpmh2gr8NjF73wlKKBcHtjQp8v14w/s30/pupila.png" width="23" height="23" /></div>
</div>
<script type="text/javascript">
EYES.follow ('Ojo1');
EYES.follow ('Ojo2');
</script><small><center><a href="http://variasiblogger.blogspot.com/2012/03/cara-membuat-widget-mata-penjaga-blog.html" target="_blank">Get-Widget-Blog</a></center></small>
Untuk penyimpanan kode script di atas dengan cara silahkan log in terlebih dahulu di blog sobat >> klik Rancangan >> klik ADD Gadget >> klik HTML/Javascript , kemudian paste script diatas , simpan dan lihat hasilnya semoga bermanfaat
klik DEMO
wahhhh ide yang keren nih bang...
BalasHapusya sob , buat satpam biar aman dengan mata yang seram hehehe... :d
Hapuswaaaaw, blognya keren banget :D
BalasHapusah biasa aja sob , gak begitu bagus hehehe... soalnya masih tahap belajar desain :D
Hapusmantaf bro i like your blog
BalasHapusmakasih sob.. :D
Hapusweh,, ane pesen yang mata keranjang sob,, ada gak? :D
BalasHapuswah kayanya kalo mata keranjang lagi dipake sama saya wkwkwk.. :D
Hapusaku mau mata hati
BalasHapushehe
bagus matanya
terus kalo sobat mata hati , terus aku mata apa dong hehehe... :>)
Hapuskereenn... boleh nih pasang juga di blogku, hehe... thanks infonya :)
BalasHapussalam kenal :)
yups , silahkan sob.. semoga bermanfaat dan salam kenal balik :D
Hapusmata genit mata genit :p
BalasHapuskeren kang :)
Ikhlas - The Secret
awas matanya jangan genit banget hehehe... :D
Hapuskereeen juga masbroo , terimakasih share nyaa
BalasHapusiya sob , semoga bermanfaat... :D
Hapuswah udah pada pesen ya...ane juga pesen 1 mata kaki hehe... \o/
BalasHapusitu bikin berat loading blog gk bang?
wah kalo mata kaki bau dong hehehe... , lumayan sob ga terlalu berat ringan , tapi kalo sekiranya udah berat jangan :>)
Hapusserem, serasa dipelototin sama mpunya blog 7:(
BalasHapuswah saya gak pernah melotot sob , tapi suka nyengir smile hehehehe.. :>)
HapusWaw....kreatif n keren sob :)
BalasHapusyups.. semoga bermanfaat sob.. :D
Hapushebatt..
BalasHapusyups.. :D
Hapusudah ku coba tapi ko ga tampil ya mata nya hahaha
BalasHapusmasa sih ? tapi tadi di cek bisa kok , sampe muter - muter tuh matanya hehehe... :>)
Hapushehehe... lucu ya kalo di pake jadi kaya satpamnya
BalasHapusya sob , buat jaga - jaga dari anti para copas mania wwkkwkwk.. jadi takut liat ada satpam blognya... :>)
Hapuskeren oyy...penuh warna-warni
BalasHapusyups , sob.. :D
Hapushaha lucu sob ... :D
BalasHapusyups... :D
Hapusahaha.. keren \o/ :D .
BalasHapussemoga bisa diterapkan :D
Hapus