var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508);
var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({
            div: "map",
            projection: proj4326,
            displayProjection: proj900913,
            maxExtent: maxExtent,
            restrictedExtent: restrictedExtent,
        });

Thanks for sharing this code!
[kinh mat][1]


  [1]: http://lucyyou.com/kinh-mat