Javascripts!

March 22, 2008 at 09:42 | Posted in Everything | 3 Comments
Tags: , ,

PP Member FudgeeCake, with his hypnotic avatar, has unearthed 2 popular javascript: url techniques. With today’s lack of important things happening at PP, that’s what I’ll talk about.

The second one I already knew about, it makes the content of the web page you’re viewing editable.

Simply type javascript: document.body.contentEditable = “true”; document.designMode = ‘on’; voId in your address bar. it makes the links on the page go blue, annoyingly, but you can edit the text to say what you want. The contentEditable property is used to make the WordPress post editor I use to write my posts. 😀

The first Javascript: is the best, I haven’t seen it before, but it causes all the images on a page to float around in a pattern. FudgeeCake recommended using it on Google images. You don’t want to know what I had floating around that screen. 😉

Simply copy and paste 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) into your browser window to try it out!

To see FudgeeCake’s topic, go to …

http://www.pokeplushies.com/forum/viewtopic.php?id=8268

Enjoy!

Advertisements

3 Comments »

RSS feed for comments on this post. TrackBack URI

  1. OK, I think today I’ve learnt the lesson again that WordPress and Javascript don’t mix.

    Somehow, the codes I pasted don’t work in Firefox, not sure about IE.

    To solve this simply copy and paste the URLs from FudgeeCake’s topic.

  2. Awseome!
    [blockquote]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)[/blockquote]

  3. 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)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: