594 Part III . Document Objects Reference Listing (Anonymous web server)
594 Part III . Document Objects Reference Listing 26-1 (continued) // filter out old browsers if (listObj.type) { // find out if it s 3 or 6 entries var listLength = listObj.length // save selected index var currSelected = listObj.selectedIndex // replace individual existing entries for (var i = 0; i < listLength; i++) { if (which == plain ) { listObj.options[i].text = plainList[i] } else { listObj.options[i].text = hardList[i] } } if (isPreNN6) { history.go(0) } else { listObj.selectedIndex = currSelected } } } // create entirely new options list function setCount(choice) { var listObj = document.forms[0].colors // filter out old browsers if (listObj.type) { // get language setting var lang = (document.forms[0].geekLevel[0].checked) ? plain : hard // empty options from list listObj.length = 0 // create new option object for each entry for (var i = 0; i < choice.value; i++) { if (lang == plain ) { listObj.options[i] = new Option(plainList[i]) } else { listObj.options[i] = new Option(hardList[i]) } } listObj.options[0].selected = true if (isPreNN6) { history.go(0) } } } SELECT
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.