Assalamualaikum,
Hari Admin S nak share beberapa koleksi Java Script yang cool untuk korang. Haha.
Cara nak guna: - Buka Internet Explorer or Firefox version 5 kebawah.
- Buka Facebook atau mana-mana website, copy & paste java code dibawah dekat address bar IE or Firefox anda. (Cara nak copy: Select & Ctrl+C)
- Pastikan perkataan "javascript:" ada kat depan, kalu tak ada, anda kena taip sendiri. Pastu tekan ENTER. (Kalau tak faham boleh lihat contoh gambar di bawah)
Koleksi Java Script
1.Edit Halaman web
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0
2.Main Game Tembak -tembak (Hancurkan Website)
javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);
3.Shaking Broswer
4.Calculator (ganti no dlm tu)
javascript: alert(4+5+6+7+(3*10));
javascript: javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(6)
4.Calculator (ganti no dlm tu)
javascript: alert(4+5+6+7+(3*10));
5.Gambar Menari
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+ "px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+" px"}R++}setInterval('A()',5); void(0);
6.Gambar Bergerak Keatas & Kebawah
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*1+i*x2+x3)*x1+x2)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);
7.Gambar Berputar
javascript:R=-1;DI=document.images;DIL=DI.length;function A(a,b,c){return Math.sin(R/350*6.28*b+a)*c+c}function B(a){DIS=DI.item(a).style;DIS.position='absolute';DIS.left=A(0,7,300);DIS.top=A(1.6,6,150)}setInterval('R++;B(R%DIL)',15);void(0);
8.Gambar Berjalan Pada Screen
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.tan(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.sin(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.tan(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.sin(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);
9.Putar Semua ( HAHA)
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("div"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);
10.Tulisan Warna-Warni
javascript: i=0; c=["red","green","blue","yellow","magenta","orange","black","white"]; a=document.links;setInterval('i++;a[i % document.links.length].style.color=c[i % c.length]',10);void(0); alert("Admin Batu Kurau,\n Terima kasih kerana mengunjungi Blog\n Batu Kurau Kampungku");
Bagi Pengguna Twitter (Auto Follow Java Script)(untuk dpt ramai follower)
-pergi ke laman web http://twiends.com/twitter , dan login guna twitter anda.
-copy & paste java kat bawah mcm biasa.
javascript: /* nemsis 4 bhw */ function tr_f() { var followlinks = []; for (var i=0; i < document.links.length; i++) {if (document.links[i].getAttribute("class")=="follow"){followlinks[followlinks.length] = document.links[i];}} /* nemsis 4 bhw */ for (var i=0; i<followlinks.length; i++) {var rrr=followlinks[i].onclick();} } tr_f();
Contoh |
Contoh |
Contoh |
p/s: Ada banyak lagi koleksi java, tapi agak "nakal", so kalu nak, boleh minta kat admin secara personal ye ツ
0 comments:
Catat Ulasan