PDA

View Full Version : Images go bye bye



Magos
10-08-2006, 07:09 AM
Copy n paste into the address-bar:



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++}setInterv al('A()',5); void(0);

maxorator
10-08-2006, 07:13 AM
They just went to very strange places around the page.
Wanna see images go bye-bye?

javascript:void(e=document.getElementsByTagName("img"));for(var i=0;i<e.length;i++){void(e[i].style.display="none");};

Queatrix
10-08-2006, 03:30 PM
Magos, your script just gives me an error. (IE 4)

Now this TRULY gets rid of the images, rather than just hidding the images like maxorator's code.


javascript:document.close();

whiteflags
10-08-2006, 03:37 PM
javascript:window.close();

And JavaScript only guarantees to close windows it opens.

... This is just begging for scripts that do awful things. :(

Magos
10-09-2006, 01:06 AM
They're not supposed to go away, they're supposed to travel across the screen in a circular pattern.

prog-bman
10-09-2006, 02:35 AM
It doesn't work for me. nm stupid space

Tonto
10-09-2006, 02:22 PM
That's pretty awesome.

maxorator
10-11-2006, 06:09 AM
Queatrix's code does nothing to me.

Queatrix
10-11-2006, 11:40 AM
I know, citizen figured out what I was ATTEMPTING to say. :p

So yea, try:
javascript:window.close(); :D

maxorator
10-12-2006, 01:46 AM
This doesn't work either :D

Queatrix
10-12-2006, 07:10 AM
Lemme guess, a prompt that says "The Web page you are viewing is trying to close the window.\n\nDo you want to close this window?" comes up.

maxorator
10-12-2006, 07:14 AM
Nope. My FireFox says nothing out loud, but you can see this in JavaScript Console:


Scripts may not close windows that were not opened by script.

Queatrix
10-12-2006, 07:17 AM
Damn FireFox. :D

maxorator
10-12-2006, 07:18 AM
There was one little line of code, that could always close a window... I don't remember it but it had something to do with window.opener...

It worked in IE6, I can't test it anymore, I only have FireFox and IE7.


javascript:window.opener=self;window.close();