Jump to content


Photo

play with images in any website


  • Please log in to reply
12 replies to this topic

#1 Prashad

Prashad

    Full Member

  • Literature Gurus
  • 197 posts

Posted 26 August 2007 - 01:11 PM

let's play with any website:

** open any website with a lot of images cybernepal.com for example.
** let the website load fully.
** then put the code below in addressbar of your browser.


java script: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);


make sure you don't have toolbars that search anything on the addressbar.

and see what the code does to a website.

Edited by Prashad, 26 August 2007 - 01:15 PM.

Moon belongs to everyone,
the best things in life,
they are free.

#2 Prashad

Prashad

    Full Member

  • Literature Gurus
  • 197 posts

Posted 26 August 2007 - 01:20 PM

first word in the code is javascript , java and script together.delete the space between two words java and script.
i types it together but it appears as two words i edited the above post two times it still is the same i don.t understand why.
any way use javascript as single word

Edited by Prashad, 26 August 2007 - 01:21 PM.

Moon belongs to everyone,
the best things in life,
they are free.

#3 E major

E major

    WNSO International Co-ordination Committee

  • ICC
  • PipPipPip
  • 571 posts

Posted 27 August 2007 - 01:05 AM

Cool Phenomenon ... Cool coding
Did you figure it out yourself?
http://www.NepaloPedia.com

#4 Prashad

Prashad

    Full Member

  • Literature Gurus
  • 197 posts

Posted 27 August 2007 - 01:41 AM

QUOTE(E major @ Aug 27 2007, 01:05 AM) <{POST_SNAPBACK}>
Cool Phenomenon ... Cool coding
Did you figure it out yourself?

it's cool.I didn't code that,actually i found somewhere on the net.
Moon belongs to everyone,
the best things in life,
they are free.

#5 Rayan

Rayan

    WNSO International Co-ordination Committee

  • ICC
  • PipPip
  • 149 posts

Posted 15 September 2007 - 12:40 PM

Awesome bro!!!! its sort of stress buster for me now.

#6 shyamprad

shyamprad

    To a new pinnacle....

  • Members
  • PipPipPip
  • 244 posts

Posted 16 September 2007 - 09:05 AM

Does it really work?

If so, it is very good.

I will definitely try once, as i haven't made any trial yet
A WALK TO PEACE NEPAL...........

#7 BS

BS

    General Secretary - WNSO International Co-ordination Committee

  • ICC
  • PipPipPipPip
  • 1,277 posts

Posted 16 September 2007 - 12:48 PM

it shows page cannot be found (invalid syntax error)

#8 Prashad

Prashad

    Full Member

  • Literature Gurus
  • 197 posts

Posted 16 September 2007 - 06:08 PM

well, copy the code and paste it to the browser's address bar after the webpage is fully loaded.

java script: 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);

<the first word javascript is one word so delete the space between java and script.>

Edited by Prashad, 16 September 2007 - 06:13 PM.

Moon belongs to everyone,
the best things in life,
they are free.

#9 BS

BS

    General Secretary - WNSO International Co-ordination Committee

  • ICC
  • PipPipPipPip
  • 1,277 posts

Posted 16 September 2007 - 10:15 PM

Wow,
that's wonderful. Thanks.

#10 Yadav

Yadav

    Unifying Nepalese for Better Education

  • National Committee
  • PipPipPip
  • 499 posts

Posted 18 September 2007 - 11:15 AM

Interesting one .thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users