PDA

View Full Version : Array on Menu/List


Mapachillo
02-06-2008, 09:36 PM
Hello, i want to know if it's possible to add a result from an array.

What i want to do is to have a list from the year 1950 to 2009, but i don't want to insert it manually. Is it possible? This is the array i have:

var now = new Date();
function fn_LoadYears(n)
{
this.length = n
for (var i = 1950; i<=n; i++)
{
this[i] = 0
}
return this
}