Html et Javascript

From Wikili
Jump to: navigation, search

Quelques outils pour Html et Javascript

  • includeFile
function includeFile (fileName) {
    if (document.getElementsByTagName) {
        Script = document.createElement("script");
        Script.type = "text/javascript";
        Script.src = fileName;
        var Body = document.getElementsByTagName("body");
        if (Body) {
            Body[0].appendChild(Script);
        }
    }
}

function includeAllJavascriptToolsFromRr () {
   includeFile("http://www-bio3d-igbmc.u-strasbg.fr/~ripp/jstools/prototype.js") ;
   includeFile("http://www-bio3d-igbmc.u-strasbg.fr/~ripp/jstools/JavascriptToolsFromRr.js") ;
   includeFile("http://www-bio3d-igbmc.u-strasbg.fr/~ripp/jstools/Decoration.js") ;
}