Vibrating window

  • Backyard Chickens
  • Newbie
  • Newbie
  • Backyard Chickens
  • Posts: 6

Post 3+ Months Ago

lok im totaly new to this forum. i was just wonderin howto make a window vibrate like on the link below

(NOTE: if you scroll down at all on the opened link page the vibrating wont work.)

http://www.albinoblacksheep.com/flash/dubdub.php

is it possible to make it do that with html?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Backyard Chickens
  • Newbie
  • Newbie
  • Backyard Chickens
  • Posts: 6

Post 3+ Months Ago

oh ya, also

REAL IMPORTANT NOTE: its NOT killing your comp.
just click ctrl+alt+del ---> end task
a few times.

http://www.albinoblacksheep.com/flash/open.html
  • Socno
  • Graduate
  • Graduate
  • Socno
  • Posts: 107
  • Loc: New York

Post 3+ Months Ago

[/\/4/\/\3??] wrote:
lok im totaly new to this forum. i was just wonderin howto make a window vibrate like on the link below

(NOTE: if you scroll down at all on the opened link page the vibrating wont work.)

http://www.albinoblacksheep.com/flash/dubdub.php

is it possible to make it do that with html?


I do not know if you can do that with HTML.

That thing is made out of flash and javascript.
  • Backyard Chickens
  • Newbie
  • Newbie
  • Backyard Chickens
  • Posts: 6

Post 3+ Months Ago

i just found out you can!!
i did it on my site

clkick in the AF ligo on my site

http://www.freewebs.com/anarchy_fever/index3.htm :lol:
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

[/\/4/\/\3??]

aarrrggg... oi, what a name...

one of these kids is not like the other ones... (can you believe Sesame Street is in it's 35th season?! God that makes me feel old).

Oh, and no, you can't use plan HTML. You have to use JavaScript, or some other scripting language that can affect the window object... HTML can't.

.c
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Note, this:

Code: [ Select ]

<SCRIPT language=JavaScript1.2>
<!-- Begin
function shake(n) {
if (self.moveBy) {
for (i = 15; i > 0; i--) {
for (j = n; j > 0; j--) {
self.moveBy(0,i);
self.moveBy(i,0);
self.moveBy(0,-i);
self.moveBy(-i,0);
    }
   }
 }
}
// End -->
</SCRIPT>
  1. <SCRIPT language=JavaScript1.2>
  2. <!-- Begin
  3. function shake(n) {
  4. if (self.moveBy) {
  5. for (i = 15; i > 0; i--) {
  6. for (j = n; j > 0; j--) {
  7. self.moveBy(0,i);
  8. self.moveBy(i,0);
  9. self.moveBy(0,-i);
  10. self.moveBy(-i,0);
  11.     }
  12.    }
  13.  }
  14. }
  15. // End -->
  16. </SCRIPT>


Is not HTML... this is the direct script used on your site to make the window shake... it's JavaScript, not HTML.

.c
  • Backyard Chickens
  • Newbie
  • Newbie
  • Backyard Chickens
  • Posts: 6

Post 3+ Months Ago

im findin it on a site...

i dont understand this. im trying to make a window on my site that multiplyys like the one on this site:

http://www.albinoblacksheep.com/flash/you.html

but i cant get it to work. im getting the info off of here:

http://www.absforums.com/index.php?showtopic=20810
  • Backyard Chickens
  • Newbie
  • Newbie
  • Backyard Chickens
  • Posts: 6

Post 3+ Months Ago

when i type

Code: [ Select ]
<head><script language="Javascript" src="../script/you.js"></script></head>marginheight="0">
var xOff = 5;
var yOff = 5;
var xPos = 400;
var yPos = -100;
var flagRun = 1;

function openWindow(url){
   aWindow = window.open(url,"_blank", & #39;menubar=no,status=no,toolbar=noresizable=no,width=180,height=175,titleb

ar=no,alwaysRaised=yes');
}

function procreate(){
openWindow(http://www.google.com');
openWindow(http://www.altavista.com');
openWindow(http://www.yahoo.co.uk');
openWindow(http://www.blankwebpage.com');
openWindow(http://www.wtfomg.com');
openWindow(http://www.ohnoes.org');
}

function newXlt(){
   xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10;
   window.focus()}

function newXrt(){
   xOff = Math.ceil(7 * Math.random()) * 5 - 10;
   }

function newYup(){
   yOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10;
   }

function newYdn(){
   yOff = Math.ceil( 7 * Math.random()) * 5 - 10;
   }
function fOff(){
   flagrun = 0;
   }

function playBall(){
   xPos += xOff;
   yPos += yOff;
   if (xPos > screen.width-175){
   newXlt();
   }
   if (xPos < 0){
   newXrt();
   }
   if (yPos > screen.height-100){
   newYup();
   }
   if (yPos < 0){
   newYdn();
   }
   if (flagRun == 1){
   window.moveTo(xPos,yPos);
   setTimeout('playBall()',1);
   }
   }
  1. <head><script language="Javascript" src="../script/you.js"></script></head>marginheight="0">
  2. var xOff = 5;
  3. var yOff = 5;
  4. var xPos = 400;
  5. var yPos = -100;
  6. var flagRun = 1;
  7. function openWindow(url){
  8.    aWindow = window.open(url,"_blank", & #39;menubar=no,status=no,toolbar=noresizable=no,width=180,height=175,titleb
  9. ar=no,alwaysRaised=yes');
  10. }
  11. function procreate(){
  12. openWindow(http://www.google.com');
  13. openWindow(http://www.altavista.com');
  14. openWindow(http://www.yahoo.co.uk');
  15. openWindow(http://www.blankwebpage.com');
  16. openWindow(http://www.wtfomg.com');
  17. openWindow(http://www.ohnoes.org');
  18. }
  19. function newXlt(){
  20.    xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10;
  21.    window.focus()}
  22. function newXrt(){
  23.    xOff = Math.ceil(7 * Math.random()) * 5 - 10;
  24.    }
  25. function newYup(){
  26.    yOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10;
  27.    }
  28. function newYdn(){
  29.    yOff = Math.ceil( 7 * Math.random()) * 5 - 10;
  30.    }
  31. function fOff(){
  32.    flagrun = 0;
  33.    }
  34. function playBall(){
  35.    xPos += xOff;
  36.    yPos += yOff;
  37.    if (xPos > screen.width-175){
  38.    newXlt();
  39.    }
  40.    if (xPos < 0){
  41.    newXrt();
  42.    }
  43.    if (yPos > screen.height-100){
  44.    newYup();
  45.    }
  46.    if (yPos < 0){
  47.    newYdn();
  48.    }
  49.    if (flagRun == 1){
  50.    window.moveTo(xPos,yPos);
  51.    setTimeout('playBall()',1);
  52.    }
  53.    }



into the html editor (am i putting it in the right order?


it ends up like this:


Code: [ Select ]
marginheight="0"> var xOff = 5; var yOff = 5; var xPos = 400; var yPos = -100; var flagRun = 1; function openWindow(url){ aWindow = window.open(url,"_blank", & #39;menubar=no,status=no,toolbar=noresizable=no,width=180,height=175,titleb ar=no,alwaysRaised=yes'); } function procreate(){ openWindow(http://www.google.com'); openWindow(http://www.altavista.com'); openWindow(http://www.yahoo.co.uk'); openWindow(http://www.blankwebpage.com'); openWindow(http://www.wtfomg.com'); openWindow(http://www.ohnoes.org'); } function newXlt(){ xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10; window.focus()} function newXrt(){ xOff = Math.ceil(7 * Math.random()) * 5 - 10; } function newYup(){ yOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10; } function newYdn(){ yOff = Math.ceil( 7 * Math.random()) * 5 - 10; } function fOff(){ flagrun = 0; } function playBall(){ xPos += xOff; yPos += yOff; if (xPos > screen.width-175){ newXlt(); } if (xPos < 0){ newXrt(); } if (yPos > screen.height-100){ newYup(); } if (yPos < 0){ newYdn(); } if (flagRun == 1){ window.moveTo(xPos,yPos); setTimeout('playBall()',1); } }


what am i doing wrong???
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

please use code tags when posting, thanks. :)
  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Posts: 774
  • Loc: Brisbane, Australia

Post 3+ Months Ago

hmm, looks like all the line breaks got mysteriously removed.

Here is a trick to get them back (on windows)

open up notepad, paste them in and save.

Now go to a command prompt and find the file.

Type "edit filename.txt" and then save, and then exit.

Now open the file in notepad again and copy it into the HTML editor.
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

Backyard Chickens wrote:
oh ya, also

REAL IMPORTANT NOTE: its NOT killing your comp.
just click ctrl+alt+del ---> end task
a few times.

http://www.albinoblacksheep.com/flash/open.html


That was absolutely the most awful thing I've ever lived through... :?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

That is so old. I didn't think anyone was fooling around with that ancient trick anymore. Boring........
  • Rat
  • Guru
  • Guru
  • User avatar
  • Posts: 1190
  • Loc: desk

Post 3+ Months Ago

Not only is it old, and boring, but its annoying.
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Don't use Notepad, it will mess up files sometimes.

I use Textpad (http://www.textpad.com/). If you actually spend the few bucks to register it (you should), you won't see the nag pop up, but it comes fully function and never expires regardless. As far as plain text editors go, I think its one of the best.

The way to do the window thing is pretty simple really, you just have a bunch of window.open calls in a function that is called with an onClose handler.

If the silly sound bite and windows opening isn't annoying enough, you can make it even MORE annoying, by adding some random moveBy commands to each little window you option, so they dance around. Just make sure you limit the values, or they'll just dance off stage. If you do to many windows at once, you'll hang some systems, which isn't very nice.

Another, way is to have each window successive open a window. 1 - 10, say. This would reduce initial processing time, and speed the opening of windows.

Anyway. When you make this work, please don't send me the link. Thanks! :)

.c
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

I use notepad all the time...never had a problem with it.
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Really? interesting. I've experienced the exact problem mentioned above a number of times with notepad. It's like it forgets what to do with newline characters. If you copy the text into another edit, even WordPad, it will format correctly, and sometimes, if you copy that back to Notepad, it will suddely be formatted fine again...

It's quirky, so I stopped using it. Besides, one you get used to syntax highlighting, it's tough to go back (sort of like broadband internet connects, microwaves and caller ID... heh)
.c
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

I have had problems with line breaks when swapping text files between linux and windows if I edit in notepad. My analysis of the problem:

ASCII 10 and ASCII 13 are both effectively new line characters, Notepad only recognises one of them (I <i>think</i> 13). The other is displayed as a square.

Don't know how accurate that is but it's the best I could come up with.
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Makes sense, although when I was experiencing the problem (this was years ago), I wasn't swaping files between platforms. It could be, however, that Netscape 4's (this was years ago remember) view source rendered the source with whatever newline character notepad didn't understand.. I was only learning web stuff when I encountered this problem, and I was doing a bunch of source swiping to learn how people were doing stuff... And, back then, I used Netscape as my browser normally.. so...
.c
  • Sulfin
  • Graduate
  • Graduate
  • User avatar
  • Posts: 129
  • Loc: canada

Post 3+ Months Ago

Don't you think it's evil to make a page that re-opens itself? I've heard of a virus in a file called you.js (javascript) and it was in a page like that. I still don't see the point of making one. (I didn't click on a single link on top). Some people just can't figure out how to get rid of it and end up pulling the plug on their computer.
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Technically, javascript isn't a virus (unless it makes use of an security expoit... there are some, but they are generally IE specific and up to date virus scanners will catch them).

Calling something onUnload (or onExit? whatever the handler is) that calls the same page is really annoying (an I mean... REALLY annoying), but it's not technically a virus.

.c
  • Sulfin
  • Graduate
  • Graduate
  • User avatar
  • Posts: 129
  • Loc: canada

Post 3+ Months Ago

The anti-virus said that the file "you.js" was infected and said something about having to delete it. I don't think the virus was javascript, but it was the file itself that was infected.
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Well, no, it was probably the javascript code. Many virus scanners also include definitions to look for JavaScript client exploits. Depending on how you look at it, you could call these viruses, but I don't. They more like browser exploits than a virus, however, some of the javascript security issues CAN be used to cause a browser to download then execute a virus installer (100% silently, in some cases). So, since MS has been a little slow on the draw to fix some of these holes (they, in fact, don't consider all of these holes to be bugs...) anti-virus companies have taken it upon themselves.

Pretty cool of them actually, if you ask me.

.c
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Yeah - I once wrote a little javascript that pops open new IE windows at a rate that about the only option you have is to shut down the computer. Symantec quarantines it as a virus, but it's not. It's just a simple javascript.
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

ATNO/TW wrote:
Yeah - I once wrote a little javascript that pops open new IE windows at a rate that about the only option you have is to shut down the computer. Symantec quarantines it as a virus, but it's not. It's just a simple javascript.


Heh, nice =]
I ran across a site that listed a whole host of Javascript things I'd never seen before, so I started playing around with them, and McAfee kepts complaining at me about having a virus... every time I saved the file. I finally realized the site was dedicated to what I was refering to above... not really a legit resource site. Sort of annoyed me, because a few of the functions were actually really interesting, like one that gave JavaScript access to clipboard contents. You could write a program that returns it's output directly to the clipboard, for example.

.c
  • Rat
  • Guru
  • Guru
  • User avatar
  • Posts: 1190
  • Loc: desk

Post 3+ Months Ago

ANTO-was it like this?

http://www.stolenkingdoms.net/test.html

I wrote that real quick. Press CTRL+ALT+DEL or CTRL+W to stop
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

No, what you need to do is have EACH window spawn new windows in a loop (a 0=1000 for loop in each window would be good enough). It will pretty much hang any system within a few seconds, or IE itself will neg it, since after a bit, it will take too long to process, and IE will pop up a message asking if you want to stop running scripts. Anyway, that's really not a very nice thing to do...

On the other hand, I used to have this little thing on my site that was pretty interesting. I had different sized (all small) windows that would move around the screen really fast, then inside of each one there was an animation that ran that flashed different pictures... and every once in a while one of the windows would expand, show a larger photo, then go back to what it was doing (all in the space of like a quarter second). The affect was actually pretty cool, if you could handle the sensory overload =]

.c
  • Sulfin
  • Graduate
  • Graduate
  • User avatar
  • Posts: 129
  • Loc: canada

Post 3+ Months Ago

How about a function inside a function or an infinite loop:
Code: [ Select ]
function infinit(){
window.open(window.location);
window.open(window.location);
infinit();
}
  1. function infinit(){
  2. window.open(window.location);
  3. window.open(window.location);
  4. infinit();
  5. }

Would that cause an error in the program or stop it like in Macromedia flash? In flash it sends a message to the output window.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I think this has gone on long enough. No need to be giving script kiddies stupid human tricks on how to "hack the net"

Post Information

  • Total Posts in this topic: 28 posts
  • Users browsing this forum: No registered users and 63 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.