1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="tentacukle" />
<meta name="date" content="13/11/2005" />
<meta name="sequence" content="sequence" />
<title>Le titre</title>
<meta name="generator" content="namo webeditor(trial)" />
</head>
<div id="div_resultat">
</div>
<h1>Titre principal</h1>
<h2>Premier paragraphe</h2>
<p>bla, bla, bla...</p>
<h2>Deuxième paragraphe</h2>
<p>bla, bla, bla...</p>
<!--
Ne rien mettre en dessous de ce commentaire, si ce n'est le script
-->
<script><!--
function RechercherTag(type){
var resultat = "";
var el=document.getElementsByTagName(type);
for(i=0;i<el.length;i++) {
resultat += (i+1) + ". " + el[i].innerHTML + "<br" + " />"; //<!--
}
return resultat;
}
document.getElementById('div_resultat').innerHTML = RechercherTag("H2");
--></script>
</body>
</html> |