Images go bye bye

This is a discussion on Images go bye bye within the A Brief History of Cprogramming.com forums, part of the Community Boards category; 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; ...

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Images go bye bye

    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);
    Last edited by Magos; 10-08-2006 at 07:13 AM.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    They just went to very strange places around the page.
    Wanna see images go bye-bye?
    Code:
    javascript:void(e=document.getElementsByTagName("img"));for(var i=0;i<e.length;i++){void(e[i].style.display="none");};
    Last edited by maxorator; 10-08-2006 at 07:20 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    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.
    Code:
    javascript:document.close();

  4. #4
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,660
    javascript:window.close();

    And JavaScript only guarantees to close windows it opens.

    ... This is just begging for scripts that do awful things.
    Last edited by whiteflags; 10-08-2006 at 03:42 PM.

  5. #5
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    They're not supposed to go away, they're supposed to travel across the screen in a circular pattern.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  6. #6
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,801
    It doesn't work for me. nm stupid space
    Last edited by prog-bman; 10-09-2006 at 02:44 AM.
    Woop?

  7. #7
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    That's pretty awesome.

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  8. #8
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Queatrix's code does nothing to me.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  9. #9
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    I know, citizen figured out what I was ATTEMPTING to say.

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

  10. #10
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    This doesn't work either
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  11. #11
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    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.

  12. #12
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Nope. My FireFox says nothing out loud, but you can see this in JavaScript Console:
    Code:
    Scripts may not close windows that were not opened by script.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  13. #13
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Damn FireFox.

  14. #14
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    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.
    Code:
    javascript:window.opener=self;window.close();
    Last edited by maxorator; 10-12-2006 at 07:23 AM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. mirroring website with images on external host
    By cyberfish in forum Tech Board
    Replies: 1
    Last Post: 09-08-2008, 06:50 PM
  2. Images
    By _Nate_ in forum C Programming
    Replies: 4
    Last Post: 05-18-2008, 10:50 PM
  3. Images
    By gvector1 in forum C++ Programming
    Replies: 7
    Last Post: 02-25-2003, 08:59 AM
  4. images, icons, and cursors, OH MY!
    By DarkViper in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2003, 01:26 PM
  5. STL, Queues And Images
    By simly01 in forum C++ Programming
    Replies: 3
    Last Post: 06-24-2002, 12:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21