Try This One Out

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • red devil
    DK Veteran
    • Oct 2008
    • 690

    #1

    Try This One Out

    Try This One It's Really Cool...
    Go to Google--->Click on Search Images Pages--->Type 'Flowers' Or Any Other Name--->U Will Get a Page Which is Full of Images--->Then Delete the URL from the Address Bar & Paste the Below script


    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)
    Last edited by red devil; 20 June, 2009, 22:15.
  • Ballistic
    Top Poster +
    • Oct 2008
    • 243

    #2
    Wow that is seriously cool but makes your eyes go all screwy

    B
    "Racing is life... everything before and after is just waiting." Steve McQueen as Michael Delaney in 'Le Mans'sigpic

    Comment

    • Mr Pumpy
      DK Veteran
      • Jan 2009
      • 1467

      #3
      Its magic.
      I refuse to answer that question on the grounds that I do not know the answer.

      Comment

      • berley
        V.I.P. Member
        • Mar 2008
        • 567

        #4
        hey thats cool, but it is sore on your eyes, especially if you have a hangover

        Comment

        • bugaloo41
          V.I.P. Member
          • Jul 2008
          • 1598

          #5
          Who makes these things up - very clever.

          Comment

          • peterslat
            Newbie
            • Jun 2009
            • 1

            #6
            that,s just cool

            Comment

            • chroma
              V.I.P. Member
              • Feb 2009
              • 1976

              #7
              i like this one:
              Code:
              javascript:function Shw(n) {if (self.moveBy) {for (i = 35; 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); } } }} Shw(6)
              or a popup clock:
              Code:
              javascript: var w = window.open(?, ?_blank?, ?width=600,height=600′); var pi = 3.1415927; var d = w.document; for(var i = 1; i<= 12; i ++) { var div = d.createElement(?div?); var radian = i * pi *2 / 12 - pi / 2; var x = Math.cos(radian) * 40 + 50; var y = Math.sin(radian) * 40 + 50; div.style.width = ?100px?; div.style.position = ?absolute?; div.style.top = y + ?%?; div.style.left = x + ?%?; div.style.marginLeft = ?-35px?; div.style.marginTop = ?-10px?; div.style.textAlign = ?center?; t = d.createTextNode(i); div.style.fontSize = ?40pt?; div.appendChild(t); d.body.appendChild(div); } var seconds = createHands(d, ?green?); var minutes = createHands(d, ?blue?); var hours = createHands(d, ?red?); tick(); function tick() { setTimeout(?tick()?, 1000); var time = new Date(); var second = time.getSeconds(); var minute = time.getMinutes()+ second / 60; var hour = time.getHours() + minute / 60; positionHand(seconds, second, 60, 3.5); positionHand(minutes, minute,60, 3); positionHand(hours, hour, 12, 2.5); } function positionHand(dots, value, max, size) { for(var i = 0; i < 10; i ++) {var radian = value * pi * 2 / max - pi / 2; var x = Math.cos(radian) * size * i + 50; var y = Math.sin(radian) * size * i + 50; var dot = dots[i]; dot.style.top = y + ?%?; dot.style.left = x + ?%?; } } function createHands(d, color) { var dots = new Array(); for(var i =0; i < 10; i ++) { dots[i] = document.createElement(?span?); var dot = dots[i]; dot.style.color = color; dot.style.position = ?absolute?; dot.style.fontSize = ?30px?; var t = document.createTextNode(?@'); dot.appendChild(t); d.body.appendChild(dot); } return dots; }
              This one rotates images in a deformed oval, but if you change the DI=document.getElementsByTagName ("img") to say ("a") or ("p") you can make it work on text or hyperlinks instead of images
              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.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);
              He who laughs last thinks slowest.

              Comment

              • cM iPro v3
                Top Poster +
                • Dec 2008
                • 213

                #8
                They are SICK!!
                anyone got anymore??
                The statement below is False
                The statement above is True
                Which one is correct
                I am the fish geek

                Comment

                Working...