We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
Who knows JavaScript?
Topic Started: Mar 27 2005, 04:56 PM (1,039 Views)
Sirin
Member
[ *  *  *  * ]
Code:
 

<script language="Javascript">

function IDO()
{
document.write("I Do!")
}

</script>
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Not gonna put a code here to prove it, because it will most likely be wrong.
But I do know some JS.

(Do know that your code won't do anything. (I think :unsure: ) )
Offline Profile Quote Post Goto Top
 
mathiaus
Member Avatar
mathiaus maximus™
[ *  *  *  *  *  * ]
<script language="text/Javascript">


document.write("Agrees with Qj and states I know VERY little as well")


</script>
Offline Profile Quote Post Goto Top
 
MegaKN
Ketchup is for winners, Ted.
[ *  *  *  *  * ]
Well, I can do document.write and alert :P
Offline Profile Quote Post Goto Top
 
mathiaus
Member Avatar
mathiaus maximus™
[ *  *  *  *  *  * ]
Code:
 
<script language="text/Javascript">

document.write("me and megaKN are at the same level!")

</script>
Offline Profile Quote Post Goto Top
 
FearKiller
Member Avatar
www.drewscripts.com
[ *  *  *  *  * ]
<noscript>I don't know Javascript</noscript>
Offline Profile Quote Post Goto Top
 
shockwave-
My other title is a Ferrari
[ *  * ]
um... what do you want to know? If you want to know what it is then:

Well, let's "examine" the code:

Code:
 
<script language="Javascript">

function IDO()
{
document.write("I Do!")
}

</script>


Well, the function IDO() part tells you that is the name of the function. That could be used later as an onLoad event handler (not likely for this script).

What it really does is the

document.write("I Do!")

part. Basically, all it does is writes the text "I Do" on the page. Very simple script.
Offline Profile Quote Post Goto Top
 
Dennis
Member
[ *  *  *  *  *  *  * ]
I don't know Js at all. :(
Offline Profile Quote Post Goto Top
 
gamefreak11
Member Avatar
Arcade Coder
[ *  *  *  *  *  * ]
<script>
var toasty= 6;
var smelly= 7;
var total= smelly * toasty;
var vtotal= 4034
var atotal= vtotal * total;
var monkey= atotal * 212;
</script>
<script>
document.write(monkey);
</script>
Offline Profile Quote Post Goto Top
 
KyngzIndeyen
Outplayer of Mr. 49361
[ *  *  * ]
<script type="text/javascript">

/*Time for me to
demonstrate some
knowledge of JS*/

var a = "I "
var b = "know "
var c = "some!"
document.write(a + b + c)

</script>
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
Code:
 
<script>
/*One of the most annoying
loops you will ever need to
know for js*/
var max = 100;
for (i=0;i<max;i++)
{
n = i + 1;
alert("I do, message " + n + " of " + max);
}
</script>
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
kingy
March 28, 2005 11:20 AM
Quote:
 
<script>
/*One of the most annoying
loops you will ever need to
know for js*/
var max = 100;
for (i=0;i>max;i++)
{
n = i + 1;
alert("I do, message " + n + " of " + max);
}
</script>

More annoying, I would say :rolleyes:
(EDIT: Oh, lol, browsers would crash on that. (Or give a warning, like FF does. wonder what IE does, but I'm scared to try it :/ ) )

gamefreak11
 

<script>
var toasty= 6;
var smelly= 7;
var total= smelly * toasty;
var vtotal= 4034
var atotal= vtotal * total;
var monkey= atotal * 212;
</script>
<script>

document.write(monkey);
</script>


Huh??
Quote:
 
</script>
<script>

Why would you do that??
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
Qj
March 28, 2005 11:33 AM
kingy
March 28, 2005 11:20 AM
Quote:
 
<script>
/*One of the most annoying
loops you will ever need to
know for js*/
var max = 100;
for (i=0;i>max;i++)
{
n = i + 1;
alert("I do, message " + n + " of " + max);
}
</script>

More annoying, I would say :rolleyes:
(EDIT: Oh, lol, browsers would crash on that. (Or give a warning, like FF does. wonder what IE does, but I'm scared to try it :/ ) )

it wouldn't do anything, it would only execute when i is over 100, so would never happen because i is given to be 0
Offline Profile Quote Post Goto Top
 
bkbballer16
Member
[ *  * ]
I know some ill help
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Damn, your right >_<
Meant to change ++ to --, I think.

*Qj goes sit in a corner, being pissed about being wrong
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Technology Chat · Next Topic »
Add Reply
  • Pages:
  • 1