Vibrating window

  • Backyard Chickens
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jun 09, 2004
  • Posts: 6
  • Status: Offline

Post June 9th, 2004, 12:03 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 9th, 2004, 12:03 pm

  • Backyard Chickens
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jun 09, 2004
  • Posts: 6
  • Status: Offline

Post June 9th, 2004, 12:08 pm

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
  • No Avatar
  • Joined: May 26, 2004
  • Posts: 107
  • Loc: New York
  • Status: Offline

Post June 9th, 2004, 12:32 pm

[/\/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
  • No Avatar
  • Joined: Jun 09, 2004
  • Posts: 6
  • Status: Offline

Post June 9th, 2004, 1:22 pm

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
  • Joined: Apr 28, 2004
  • Posts: 1099
  • Status: Offline

Post June 9th, 2004, 1:26 pm

[/\/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
  • Joined: Apr 28, 2004
  • Posts: 1099
  • Status: Offline

Post June 9th, 2004, 1:30 pm

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
  • No Avatar
  • Joined: Jun 09, 2004
  • Posts: 6
  • Status: Offline

Post June 9th, 2004, 2:18 pm

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
  • No Avatar
  • Joined: Jun 09, 2004
  • Posts: 6
  • Status: Offline

Post June 9th, 2004, 2:42 pm

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
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post June 9th, 2004, 3:37 pm

please use code tags when posting, thanks. :)
UNFLUX.FOTO
  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Joined: Jul 28, 2003
  • Posts: 774
  • Loc: Brisbane, Australia
  • Status: Offline

Post June 10th, 2004, 3:24 am

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
  • Joined: Jan 25, 2004
  • Posts: 776
  • Loc: Nippon
  • Status: Offline

Post June 10th, 2004, 3:40 am

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
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post June 10th, 2004, 5:11 am

That is so old. I didn't think anyone was fooling around with that ancient trick anymore. Boring........
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Rat
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 25, 2004
  • Posts: 1190
  • Loc: desk
  • Status: Offline

Post June 10th, 2004, 6:27 am

Not only is it old, and boring, but its annoying.
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Joined: Apr 28, 2004
  • Posts: 1099
  • Status: Offline

Post June 10th, 2004, 6:53 am

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
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post June 10th, 2004, 7:32 am

I use notepad all the time...never had a problem with it.
UNFLUX.FOTO
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 10th, 2004, 7:32 am

Post Information

  • Total Posts in this topic: 28 posts
  • Users browsing this forum: No registered users and 114 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.