Nagnag
08-06-2005, 08:29 AM
Ok here's another thing I'm having trouble doing as well, lets see if anyone can figure this one out.
I have a website where you can create a character (using heads, body, weapons, facial hair, etc). To select each feature on the character you click the listbox and change it to the value you want, and the image appears onChange of the listbox.
Now, I want people to be able to come back and load their character that they had before. Here's how I want that to happen.
Each time a listbox is changed, a text field is changed. Then when they want to get the code to come back later they can copy that code from the text box and come back later and post how their character looked like before.
So I wanted the listbox.selected value to = the certain character in the textbox.
For instance, when you first go to the site the text box would say... 001001001001 meaning every 3 digits is the value for the 4 listboxes. 001 being the default "1st" selected value, so my question is how do I change the listbox properties and get the value of which one on the list is selected (meaning if the 2nd thing on the list is selected the value is 002) and change only a certain part of the text field, not the whole thing? Like text.value = listbox1.whichoneisselected.value+listbox2.whichoneisselected.value+listbox3.whichoneisselected.valu e+listbox4.whichoneisselected.value.
I can't change the value of the listbox choices because they're used to link to the image (like each value is a web address that the image is linked to). So the values have to come from WHICH listbox choice is selected
Thanks guys!
I have a website where you can create a character (using heads, body, weapons, facial hair, etc). To select each feature on the character you click the listbox and change it to the value you want, and the image appears onChange of the listbox.
Now, I want people to be able to come back and load their character that they had before. Here's how I want that to happen.
Each time a listbox is changed, a text field is changed. Then when they want to get the code to come back later they can copy that code from the text box and come back later and post how their character looked like before.
So I wanted the listbox.selected value to = the certain character in the textbox.
For instance, when you first go to the site the text box would say... 001001001001 meaning every 3 digits is the value for the 4 listboxes. 001 being the default "1st" selected value, so my question is how do I change the listbox properties and get the value of which one on the list is selected (meaning if the 2nd thing on the list is selected the value is 002) and change only a certain part of the text field, not the whole thing? Like text.value = listbox1.whichoneisselected.value+listbox2.whichoneisselected.value+listbox3.whichoneisselected.valu e+listbox4.whichoneisselected.value.
I can't change the value of the listbox choices because they're used to link to the image (like each value is a web address that the image is linked to). So the values have to come from WHICH listbox choice is selected
Thanks guys!