Strange bug in Firefox; clicking on a marker doesn't do anything. Mostly copy and paste from an example. Works in IE.
Example and some code:
<script type="text/javascript">
<!--
function init_map(){
var map = new OpenLayers.Map('map');
var places = new OpenLayers.Layer.Text( "text", "./markers.txt" );
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'} );
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://wms.jpl.nasa.gov/wms.cgi",
{layers: "modis,global_mosaic"});
var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
{layers: "bathymetry,land_fn,park,drain_fn,drainage," +
"prov_bound,fedlimit,rail,road,popplace",
transparent: "true", format: "image/png" });
jpl_wms.setVisibility(false);
dm_wms.setVisibility(false);
map.addLayers([ol_wms, jpl_wms, dm_wms]);
map.addLayer(places);
map.setCenter(new OpenLayers.LonLat(-71, 41.5), 10);
}
init_map();
// -->
</script>