Difference between revisions of "Html et Javascript"

From Wikili
Jump to: navigation, search
 
(No difference)

Latest revision as of 09:30, 26 February 2007

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") ;
}