473,780 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 15381
"francisco lopez" <bu**********@g mx.net> wrote in message
news:b0******** *************** *@posting.googl e.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.ht m</title>
<script type="text/javascript">
var winx = 100;
var winy = 50;
var winz = ",width=" + winx + ",height=" + winy;
var html = "<html><head><t itle>mover</title>";
html += "<" + "script type='text/javascript'>";
html += "var winx = " + winx + ";";
html += "var winy = " + winy + ";";
html += "function mover() {";
html += " var x = window.event.sc reenX + 50;";
html += " var y = window.event.sc reenY + 50;";
html += " if (screen.width - winx - x < 0) {";
html += " x = window.event.sc reenX - 150;";
html += " }";
html += " if (screen.Height - winy - y < 0) {";
html += " y = window.event.sc reenY - 150;";
html += " }";
html += " moveTo(x,y);";
html += "}";
html += "<" + "/script></head><body>";
html += "<span onmouseover='mo ver()'>";
html += "<center><b>Alt +F4<br>to close.</b></center>";
html += "</span>";
html += "</body></html>";
function mover() {
var wind = window.open("", "hmtl","statusb ar=0" + winz);
wind.document.w rite(html);
}
</script>
</head>
<body>
<a href="javascrip t:mover()">move r()</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************ ************@po sting.google.co m>,
bu**********@gm x.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
1732
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 one screen, but this is a PITA when an order has a lot of items as it results in a lot of server-trips as well as scroling. Everything is written in PHP. What I'd like to do is have the "add new line item" and the "edit line item"
2
3897
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 http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work at www.apchosting.net but can drop at home.pacific.net.sg. I suspect it is a server problem but was told it is not possible, therefore assuming it is a client script problem? the script works last time...
6
1562
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 a plus. And rather important thing - sometimes we need to represent hierarchically structured data, so tree view is a must. In most grid controls I looked through this last thing was missed. Thanks.
8
1440
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. We live in a very large community - are non-billing and not funded by the township. We want to be able to track who we write violations to - and if more than one violation is written in a season (say Winter) etc
3
2531
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 custom text: 'www.company.com' 2. I want to reduce a little rotation speed of this text. 3. I want to fix a clock in some place, no need in mouse trail effect.
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.