Cool trick with javascript

January 16th, 2007 12:22 pm by alexxfender

Paste the following in to your address bar while looking at a page with a lot of pictures.

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

Source: https://stopgeek.com/neat-trick-with-javascript.html

Similar Posts:

Recent Posts:

19 Responses to “Cool trick with javascript”

  1. 1
    J Says:

    A load chak deuh tihna ami? Flickr en nan a tha viau ang a chuti. Thanks for the tip, k’u alexx

    Report this comment

  2. 2
    J Says:

    Awiha ka rui don in ka hria…um an ngai!!! :(

    Report this comment

  3. 3
    virgochhas Says:

    Sandman blog en nan a van thra awm ve…a chak phah deuh chuan…

    :)

    Report this comment

  4. 4
    virgochhas Says:

    het tret tret…

    luhai luhai….beram lu emaw te ka ti hial alawm :D

    Report this comment

  5. 5
    alexxfender Says:

    A vir muang deuh duh chuan… setInterval(’A()’,5); tih ah khan 5 ai ah 30 vel dah ula…

    Report this comment

  6. 6
    J Says:

    “WARNING! Avomin ei phot zel ru” te ti la, alexx :D

    Report this comment

  7. 7
    virgochhas Says:

    Sandman blog ah ka va test a….

    vir nasa muai muai sin awww

    lolz

    Report this comment

  8. 8
    virgochhas Says:

    J and Alex,

    ka blog a joke kha ka hrethiam ve lo ah…in soi vat loh chuan misual ah ka puang a ni mai…

    mai mai sala

    :P

    Report this comment

  9. 9
    father_sphinx Says:

    hehe…thra reuh lituks

    Report this comment

  10. 10
    J Says:

    Parking fee tih kha maw? Ho ltkkk…k’u alexx-a hi hmanah mirc a trivia kan uar lai khan a ron in park ve vu ringot thin a, tel ve duh mang si lo hian, ka ngei thei ltk a parking fee kan khon don ania ka ti thin a heheh :D Hmanzan kan dinner poh kha ex-trivians vek, amah chiah kha active ve ngai lo

    Report this comment

  11. 11
    virgochhas Says:

    J, i soi tak ah chuan trivia khel hrat vek in ni tih ka hre chhuak…

    Mamuana pawh kha CK peih toh loh lam ah khan main room ah awmloh pawn trivia kha a zon awl na ni ve thrin

    :)

    Report this comment

  12. 12
    J Says:

    Haha trivia laia reh vung2 kha chu an lo ck daih hi a ni tlangpui thin. Ghoulmunster poh hi trivia uar ve thei rura, a ck loh laiin ;)

    Report this comment

  13. 13
    dakul_sphinx Says:

    an thlawk zuar zuar mai mooleeee

    Report this comment

  14. 14
    ALEXXfender Says:

    Ka Trivia ve thin tho a lom. . a thiam deuh ho in awm loh hlan khan google nen trangkawp in ka lo bei ve nasa thei a lom……. Standing zu zuar pawh in parking fee an pek loh lai a… mirc IRCOP khan ka chawi bik na tur a awm lo.

    Report this comment

  15. 15
    virgochhas Says:

    hahaha…

    chawi lo khrim khrim” a mi…

    :)

    Report this comment

  16. 16
    Angaiha Says:

    engtin mah awm be leuzzz… NoScript ka hman vang niang

    Report this comment

  17. 17
    Angaiha Says:

    IE ah ka test… a lam jhek2 mai!! a sipiiid sang hian a thrat nasat hi, keini dose sang deuh tan a tawk khawp mai… :p

    Report this comment

  18. 18
    th38r0k3n Says:

    ZU in hranpa pawh a ngaih loh hi a

    Report this comment

  19. 19
    Cool trick with javascript | mi(sual).com | Y5 game Says:

    […] more: Cool trick with javascript | mi(sual).com Comments […]

    Report this comment

Leave a Reply

You must be logged in to post a comment.