vkidv
09-05-2002, 04:38 PM
hey,
sounds stupid but im not that great at writing my own javascripts, i copy and paste snipets of others and put them into mine (im not a good speller).
please could anybody tell me to have more than one else in a script - i think its somthing to do with { and }
here is an example, i got bored and started making a little chat alert person::
<script>
alert("hi, im rob the robot")
talk=confirm("do you want to talk to me?")
if (talk == true)
alert("yay")
else
alert("ok..bye")
</script>
how do i add some questions into this - so i dont just have 1 else!
thanx - simple to you, confusing to me
:P
sounds stupid but im not that great at writing my own javascripts, i copy and paste snipets of others and put them into mine (im not a good speller).
please could anybody tell me to have more than one else in a script - i think its somthing to do with { and }
here is an example, i got bored and started making a little chat alert person::
<script>
alert("hi, im rob the robot")
talk=confirm("do you want to talk to me?")
if (talk == true)
alert("yay")
else
alert("ok..bye")
</script>
how do i add some questions into this - so i dont just have 1 else!
thanx - simple to you, confusing to me
:P