Not magic ..Superb Skill using Java Script

kasshapa

Member
Aug 21, 2006
391
1
0
1) Open any website(IE only).....which contains images ( u can use ur company home page/intranet or www.yahoo.com etc. )


2) Copy below given code and paste on the Address bar of the same browser(IE) 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++}setInterval('A()',5); void(0)


Guitar01.gif
Guitar02.gif
Guitar34.gif
 
Last edited:

kasshapa

Member
Aug 21, 2006
391
1
0
machan that script must be

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)

but weh i post it last setInterval word come as "setInter val" don't know y :(

when u can change it to "setInterval" it must work

any way i upload the scrip to server


hear it
 
Last edited:

Tuffey

Active member
  • Jul 31, 2006
    9,229
    0
    36
    44
    Kandy(Recently in Colombo)
    Wow................

    yes..............yes...................it worked for me..................

    niyamai..........

    okkoma images rotate wenawa...............:yes: :yes: :yes: :yes:

    Thanks Kasshapa.....................for sharing this with us........

    :yes: :yes: :yes: :yes: :yes: :yes: :yes:
     

    kasshapa

    Member
    Aug 21, 2006
    391
    1
    0
    Tuffey said:
    Wow................

    yes..............yes...................it worked for me..................

    niyamai..........

    okkoma images rotate wenawa...............:yes: :yes: :yes: :yes:

    Thanks Kasshapa.....................for sharing this with us........

    :yes: :yes: :yes: :yes: :yes: :yes: :yes:


    32.gif
    32.gif
    32.gif
     

    GTRZ

    Administrator
    Staff member
  • Apr 27, 2006
    19,480
    10,860
    113
    hay thanks for the nice script! :yes:
    I think something missing in the script you posted. It works fine from the txt file.
    anyway here from code quote

    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)

    herez the screenshot

    rotateia8.jpg
     

    rocky

    Junior member
  • May 11, 2006
    565
    4
    18
    Edge of the Moon
    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)

    THIS CODE WORK ON MOZILLA FIREFOX ALSO TRY IT
    BUT previous one didnt workon mozilla
    any good work
    try this on
     

    kasshapa

    Member
    Aug 21, 2006
    391
    1
    0
    GTRZ said:
    hay thanks for the nice script! :yes:
    I think something missing in the script you posted. It works fine from the txt file.
    anyway here from code quote

    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)

    SpinLol.png