Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > need a funny prank written with javascript,

Reply
Thread Tools

need a funny prank written with javascript,

 
 
francisco lopez
Guest
Posts: n/a
 
      01-04-2005
hi,

well I think I will forget the earthquake-effect, because it doesn´t
run in a frame with IE,
so I need now another funny prank, but not the format C: fake, I was
thinking for example that a little windows will open and when you try
to close it, it allways jumps away from the cursor, this would be
funny, well any idea is wellcome, hope that this time someone can
help.

regards

francisco
 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      01-04-2005
"francisco lopez" <> wrote in message
news: ...
> hi,
>
> well I think I will forget the earthquake-effect, because it doesn´t
> run in a frame with IE,
> so I need now another funny prank, but not the format C: fake, I was
> thinking for example that a little windows will open and when you try
> to close it, it allways jumps away from the cursor, this would be
> funny, well any idea is wellcome, hope that this time someone can
> help.
>
> regards
>
> francisco


This move's a small popup window around.

Not very good but this might get you thinking.

Enhancement #1: onMouseOver the window not just the words.

Enhancement #2: randomize the movement.


<html>
<head>
<title>mover.htm</title>
<script type="text/javascript">
var winx = 100;
var winy = 50;
var winz = ",width=" + winx + ",height=" + winy;
var html = "<html><head><title>mover</title>";
html += "<" + "script type='text/javascript'>";
html += "var winx = " + winx + ";";
html += "var winy = " + winy + ";";
html += "function mover() {";
html += " var x = window.event.screenX + 50;";
html += " var y = window.event.screenY + 50;";
html += " if (screen.width - winx - x < 0) {";
html += " x = window.event.screenX - 150;";
html += " }";
html += " if (screen.Height - winy - y < 0) {";
html += " y = window.event.screenY - 150;";
html += " }";
html += " moveTo(x,y);";
html += "}";
html += "<" + "/script></head><body>";
html += "<span onmouseover='mover()'>";
html += "<center><b>Alt+F4<br>to close.</b></center>";
html += "</span>";
html += "</body></html>";
function mover() {
var wind = window.open("","hmtl","statusbar=0" + winz);
wind.document.write(html);
}
</script>
</head>
<body>
<a href="javascript:mover()">mover()</a>
</body>
</html>



 
Reply With Quote
 
 
 
 
mark.oliveira@gmail.com
Guest
Posts: n/a
 
      01-04-2005
you can also make people's cd-rom drives open, but i don't know if that
is the kind of thing you're looking for

 
Reply With Quote
 
Robert
Guest
Posts: n/a
 
      01-05-2005
In article <>,
(francisco lopez) wrote:

> so I need now another funny prank,


There are lots of virtual cats following the mouse icon around on the
screen. Try google. javascript cat

Here is one that does a clock. It is kind of slow to response. You have
to leave your mouse in one place for awhile. Might like the fact that
when you move the mouse a bunch of characters wonder around the screen.

http://rainbow.arch.scriptmania.com/...se_clock3.html

Robert
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dlwh why are you prank calling people abigaillicad C++ 0 03-07-2011 04:12 AM
Ghost or prank? richard Computer Support 7 01-11-2008 05:30 PM
Is it a Prank ? Newbie Computer Support 2 05-16-2006 10:05 PM
Prank email site noodle@spam.la Computer Support 2 09-16-2005 02:30 PM
Prank Call Service Jokeline Python 0 08-09-2003 01:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57