Okara Cantt - Pakistan's Biggest IT Education Forum
Welcome To OkaraCantt - Pakistan's Biggest IT Education Forum. We Hope You Enjoy Your Visit.

You're Currently Viewing Our Forum As A Guest. This Means You Are Limited To Certain Areas Of The Board And There Are Some Features You Can't Use. If You Join Our Community, You'll Be Able To Access Member-Only Sections, And Use Many Member-Only Features Such As Customizing Your Profile, Sending Personal Messages, And Voting In Polls. Registration Is Simple, Fast, And Completely Free.



 
HomeCalendarFAQSearchRegisterLog in

Share | 
 

 Same Java Tricks

Go down 
AuthorMessage
F i G h T e R
Moderator
Moderator
avatar

Join date : 2011-05-06
Posts : 27
Points : 94
Reputation : 3
Gender : Male
Browser :
Location : USP

PostSubject: Same Java Tricks   Fri May 06, 2011 5:33 pm

اسلام علیکم۔۔ دوستو
آج میں نے انٹرنیٹ پر بہت ہی حیرت انگیز کوڈ دریافت کیا ہے، مجھے یقین ہے کہ آپ اس کام کو دیکھہ کر اپنی کرسیوں سے اٹھہ کر مجھے داد دیں گے۔
کرنا کیا ہے؟
آپ ایسا کریں پہلے گوگل ڈاٹ کام کھولیں اور امیج سرچ میں جائیں اس میں کسی بھی ٹاپک سے تصویریں ڈھونڈیں، جب کوئی بھی تصویروں والا رزلٹ پیج سامنے آئے تو مندرجہ ذیل کوڈ کو ایڈریس بار میں پیسٹ کردیں۔ اور انٹر دبادیں اور پھر دیکھیں کمال ۔



Code:




* Hack 1: Edit any webpage..Go to any web page, clear the address bar, and paste this…
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
and hit enter…Yaahhooo…!!! you can now edit whatever you want in that page now…

[Ofcourse you cannot save it back]

* Hack 2: Dancing ImagesGo to any web page, clear the address bar, and paste this…
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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}se tInterval('A()',5); void(0);

and hit enter…And….Enjoy the Image Dance…

* Hack3: Up & Downpaste this javascript on address bar and see pictures moving up and down
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++}se tInterval('A()',50); void(0);

* Hack4:it swirls the pic
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++}se tInterval( 'A()',5); void(0);

You can try this trick with different values.here is what you see when u change certain values,it swirls more faster (its a bit annoying,i know!)

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++}se tInterval( 'A()',5); void(0);

* Hack5:this runs on the 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++}se tInterval('A()',5); void(0);

* Hack6:this swirls everything
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++}se tInterval('A()',5); void(0);

* Hack7:try sending this javascript as scrap in orkut .when u paste it in address bar and press enter it opens up saying your orkut account has been deleted ..rest all is you know how to laugh
javascript:eval(String.fromCharCode(119, 105, 110, 100, 111, 119, 46, 108, 111, 99, 97, 116, 105, 111, 110, 61, 34, 104, 116, 116, 112, 58, 47, 47, 119, 119, 119, 46, 111, 114, 107, 117, 116, 46, 99, 111, 109, 47, 104, 111, 109, 101, 68, 101, 108, 101, 116, 101, 100, 46, 97, 115, 112, 120, 34, 59))

* Hack8:Copy and paste the java script code to the address bar of your browser
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)

2: Press enter and watch your window's "shaking it". You can change the value of i if you wish :-)
Back to top Go down
Capstan
Failure is only a temporary change
Failure is only a temporary change
avatar

Join date : 2011-05-06
Posts : 71
Points : 192
Reputation : 6
Gender : Male
Browser :
Location : ^_^Pakistan^_^

PostSubject: Re: Same Java Tricks   Fri May 06, 2011 6:03 pm

Thanks 8)

_______________________________________________________
Username: Guest
User Profile Link:
Date of Birth:0
Register date:
Last visit:
Number of posts:0
______________________________________________________________________________
Age of the forum in days:2768
Date when the forum was created:Sat Apr 16, 2011 8:36 pm

[You must be registered and logged in to see this image.]

Spoiler:
 
Back to top Go down
F i G h T e R
Moderator
Moderator
avatar

Join date : 2011-05-06
Posts : 27
Points : 94
Reputation : 3
Gender : Male
Browser :
Location : USP

PostSubject: Re: Same Java Tricks   Fri May 06, 2011 6:43 pm

Capstan wrote:
Thanks 8)


u wc Dear.. :D
Back to top Go down
Sponsored content




PostSubject: Re: Same Java Tricks   

Back to top Go down
 
Same Java Tricks
Back to top 
Page 1 of 1
 Similar topics
-
» Verify command when used with Java,JUNIT and Eclipse
» opera browser not loading the page using selenium Rc(Java)
» JAVA tunnel Based UAE Solution Available in Just $149 @ VoIP
» [Help] Java input Username field as a timestamp
» LocalFileDetector (uploading files) - InternetExplorer Driver (Java platform)

Permissions in this forum:You cannot reply to topics in this forum
Okara Cantt - Pakistan's Biggest IT Education Forum  :: IT World :: Website Reviews-
Jump to:  

Chat Room OKaraCantt.CoM

Free forum | © phpBB | Free forum support | Contact | Report an abuse | Forumotion.com