Html et Javascript

From Wikili
Revision as of 09:30, 26 February 2007 by 130.79.78.212 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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") ;
}