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


Reply
  Search this Thread
3,258 views
Old 15th September 2006, 18:05   #16
BHPian
 
furioussphinx's Avatar
 
Join Date: Feb 2006
Location: Hyderabad
Posts: 536
Thanked: 2 Times

The code is 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)

pakka because I tried it on orkut scrapbook and it worked but in Team-bhp.........it acts really weird! Doesnt work!
furioussphinx is offline  
Old 15th September 2006, 18:16   #17
BHPian
 
gkrishn's Avatar
 
Join Date: Aug 2004
Location: Bangalore
Posts: 623
Thanked: 91 Times

Quote:
Originally Posted by furioussphinx
++}setInterv al('A()',5); void(0)
There is a small error with above code.... see the "setInterv al"... notice the space between "v" and "al", this what was causing the script not to work. I removed it and tried it on IE. It worked... though not properly on firefox.

heehee... 7 years out of collage, and i am still able to debug things pretty quickly

Last edited by gkrishn : 15th September 2006 at 18:18.
gkrishn is offline  
Old 15th September 2006, 23:32   #18
BHPian
 
furioussphinx's Avatar
 
Join Date: Feb 2006
Location: Hyderabad
Posts: 536
Thanked: 2 Times

Quote:
Originally Posted by gkrishn
There is a small error with above code.... see the "setInterv al"... notice the space between "v" and "al", this what was causing the script not to work. I removed it and tried it on IE. It worked... though not properly on firefox.

heehee... 7 years out of collage, and i am still able to debug things pretty quickly
a copy paste typo yeah its interval and not inter val
furioussphinx is offline  
Reply

Most Viewed


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