Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 36

Thread: Crazy Java Stuff

  1. #16
    Banned Sylvie's Avatar
    Join Date
    Aug 2004
    Location
    Hell
    Posts
    4,136
    Blog Entries
    4

    Default

    IMVU is a 3D chat, and its pretty crappy in my opinion. Getting money isn't free.

    Anyway, that first thing is awesome.

  2. #17
    Gobbledygook! Recognized Member Christmas's Avatar
    Join Date
    Apr 2005
    Location
    Pious Moose's HQ
    Posts
    13,527
    Blog Entries
    6
    Contributions
    • Hosted the Ciddies

    Default

    You make me so giddy.

  3. #18
    casual mind slip
    Join Date
    Jun 2005
    Location
    Lawrence, KS
    Posts
    1,811

    Default

    Weird.

  4. #19
    Nerfed in Continuum Shift Recognized Member Zeromus_X's Avatar
    Join Date
    Sep 2005
    Location
    Phoenix, AZ
    Posts
    7,593
    Contributions
    • Former Cid's Knight

    Default

    Full of Hate. o_0;

  5. #20
    星の声 starseeker's Avatar
    Join Date
    Jan 2006
    Location
    In Deep Space
    Posts
    1,971

    Default

    My head is spinning.
    "Reality is that which,
    when you stop believing in it,
    doesn't go away".
    Philip K. Dick

  6. #21
    Strapping young lad KuRt's Avatar
    Join Date
    Jan 2005
    Location
    Finland :(
    Posts
    1,534

    Default

    Wicked

  7. #22
    Tiny Chloe ♥ Chloe.'s Avatar
    Join Date
    Dec 2005
    Location
    Wiltshire, UK
    Posts
    2,391

    Default

    That is sooo cool

  8. #23
    Ghost 'n' Stuff NorthernChaosGod's Avatar
    Join Date
    Apr 2003
    Posts
    16,584
    Blog Entries
    2

    Default

    Quote Originally Posted by Christmas View Post
    You make me so giddy.
    That's a bad thing?

    Should I do something to fill you with hate now?

  9. #24
    eff you mooglebunni608's Avatar
    Join Date
    Dec 2005
    Location
    I'm an anteater
    Posts
    2,236

    Default

    I can't copy it. It won't let me?
    Wait, it works now. That's friggen wierd!

    asdfghjkl;'

  10. #25

    Default

    Replying to this thread was like shooting practise.

  11. #26
    I have one of these now Nominus Experse's Avatar
    Join Date
    Jun 2006
    Location
    Here
    Posts
    4,884

    Default

    How did you happen upon this code, NCG?

    It's most definately cool.
    ...

  12. #27
    Banned Reine's Avatar
    Join Date
    Mar 2003
    Location
    The ship of the PRMs! Arrrrr!
    Posts
    2,260

    Default

    Nothing happened. Mind explaining what it does, or how I am exactly supposed to do this?

  13. #28
    Markusdot Markus. D's Avatar
    Join Date
    Jun 2005
    Posts
    8,636

    FFXIV Character

    Umami Spitebreath (Kujata)

    Default

    Quote Originally Posted by Reine View Post
    Nothing happened. Mind explaining what it does, or how I am exactly supposed to do this?

  14. #29
    Ghost 'n' Stuff NorthernChaosGod's Avatar
    Join Date
    Apr 2003
    Posts
    16,584
    Blog Entries
    2

    Default

    Quote Originally Posted by Reine View Post
    Nothing happened. Mind explaining what it does, or how I am exactly supposed to do this?
    Quote Originally Posted by Tsukasa View Post
    Quote Originally Posted by Reine View Post
    Nothing happened. Mind explaining what it does, or how I am exactly supposed to do this?
    To answer both of your questions.


    Quote Originally Posted by NorthernChaosGod View Post
    copy and paste this into your address bar in the same window you're viewing this thread and see what happens :]

    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);
    I promise its not malicious.
    It has to be on a page with content tagged by IMG code. It makes all content tagged by IMG code float around in an oval shaped pattern.

  15. #30
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    Java is not the same thing as Javascript. That is Javascript. It's pretty neat though. It sets the style of each img tag to :bou::bou::bou::bou::bou::bou::bou::bou::bou::bou:absolute then uses two trig functions to change the X and Y coordinates of all the img tags. The two functions are

    300 * SIN(0.1x + 0.25y + 1.6) + 300
    200 * COS(0.05x + 0.24y + 0.24) + 200

    x increases linearly and y varies from 1 to the number of images on the page you're viewing. It changes the images' position every 5 milliseconds.

    If you mess with the parameters you can change the shape or behavior of the cloud. Try these:

    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.tan(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);
    Code:
    javascript:R=0; x1=.1; y1=.05; x2=.55; 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);
    Code:
    javascript:R=0; x1=0; 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);
    Code:
    javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=300; x5=300; y5=300; 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+i)*x4+x5)+"px"; DIS.top=(Math.cos(R+i)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •