This example demonstrates the use of a GeoExt.data.ScaleStore to list the available zoom levels for a map.
The js is not minified so it is readable. See zoom-chooser.js.