need help

Discuss all aspects of programming here.

Moderator: The Mod Squad

need help

Postby DAVE1 » Wed Nov 30, 2005 4:52 pm

ok im making a quick website on a report ive done and i want to put a popup on it that says all your files on your computer have been deleted to scare my teacher me and him joke around alot and i want him to think it really happened without it really happening

does anyone know how to do it ?

thanks
Join team 33258 today!!
DAVE1
Mobo-fu Master
Mobo-fu Master
 
Posts: 7699
Joined: Sat May 14, 2005 11:49 am

Postby Toby B. » Wed Nov 30, 2005 8:24 pm

So basically a simple warning box that is timed or activated with a move of the mouse or something like that.....

AFIAK, its pretty easy to do. You would use javascript.. With more details I could provide a script to do such a task, but need to know exact hiw you would want it setup (i.e. based on a timer or movement)...
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby olly » Thu Dec 01, 2005 11:41 am

olly
Green Belt
Green Belt
 
Posts: 222
Joined: Thu Jun 27, 2002 8:11 pm

Postby DAVE1 » Thu Dec 01, 2005 2:19 pm

pretty new to this so don't laugh

but if i have it already written in html could i just add the java script at the top or something with it ?

i would probally just want it to come on once he got to the site
Join team 33258 today!!
DAVE1
Mobo-fu Master
Mobo-fu Master
 
Posts: 7699
Joined: Sat May 14, 2005 11:49 am

Postby Toby B. » Thu Dec 01, 2005 7:19 pm

DAVE185 wrote:pretty new to this so don't laugh

but if i have it already written in html could i just add the java script at the top or something with it ?

i would probally just want it to come on once he got to the site


take a peak at some of the examples/tutorials for javascript on the net..
Toby B.
Lead Mobo-fu Master
Lead Mobo-fu Master
 
Posts: 14277
Joined: Sun Dec 16, 2001 1:01 am
Location: Maine

Postby olly » Fri Dec 02, 2005 7:17 am

DAVE185 wrote:pretty new to this so don't laugh


Why would we laugh mate? I dont know any javascript experts, its one of those things that you might use a bit of now and again (like xml) but you probably don't have the time or opportunity to become an expert in it.

Anyway this should work:

Code: Select all
<html>
<body>
<script type="text/javascript">
alert("All your files on your computer have been deleted")
</script>
</body>
</html>
olly
Green Belt
Green Belt
 
Posts: 222
Joined: Thu Jun 27, 2002 8:11 pm

Postby DAVE1 » Fri Dec 02, 2005 2:50 pm

thanks :D
Join team 33258 today!!
DAVE1
Mobo-fu Master
Mobo-fu Master
 
Posts: 7699
Joined: Sat May 14, 2005 11:49 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests