Follo Molo (Become My Stalker And Ask Me To Stalk Back....I prefer a Yandere...)

Bored?You can play around with these line of colours for a while.....it is 100times better than PS4...because I dont have one....

26 November 2011

Efek Mata Pada Blog

Snapshot:

Deskripsi:Mata yang akan mengikut kemana korang gerakkan mouse cursor dekat blog

Langkah pemasangan:

Cuma perlu pergi ke layout page atau design-->Add a gadget-->Html Javascript

Pastekan kod dibawah dekat situ

<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/AVvXsEgBOx8aXVkYnpidsz3aLIPMfRkpupxTbLvhtCj1dgn6pmh3_I5WGwyfnTAP3BaNrLu0e_jaGSs8LMw5KlJRETGoYHTyycSReqIjLzkycmSIaE0jCSmUMk5GtisB8TThzzpxdqKqPftlSYk/s170/ojo_1.png) center center no-repeat; position: absolute; left: 307px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXhro9TFsC7_wsFU1FuIpeK9sc-2ES46vhbSQAHG8-E-ZexdxHQdoU6HK3qkbC-v4L1YTrb4CvwxaFeXfx8MiTqVRQMPxcv72SCbdyUBRKqFHQqQjsglkFZ8sVYMnJ1sqwj6hVu77JL2c/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/AVvXsEgkdJRC8pbZ_MOGns5tj708uMHmTOVzJQqBhIqeLmO4XKouStoCyePXQA-qvmA0VljURyUT14bo5f7Raxav1sZfpBnWfwOeMJmLD7KyDAl0TsOTaYHt4MuWL0zSkW5FAjLE0HII0sYrDYM/s170/ojo_2.png) center center no-repeat; position:absolute;
left: 485px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXhro9TFsC7_wsFU1FuIpeK9sc-2ES46vhbSQAHG8-E-ZexdxHQdoU6HK3qkbC-v4L1YTrb4CvwxaFeXfx8MiTqVRQMPxcv72SCbdyUBRKqFHQqQjsglkFZ8sVYMnJ1sqwj6hVu77JL2c/s30/pupila.png" width="23" height="23" /></div>
</div>


<script type="text/javascript">
EYES.follow ('Ojo1');
EYES.follow ('Ojo2');
</script>


Untuk,pilihan mata yang lain,cuma perlu gantikan kod yang dimerahkan dengan kod mata yang lain dibawah


<div style="position:relative; height:145px; margin-bottom:30px;">
<div id="Ojo1" style="width: 132px; height: 143px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAVzrdgGm1pxr9kLDPWrfj4YTGeOcpTikLlYrWH_a-0Zb9Qy0-yVgvWExYq9-Ipn2MRDE0YcCCyPcuP4nzvfu3x9kExzBwCF9toDnoBADs_yjR-9IRXeYdCeDngVf0O03rVoCngNCubwg/s143/ojo1.png) center center no-repeat; position:absolute; left: 377px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9wi0J-u2isTbGnl0W7UIo6l-tS1lfVr6LbmbaoYxz5p586AOfdz-GLbZzVKN_RX-oTu2hSwLHE_OBmGGLd2S73G_fOul_k4WWn7UF8zjQ-0pkDNqyjuP34N7vyz96UgfNC2cpz4_YClE/s34/pupila.png" width="30" height="30" /></div>
<div id="Ojo2" style="width: 132px; height: 143px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8v1ZCwOTfW_EcTj3ePP2rjFDthWxaP85Xcn2y6gdWu0mq2JgYH9NL891pkl5cWYJVbvT0mXdFazbbfARBoEll3tTKdoeqKqz5c7APLQl6v3btJnJEg4XgdKDGwEOrEaFlX5WFPoAqVFg/s143/ojo2.png) center center no-repeat; position:absolute; left: 485px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9wi0J-u2isTbGnl0W7UIo6l-tS1lfVr6LbmbaoYxz5p586AOfdz-GLbZzVKN_RX-oTu2hSwLHE_OBmGGLd2S73G_fOul_k4WWn7UF8zjQ-0pkDNqyjuP34N7vyz96UgfNC2cpz4_YClE/s34/pupila.png" width="30" height="30" /></div>
</div>




<div style="position:relative; height:145px; margin-bottom:30px;">
<div id="Ojo1" style="width: 127px; height: 135px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhIiJL5qb5g9Ju2CtxKg5K9VQxYhghp7mBfcqF5E3tsp7JCyInH3TQajj-UiSAxVwTw95GSAfpLWh0Yy8p1FkcQI6EmZ8KdFbysuK0TUD1L9isz5bNoqeUYHdwn5yVbPuo7A4NSDKZ0sA/s135/ojo1.png) center center no-repeat; position:absolute; left: 377px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUhDkcNbElyXemWvKLrvy4gWk0gNUUcgkEzaEqnrmwJRNlZwyNKRA1JXhtD2-poTKPtYpTT4lndrM-jWpEJeXqjSM5hmgOfZYG5zOZ_osfZy1NxwDX_jL9oGlXXNL-uP16DIz16ZAEMFI/s34/pupila.png" width="30" height="30" /></div>
<div id="Ojo2" style="width: 127px; height: 135px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiO1Rg0Scj4mSOxa2Pnxztpkc7ZfjhlRl-ghLu7Byt5EkV4TV0t6ODggQBMrZ8JZklrd4c_e3Xm7zzRP3cZtBNDqLjkc2WgGuXOUPIVb5XN_J0DIhINanenFNKO6kwZ1oAoTugmYAFN-18/s135/ojo2.png) center center no-repeat; position:absolute; left: 515px; top: 20px;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUhDkcNbElyXemWvKLrvy4gWk0gNUUcgkEzaEqnrmwJRNlZwyNKRA1JXhtD2-poTKPtYpTT4lndrM-jWpEJeXqjSM5hmgOfZYG5zOZ_osfZy1NxwDX_jL9oGlXXNL-uP16DIz16ZAEMFI/s34/pupila.png" width="30" height="30" /></div>
</div>

Post a Comment:

Nota: Hanya ahli blog ini sahaja yang boleh mencatat ulasan.

At the post page,this banner can be spin around ;)