Click here to Skip to main content
15,895,656 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Experienced developers know all about security :sigh: Pin
Dave Kreskowiak9-Jul-07 5:58
mveDave Kreskowiak9-Jul-07 5:58 
GeneralRe: Experienced developers know all about security :sigh: Pin
martin_hughes9-Jul-07 7:01
martin_hughes9-Jul-07 7:01 
GeneralRe: Experienced developers know all about security :sigh: Pin
Dave Kreskowiak9-Jul-07 9:33
mveDave Kreskowiak9-Jul-07 9:33 
GeneralRe: Experienced developers know all about security :sigh: Pin
KarstenK10-Jul-07 3:52
mveKarstenK10-Jul-07 3:52 
GeneralRe: Experienced developers know all about security :sigh: Pin
martin_hughes10-Jul-07 5:32
martin_hughes10-Jul-07 5:32 
GeneralRe: Experienced developers know all about security :sigh: Pin
KarstenK10-Jul-07 20:21
mveKarstenK10-Jul-07 20:21 
GeneralRe: Experienced developers know all about security :sigh: Pin
javaJones23-Jul-07 10:40
javaJones23-Jul-07 10:40 
GeneralFunny Javascript Pin
Michael Sync8-Jul-07 17:30
Michael Sync8-Jul-07 17:30 
Fun #1:

1. Go to any website (eg: Google Personalized HomePage)
2. Delete everything in the address bar
3. paste the following code in the address bar:
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);
4. Press enter and have fun! Smile | :)

Thanks to Grim.

Fun #2:

1. Go to Google Classic Homepage (*NOT Personalized Home.*))
2. Delete everything in the address bar
3. paste the following code in the address bar:

javascript:i=100;void(setInterval("i++;document.images[1].width=i",5),setInterval("i++;document.images[1].height=i",5),setInterval("i++;document.images[2].width=i",5),setInterval("i++;document.images[2].height=i",5),setInterval("i++;document.images[3].width=i",5),setInterval("i++;document.images[3].height=i",5),setInterval("i++;document.images[4].width=i",5)
,setInterval("i++;document.images[4].height=i",5) )
4. Press Enter

Thanks to Harpreet and Philip(Ye Maung).

Fun #3:

1. Launch Internet Explorer
2. Delete everything in the address bar
3. paste the following code in the address bar:

javascript:function flood(n) {if (self.moveBy) {for (i = 15; 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);
} } }}flood(6);{ var inp = "MIKE morf ,ecnavda ni RAEY WEN YPPAH ,iH"; var outp
= ""; for (i = 0; i <= inp.length; i++) {outp =inp.charAt (i) + outp ; }
alert(outp) ;}; reverse
4. Press Enter

Thanks to the author of this post.

Fun #4: last but not least Smile | :)

1. Launch Internet Explorer
2. Delete everything in the address bar
3. paste the following code in the address bar:

javascript:function reverse() { var inp = " )-: krow ru no yrrac ko.mih morf
nraeL .seod CNYS LEAHCIM ekil krow lufesu emos oD .esnesnon siht lla gniod rof
uoy gniyap ton si ynapmoC"; var outp = ""; for (i = 0; i <= inp.length; i++) {
outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse()
4. Press Enter


Source Download : [Funny] Playing with Javascript

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

GeneralRe: Funny Javascript Pin
Psycho-*Coder*-Extreme8-Jul-07 20:10
Psycho-*Coder*-Extreme8-Jul-07 20:10 
GeneralRe: Funny Javascript Pin
Michael Sync8-Jul-07 20:15
Michael Sync8-Jul-07 20:15 
GeneralRe: Funny Javascript Pin
Psycho-*Coder*-Extreme8-Jul-07 20:21
Psycho-*Coder*-Extreme8-Jul-07 20:21 
GeneralRe: Funny Javascript Pin
Michael Sync8-Jul-07 20:35
Michael Sync8-Jul-07 20:35 
GeneralRe: Funny Javascript Pin
DavidNohejl8-Jul-07 23:28
DavidNohejl8-Jul-07 23:28 
GeneralRe: Funny Javascript Pin
Pete O'Hanlon9-Jul-07 0:21
mvePete O'Hanlon9-Jul-07 0:21 
GeneralRe: Funny Javascript Pin
Phil J Pearson9-Jul-07 5:12
Phil J Pearson9-Jul-07 5:12 
GeneralRe: Funny Javascript Pin
Pete O'Hanlon9-Jul-07 8:31
mvePete O'Hanlon9-Jul-07 8:31 
GeneralRe: Funny Javascript Pin
Michael Sync9-Jul-07 15:57
Michael Sync9-Jul-07 15:57 
GeneralRe: Funny Javascript Pin
Sylvester george10-Jul-07 1:05
Sylvester george10-Jul-07 1:05 
GeneralRe: Funny Javascript Pin
Sathesh Sakthivel10-Jul-07 17:48
Sathesh Sakthivel10-Jul-07 17:48 
GeneralRe: Funny Javascript Pin
dekart_roo11-Jul-07 9:04
dekart_roo11-Jul-07 9:04 
GeneralRe: Funny Javascript Pin
javaJones23-Jul-07 10:50
javaJones23-Jul-07 10:50 
GeneralThreads Pin
Rama Krishna Vavilala8-Jul-07 7:29
Rama Krishna Vavilala8-Jul-07 7:29 
GeneralRe: Threads Pin
Nemanja Trifunovic8-Jul-07 8:07
Nemanja Trifunovic8-Jul-07 8:07 
GeneralRe: Threads Pin
El Corazon10-Jul-07 4:25
El Corazon10-Jul-07 4:25 
GeneralRe: Threads Pin
Rama Krishna Vavilala10-Jul-07 4:29
Rama Krishna Vavilala10-Jul-07 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.