changing the text displayed when a item in a listbox
Moderator: General Moderators
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
changing the text displayed when a item in a listbox
is clicked. anyone know how to do this in java?
-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
also i allready have a script that changes the image
the value is something .jpg
is there away to have the value be yada then do something like
where the value's of the listbox isnt filename.jpg
but instead just filename
then once it activates the script. it add .jpg
cause once i send the form, i really dont want to use string manipulation on the filename.jpg since i allready have it written to be filename
Code: Select all
<script language="javascript">
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.register.char.optionsїdocument.register.char.selectedIndex].value
}
</script>is there away to have the value be yada then do something like
Code: Select all
<script language="javascript">
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
image = optionsїdocument.register.char.selectedIndex].value + ".jpg"
document.register.char.image
}
</script>but instead just filename
then once it activates the script. it add .jpg
cause once i send the form, i really dont want to use string manipulation on the filename.jpg since i allready have it written to be filename