Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > naming array va...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 35476 of 36179
Post > Topic >>

naming array values?

by Pukeko <pukeko.taniwha@[EMAIL PROTECTED] > May 4, 2008 at 09:29 PM

Hi, this is an array that is used for a dropdown menu.

var imageArray = new Array(
	"ecwp://" + document.location.host + "/massey/images/massey/
massey_07_fullres.ecw",
	"ecwp://" + document.location.host + "/sampleiws/images/usa/
1metercalif.ecw",
	"ecwp://" + document.location.host + "/sampleiws/images/australia/
parramatta.ecw";

when the menu is displayed it shows the whole value

"ecwp://" + document.location.host + "/massey/images/massey/
massey_07_fullres.ecw""

is there a way i can just display a name for the image in the dropdown
menu, like "Massey 2007"

cheers
 




 6 Posts in Topic:
naming array values?
Pukeko <pukeko.taniwha  2008-05-04 21:29:23 
Re: naming array values?
"Tim Williams"   2008-05-04 23:24:57 
Re: naming array values?
Tom Cole <tcole6@[EMAI  2008-05-05 05:26:37 
Re: naming array values?
unbewusst.sein@[EMAIL PRO  2008-05-05 15:05:50 
Re: naming array values?
Thomas 'PointedEars' Lahn  2008-05-07 00:26:31 
Re: naming array values?
Thomas 'PointedEars' Lahn  2008-05-07 00:02:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 19:13:42 CDT 2008.