OpenLayers OpenLayers

Changeset 1375

Show
Ignore:
Timestamp:
08/25/06 14:38:20 (2 years ago)
Author:
crschmidt
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/examples/xhtml.html

    r1244 r1375  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    22        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd"> 
    3 <html xmlns="http://www.w3.org/1999/xhtml" style="width:100%"
     3<html xmlns="http://www.w3.org/1999/xhtml"
    44<head> 
    5 <script src="../lib/OpenLayers.js"></script> 
     5<title>XHTML Example</title> 
     6<script src="../lib/OpenLayers.js" type="text/javascript"></script> 
    67</head> 
    78<body style="width:100%"> 
     
    1415    map.zoomToMaxExtent(); 
    1516  </script> 
     17<p> 
     18      <a href="http://validator.w3.org/check/referer"><img 
     19          src="http://www.w3.org/Icons/valid-xhtml10" 
     20          alt="Valid XHTML 1.0!" height="31" width="88" /></a> 
     21    </p> 
    1622</body> 
    1723</html> 
  • trunk/openlayers/lib/OpenLayers.js

    r1371 r1375  
    111111        var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>";  
    112112        allScriptTags += currentScriptTag; 
     113        var currentScriptElem  = document.createElement('script'); 
     114        currentScriptElem.type = 'text/javascript'; 
     115        currentScriptElem.src  = host + jsfiles[i]; 
     116 
     117        document.getElementsByTagName("head")[0].appendChild(currentScriptElem); 
     118 
    113119    } 
    114120    document.write(allScriptTags);