Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Javascript Coding:
Basic Script for an Alert Box.

 

 


mr dookie
Senior Member


Aug 16, 2005, 8:14 PM

Post #1 of 6 (494 views)
Shortcut
Basic Script for an Alert Box. Can't Post

<html>
<head>
<script type="text/javascript">
function message()
{
alert("Insert text here")
}
</script>
</head>

<body onload="message()">

</body>
</html>

Et Voila! An Alert Box filled with whatever writing you wish...


(This post was edited by mr dookie on Aug 16, 2005, 8:14 PM)



Kingsfan1300
Senior Member


Aug 21, 2005, 5:45 AM

Post #2 of 6 (480 views)
Shortcut
Re: [mr dookie] Basic Script for an Alert Box. [In reply to] Can't Post

Worked great for my site, now i know how to do it Cool


mr dookie
Senior Member


Aug 22, 2005, 8:11 PM

Post #3 of 6 (471 views)
Shortcut
Re: [kingsfan1300] Basic Script for an Alert Box. [In reply to] Can't Post

Good for you. I wonder if this may get a sticky.


Crazy Eye
Enthusiast

Aug 23, 2005, 1:58 PM

Post #4 of 6 (465 views)
Shortcut
Re: [mr dookie] Basic Script for an Alert Box. [In reply to] Can't Post

thats cool... but how do you make it to when they click ok... another one pops up?


Grady
Senior Member


Aug 23, 2005, 2:05 PM

Post #5 of 6 (464 views)
Shortcut
Re: [Crazy Eye] Basic Script for an Alert Box. [In reply to] Can't Post

Put the popup code again streight after that one.




God is dead,
And noone cares,
If there is a hell,
I'll see you there.


mr dookie
Senior Member


Aug 23, 2005, 5:54 PM

Post #6 of 6 (461 views)
Shortcut
Re: [Crazy Eye] Basic Script for an Alert Box. [In reply to] Can't Post

<SCRIPT LANGUAGE="JavaScript">
var greetings = new Array (5)
greetings[0] ="INSERT TEXT HERE"
greetings[1] ="INSERT TEXT HERE"
greetings[2] ="INSERT TEXT HERE"
greetings[3] ="INSERT TEXT HERE"
greetings[4] ="INSERT TEXT HERE"
greetings[5] ="INSERT TEXT HERE"

alert(greetings[0])
alert(greetings[1])
alert(greetings[2])
alert(greetings[3])
alert(greetings[4])
alert(greetings[5])
</script>

I think that is a working one for 6 alert boxes. You can always put more in, just follow the pattern of the 6 before.

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.12 s on (CGI/1.1)