Valid XHTML    Valid CSS2    

Listing du fichier tp3fin.js

 

00001     // (gH) -_- tp3fin.js ; TimeStamp (unix) : 28 Mars 2010 vers 15:31
00002     
00003     // ######################################################################
00004     
00005     function creation() {
00006     
00007     // ######################################################################
00008     
00009     // partie du haut
00010     
00011     elth1 = window.document.createElement("h1") ;
00012     eltsp = window.document.createElement("span") ;
00013     eltgr = window.document.createElement("b") ;
00014     texte = window.document.createTextNode("Bonjour") ;
00015     
00016     eltsp.setAttribute("class","gbleu") ;
00017     eltsp.setAttribute("className","gbleu") ;
00018     
00019     eltgr.appendChild(texte) ;
00020     eltsp.appendChild(eltgr) ;
00021     elth1.appendChild(eltsp) ;
00022     
00023     window.document.body.appendChild(elth1) ;
00024     
00025     } ; // fin de fonction creation
00026     
00027     // ######################################################################

Pour ne pas voir les numéros de ligne, ajoutez &nl=non à la suite du nom du fichier.

 

 

retour gH    Retour à la page principale de   (gH)