Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > TS Community > The Meeting 'spot'

This is kinda cool, try it out.

Reply
Bookmark / Share this page
Thread Tools
  #1  
Old 02-07-2007
halo71's Avatar
TechSpot Addict
 
Location: Augusta, GA.
Member since: Jun 2005, 1,284 posts
This is kinda cool, try it out.

Go to a website that has a lot of pictures, well really any site/page will work. I went to Google Images, typed in guitar. After page loads. Copy and paste the below code into the address bar and press enter. I am sure some of you have already seen this......



Quote:
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 halo71; 02-07-2007 at 04:04 PM.
Reply With Quote
  #2  
Old 02-07-2007
SNGX1275's Avatar
TS Special Forces
 
Location: Rolla, Missouri, USA
Member since: Feb 2002, 8,213 posts
System specs
Yeh, I saw it on Digg a while back. Pretty neat. There is another code that you can do that works with the text on the screen.

Edit:
Here this one works for text
Quote:
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(%22font%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',75); void(0);
And this for text and images: (be careful with this one)
Quote:
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(%22*%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',75); void(0);
Replace Math.cos with Math.tan for another effect.

And I'm probably going to regret posting this one because I'm sure some script kiddie is going to take this and run (but it does teach us to beware of screen shots of webpages).
Quote:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
Now anything you want to edit on the page is editable.

Last edited by SNGX1275; 02-07-2007 at 05:41 PM.
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 02-08-2007
rockybalboa's Avatar
Newcomer, in training
 
Location: Loch Lomond
Member since: Jan 2007, 36 posts
LOL why would you want to do this? Its hurting my eyes!
Reply With Quote
  #4  
Old 02-08-2007
halo71's Avatar
TechSpot Addict
 
Location: Augusta, GA.
Member since: Jun 2005, 1,284 posts
Why climb Everest???
Reply With Quote
  #5  
Old 02-08-2007
cfitzarl's Avatar
TechSpot Guru
 
Location: Boston, MA
Member since: Jun 2006, 2,480 posts
System specs
That's really cool!
Reply With Quote
  #6  
Old 02-08-2007
rockybalboa's Avatar
Newcomer, in training
 
Location: Loch Lomond
Member since: Jan 2007, 36 posts
Ah, touché... maybe its time for me and my eyes to look away from the screen... might go watch a DVD
Reply With Quote
  #7  
Old 02-08-2007
halo71's Avatar
TechSpot Addict
 
Location: Augusta, GA.
Member since: Jun 2005, 1,284 posts
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

That code does seems like it might be a little dangerous. You can edit but not save....
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #8  
Old 02-08-2007
SNGX1275's Avatar
TS Special Forces
 
Location: Rolla, Missouri, USA
Member since: Feb 2002, 8,213 posts
System specs
Quote:
Originally Posted by me
And I'm probably going to regret posting this one because I'm sure some script kiddie is going to take this and run (but it does teach us to beware of screen shots of webpages).
I was implying that people could then screenshot it, and pass that off as true. You could fake announcement pages by Microsoft for example, lots of potential for abuse in the blogosphere.
Reply With Quote
  #9  
Old 02-08-2007
halo71's Avatar
TechSpot Addict
 
Location: Augusta, GA.
Member since: Jun 2005, 1,284 posts
Quote:
Originally Posted by SNGX1275
I was implying that people could then screenshot it, and pass that off as true. You could fake announcement pages by Microsoft for example, lots of potential for abuse in the blogosphere.

hummmmm...... :tapping fingers: .........
Reply With Quote
  #10  
Old 02-11-2007
agi_shi's Avatar
TechSpot Enthusiast
 
Location: USA
Member since: Jul 2006, 507 posts
WAIT - you can run javascript on the current page from the adress bar? Howcome I never knew that!?
Reply With Quote
  #11  
Old 02-18-2007
beef_jerky4104's Avatar
Banned
 
Location: The Basketball court...
Member since: Jan 2007, 1,093 posts
System specs
Thats really kewl.
Reply With Quote
  #12  
Old 01-18-2008
Newcomer, in training
 
Member since: Jan 2008, 5 posts
Nice one!!
Reply With Quote
  #13  
Old 03-11-2008
Newcomer, in training
 
Member since: Mar 2008, 8 posts
thats well good!
Reply With Quote
Reply
Thread Tools

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Hey People,I'm new here...kinda RoknOvrclk Introduce yourself 1 04-27-2006 03:44 PM
MYOB help- kinda basic TrindaJ Misc. Software & Utilities 1 09-18-2005 11:33 PM
Is 64 bit kinda going nowhere ? JimShady23 CPUs, Chipsets and Mobos 10 08-10-2005 01:19 PM
Multiplayer kinda lags harrisdurrani Gaming and Consoles 7 08-06-2005 06:53 AM
COOL COOL COOL...literally.. Shaggy Overclocking, Cooling and Modding 2 12-07-2004 11:17 AM


All times are GMT -4. The time now is 12:51 PM.