473,385 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

need a funny prank written with javascript,

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
Jul 23 '05 #1
5 15352
"francisco lopez" <bu**********@gmx.net> wrote in message
news:b0************************@posting.google.com ...
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>

Jul 23 '05 #2


hi McKirahan,

thanks a lot, yes this is what I had in mind.

regards saludos

Francisco
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #3
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

Jul 23 '05 #4
re:
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

this would be greate, cool idea how can I do this.

regards

francisco
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #5
In article <b0************************@posting.google.com>,
bu**********@gmx.net (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
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Al C. | last post by:
Is there a technique for this? Take a standard order-entry. You have your "header" info with the PO number, and Tax rate, etc. and then you have one to many item lines. Currently I do it all on...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
6
by: Kate | last post by:
Hi, we are now developing complex business application using Ajax framework. Could anyone point me to the editable javascript grid control which supports XML loading. Good javascript API would be...
8
by: Glenn Kelley | last post by:
Hello Group I am hoping that someone will be able to help me. We have a volunteer Fire company that is in need of a database to track the parking tickets we write for the Firelane violations. ...
3
by: mistral | last post by:
Here is javscript clock: http://javascript.internet.com/time-date/mousetrailclock.html which I want adjust a little: 1. I want replace the days of week/year/date in external circle with just...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.