Right. 2.0 and trunk are not the same. svn switch is my friend.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1375 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-25 18:38:20 +00:00
parent 7ed62ba639
commit e9331479dc
2 changed files with 14 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="width:100%">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="../lib/OpenLayers.js"></script>
<title>XHTML Example</title>
<script src="../lib/OpenLayers.js" type="text/javascript"></script>
</head>
<body style="width:100%">
<div style="width:100%; height:500px" id="map"></div>
@@ -13,5 +14,10 @@
map.addLayer(wms);
map.zoomToMaxExtent();
</script>
<p>
<a href="http://validator.w3.org/check/referer"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</p>
</body>
</html>

View File

@@ -110,6 +110,12 @@ if (typeof(_OPENLAYERS_SFL_) == "undefined") {
for (var i = start; i < jsfiles.length; i++) {
var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>";
allScriptTags += currentScriptTag;
var currentScriptElem = document.createElement('script');
currentScriptElem.type = 'text/javascript';
currentScriptElem.src = host + jsfiles[i];
document.getElementsByTagName("head")[0].appendChild(currentScriptElem);
}
document.write(allScriptTags);
})();