<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
#map {
        width: 512px;
height: 512px;
border: 1px solid black;
}
</style>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
<!--script language="Javascript" src="http://127.0.0.1:9000/pruebas/OpenLayers.js"></script-->
<script type="text/javascript">
var map, capa, capa2;
function init(){
map = new OpenLayers.Map( 'map' ,{
                                        maxExtent: new OpenLayers.Bounds(473802,9131570,1057497,9500730),
                                         maxResolution: 'auto'});
capa = new OpenLayers.Layer.WMS( "Mapserver WMS",
"http://127.0.0.1:9000/cgi-bin/mapserv.exe?map=/ms4w/apps/Pruebas/mapas/demo2.map",
{layers: "Prov02.shp,Depa02.shp",
format:'image/png'});
}
map.addLayers([capa]);
map.zoomToMaxExtent();
</script>
-
</head>
<body onload="init()">
<b>Ejemplo de Servicio WMS</b>
<div>
El uso básico de MapServer para publicar cartografía
</div>
<div id="map"></div>
</body>
</html>