Date: 09/20/06 (Javascript Community) Keywords: no keywords hi everyone. startList = function() { i want to be able to add more values to this line: var n = j ? 'mainnav' : 'nav'; so it would be something like this: var n = j ? 'calendar' : 'departments' : 'mainnav' : 'nav'; but that syntax is wrong and i don't know enough JS to know why (aside from needing to make j<4). can you help? and if you have the time to explain the correct syntax, that would be so great. thank you! Source: http://community.livejournal.com/javascript/113406.html
|