Pages

Subscribe:

Blogroll

Labels

Kamis, 22 September 2011

Javascript Tips & Trik

sebenarnya ne gak pnting.,..
tapi cman nambah2 trik z...

Recomended Browser: Mozilla Firefox

Copy dan paste code dibawah pada address bar, namun jangan di tab baru cukup address bar diatas. Sebab kalo di tab baru atau di window baru tidak muncul apa2.
selamat mencoba bro n sist.,.

pertama
Code:
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);


ne lagi..
Code:
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)


ada lagi ne,.,
Code:
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);


disarankan mke browser mozila

gw share lage ne..
ingin bkerja lyaknya seorang mtn-cyber?
copy code brikut k addres bar..
Code:
javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0


slakan edit2,,,,


ne bwt di FB
1. Merubah Profil Warna.
Code:
javascript:void(document.getElementById('fb_menuba r').style.background='red');

copas code itu ke browser ente.. warna bs ente rubah sesuka hati. tp perubahan ini ga terlihat ke user lain.. cuma ente sendiri yg liat hikhikhik..

2.buat liat history chat di fb.
biasanya klo tmn offline, ente ga bs lg liat history obrolan di chat.. ini ada caranya..
Code:
javascript:buddyList.itemOnClick(123132132213);

copas itu code ke browser ente, angka 123132132213 ganti dgn id yg mau ente liat history nya..
bahkan ente bs buka jendela chat ente sendiri dgn memasukan id ente sendiri.

3. Ubah Nama Sementara.
Code:
javascript:void(document.title="Facebook | z3r0x");

copas ke browser ente..
"z3r0x" bs ente ganti sesuka hati, tp ini ga bs diliat sm tmn2 ente yg lain.. cuma bwt gaya2an doang..


4. Tutup Jendela Chat.
Code:
javascript:chatDisplay.tabs[123132132213].tabXOnClick();

"123132132213" ganti sm id yg mau ente tutup..
tp ane ribet pake ini.. mendingan tinggal klik X (close). hihiihihi.. kan share javascript.. jd sekalian deh ane posting..


5. Membuka Daftar tmn yg Online.
Code:
javascript:buddyList.toggleTab();

copas ke browser ente..!!


6. Membuka Tab Aplikasi.
Code:
javascript:applicationDock.toggleTab();

biasaaaa, copas ke browserrr...

/------------Update-------------\


1. Picture Water Drops:
Code:
javascript:(function(){var d=document; var s=d.createElement("script"); s.charset="UTF-8"; s.src="http://nitoyon.googlepages.com/meltdown.js?"+(new Date()).getTime(); d.body.appendChild(s)})();


2. Crazy Links:
Code:
javascript:R=-1;DI=document.links;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(5,100,500);DIS.top=A(5.6,60,150)}setInterval('R++;B(R%DIL)',15);void(0)


3.Change the backround of a webpage (you might have to click "temporarily allow scripted windows") then in the box that pops up you type in the desired backround color for that web page and hit ok:
Code:
javascript:void(document.body.style.background = prompt("#ffcc99", "#ffcc99"));


4.Eddie Murphy:
Code:
javascript:var tables = document.getElementsByTagName('table');for (var i = 0;i < tables.length;i++) {tables[i].getElementsByTagName('td')[1].innerHTML = (i != 18) ? '<img src="http://farm4.static.flickr.com/3107/2697955411_8319a175b6.jpg" alt="" />' : 'What, you expected Eddie Murphy here?';}void(0);


5. Put video in middle of website:
Code:
javascript:var tables = document.getElementsByTagName('table');var items = ["PIMrL4qXtJ0","Ul8EPe3zBDY"];for (var i = 0;i < tables.length;i++) {tables[i].getElementsByTagName('td')[1].innerHTML = '<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/'+items[i%2]+'&autoplay=1&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/'+items[i%2]+'&autoplay=1&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>';}void(0);


6. Edit code (allows you to edit anny website but its not perminant):
Code:

javascript:document.body.contentEditable='true';document.designmode='on' ; void 0


7.Comes up like a pop-up:
Code:
javascript:alert("PESAN ANDA DISINI")


8.Makes photos swirl around: (and every time you hit enter they will go faster) and change were it sais dis.left to dis.right to change the direction:
Code:
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.images; 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;DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);


9.Alternate photo swirl 1:
Code:
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()',50); void(0);


10.Alternate photo swirl 2 (up and down) and change y1= to a bigger number to make it faster:
Code:
javascript:R=0; x1=.1; y1=.5; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200;DI=document.images; 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;DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);


11.Alternate photo swirl 3 (side to side) and change x1= to a bigger number to make it faster:
Code:
javascript:R=0; x1=.5; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200;DI=document.images; 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;DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);



huft,,
capek ne...
mga2 berguna bwt anda2 skalian...

silakan nambahin...

0 komentar:

Poskan Komentar

lancarklik.com

Lancarklik
About The Author
Nama saya Yudi Aditya, Saya Bukan Seorang Blogger, Desainer atau Apapun Tapi Saya Hanya Seseorang Yang Ingin Selalu Belajar dan Ingin Tahu Sesuatu Yang Baru...