I am wondering how to this:
var sufsel = new Array(3)
sufname[0] = "option1"
sufname[1] = "option2"
sufname[2] = "option3"
when option 1 is called it would need to fill in a couple of other information, say option1 will give up:
textboxa.value = option1
textboxb.value = black
textboxc.value = circel etc..
var sufsel = new Array(3)
sufname[0] = "option1",1,1
sufname[1] = "option2",1,2
sufname[2] = "option3",2,1
option1 will give option1 black circel
>>
form
1 circel
2 square
color
1 black
2 white
3 green
///
my direction would go to:
var sufsel = new Array(3,form,color)
sufname[0] = "option1",1,1
sufname[1] = "option2",1,2
sufname[2] = "option3",2,1
can anyone help me, example script or fill up mine?
I want the alert message to display the numbers given in array. When I give '4' at wpnnameR the alert should display "spear, 5 ,9", this is what I am looking for.
I hope this will clear up bit more.
Thanks!
Shampie
09-30-2003, 12:08 PM
<script>
var a = 0;
var b = 0;
var wpnname = new Array(8)
wpnname[0] = "sword,3,1"
wpnname[1] = "katana,7,2"
wpnname[2] = "scimitar,5,4"
wpnname[3] = "blade,6,6"
wpnname[4] = "spear,5,9"
wpnname[5] = "hammer,7,6"
wpnname[6] = "axe,5,6"
wpnname[7] = "scepter,5,6"
wpnnameR = prompt("array#?",0);
your help is very much appreaciated, tough right now I am working out the way I made it I will certainly have a good look on your way.
mm perhaps it is time to obtain a javascript book, I don't know my way with objects.
Thank you once more!
Charles
09-30-2003, 03:54 PM
Originally posted by Shampie
I don't know my way with objects.Please note, JavaScript is an object oriented language.
Shampie
09-30-2003, 07:02 PM
let me rephrase that, I aint no pro with javascript, I learn every day from anwsers by helpfull and skilled people like you.
I comparing with you I hardly know my way with objects and their posibilities.
Therefor I am thankfull for your time!
webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved.