Team-BHP > Shifting gears
Register New Topics New Posts Top Thanked Team-BHP FAQ


Reply
  Search this Thread
3,265 views
Old 13th September 2006, 22:19   #1
Senior - BHPian
 
satish_appasani's Avatar
 
Join Date: Jun 2004
Location: Hyderabad
Posts: 1,112
Thanked: 104 Times
Webpage on steroids

Received this in my mail

1) Open any website.....which contains images (u can use ur company home page/intranet)

2) Copy below given code and paste on the Address bar of the same browser window and press enter ............
3) All images will be played......


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++}setInterv al('A()',5); void(0)
satish_appasani is offline  
Old 13th September 2006, 23:21   #2
BHPian
 
furioussphinx's Avatar
 
Join Date: Feb 2006
Location: Hyderabad
Posts: 536
Thanked: 2 Times

I dont see anything happening.......tried it on both, IE and Firefox......
furioussphinx is offline  
Old 14th September 2006, 00:21   #3
Senior - BHPian
 
satish_appasani's Avatar
 
Join Date: Jun 2004
Location: Hyderabad
Posts: 1,112
Thanked: 104 Times

See what it has done to my TBHP page

satish_appasani is offline  
Old 14th September 2006, 00:27   #4
BHPian
 
gr8guzzler's Avatar
 
Join Date: Apr 2005
Location: Navi Mumbai
Posts: 653
Thanked: 87 Times

Quote:
Originally Posted by furioussphinx
I dont see anything happening.......tried it on both, IE and Firefox......
Same here....nothing, just get an error at the bottom.
gr8guzzler is offline  
Old 14th September 2006, 00:30   #5
BHPian
 
furioussphinx's Avatar
 
Join Date: Feb 2006
Location: Hyderabad
Posts: 536
Thanked: 2 Times

Quote:
Originally Posted by satish_appasani
See what it has done to my TBHP page


Nopes didnt work again.......but i know what was supposed to happen.......all the display pics fly around na???? I got a similar code last time on orkut and it worked there.
furioussphinx is offline  
Old 14th September 2006, 00:38   #6
Senior - BHPian
 
jkdas's Avatar
 
Join Date: Sep 2005
Location: Thiruvananthapu
Posts: 9,687
Thanked: 1,492 Times

Quote:
Originally Posted by gr8guzzler
Same here....nothing, just get an error at the bottom.
:( nope!

did we miss anything?
jkdas is offline  
Old 14th September 2006, 01:07   #7
BANNED
 
Join Date: Mar 2006
Location: India
Posts: 4,347
Thanked: 27 Times

There seems to be an error in the code. It does'nt work.
speedzak is offline  
Old 14th September 2006, 08:47   #8
BHPian
 
Harrie's Avatar
 
Join Date: Feb 2005
Location: KA 03, KL 12, TN 38
Posts: 701
Thanked: 36 Times

The script uses Java script. You must have it enabled on your web browser I guess. Works fine for me.
Harrie is offline  
Old 14th September 2006, 09:02   #9
Distinguished - BHPian
 
condor's Avatar
 
Join Date: Jun 2006
Location: Speed-brkr City
Posts: 15,864
Thanked: 16,018 Times
Remove the spaces

javascript:R=0;x1=.1;y1=.05;x2=.25;y2=.24;x3=1.6;y 3=.24;x4=300;y4=200;x5=300;y5=200;DI=document.imag es;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)

remove the spaces too .. like the one in "Interv al" in the original post.
condor is online now  
Old 14th September 2006, 14:44   #10
Senior - BHPian
 
Gordon's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,546
Thanked: 483 Times

NOTE TO MODERATOR:

The code caused me problems. Normal viewing of Team-BHP is hampered. No images are showing.


Gordon is offline  
Old 14th September 2006, 15:26   #11
Senior - BHPian
 
Join Date: Oct 2005
Location: Gujarat 03
Posts: 1,302
Thanked: 18 Times

Similar Problem..



Mugen_Power.
Mugen_Power is offline  
Old 14th September 2006, 15:33   #12
Senior - BHPian
 
Gordon's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,546
Thanked: 483 Times

Is there any way to reverse the process?
I tried deleting temporary files/cookies/history but to no avail.
Copy-pasted the code on the Team-BHP window.
Only Team-BHP is behaving in this fashion.
Gordon is offline  
Old 14th September 2006, 16:12   #13
BHPian
 
Join Date: Jul 2004
Location: Utopia!
Posts: 595
Thanked: 105 Times

I dont think missing images has anything to do with the above code...
Digital Vampire is offline  
Old 14th September 2006, 16:53   #14
BHPian
 
Join Date: Sep 2005
Location: Chennai
Posts: 171
Thanked: 151 Times
Just refresh

I just refreshed after playing with the javascript and things were back to normal.
vennarbank is offline  
Old 15th September 2006, 17:44   #15
BHPian
 
ollie's Avatar
 
Join Date: Apr 2006
Location: Mumbai
Posts: 289
Thanked: Once

It aint working with me dude !
ollie is offline  
Reply

Most Viewed


Copyright ©2000 - 2024, Team-BHP.com
Proudly powered by E2E Networks