3 <script type=
"text/javascript">
9 var newtr
= document
.createElement("tr")
10 newtr
.setAttribute("id","tr"+IDLine
)
13 var newtdselect
= document
.createElement("td")
14 var newselect
= document
.createElement("select")
15 newselect
.setAttribute("id","HypothRank_"+IDLine
)
16 newselect
.setAttribute("name","HypothRank_"+IDLine
)
18 for (i
=1;i
<=IDLine
;i
++)
21 var newoption
= document
.createElement("option")
22 newoption
.setAttribute("id",i
)
23 newoption
.setAttribute("class","classoption1")
26 newoption
.setAttribute("selected","selected")
28 var newtxt
= document
.createTextNode(i
)
29 newoption
.appendChild(newtxt
)
31 newselect
.appendChild(newoption
)
38 var newoption
= document
.createElement("option")
39 newoption
.setAttribute("class","classoption1")
40 newoption
.setAttribute("id",IDLine
)
41 var newtxt
= document
.createTextNode(i
-1)
42 newoption
.appendChild(newtxt
)
43 document
.getElementById("HypothRank_"+j
).appendChild(newoption
)
47 newtdselect
.appendChild(newselect
)
48 newtr
.appendChild(newtdselect
)
50 document
.getElementById('letbody').appendChild(newtr
)
57 function DeleteLine(IDLine
)
59 for (i
=1;i
<=NumLine
;i
++)
64 noeud
= document
.getElementById("HypothRank_"+i
)[IDLine
-1]
65 document
.getElementById("HypothRank_"+i
).removeChild(noeud
)
66 for (j
=0;j
<=NumLine
-2;j
++)
68 noeud
= document
.getElementById("HypothRank_"+i
)[j
]
71 noeud
.setAttribute("id",k
)
75 noeud
.setAttribute("selected","selected")
78 taille
= noeud
.firstChild
.nodeValue
.length
79 document
.getElementById("HypothRank_"+i
)[j
].firstChild
.replaceData(depart
,taille
,j
+1)
85 noeud
= document
.getElementById('tr'+IDLine
)
86 document
.getElementById('letbody').removeChild(noeud
)
90 for (i
=IDLine
;i
<=NumLine
;i
++)
93 noeud
= document
.getElementById("tr"+k
)
94 noeud
.setAttribute("id","tr"+i
)
96 noeud
= document
.getElementById("HypothRank_"+k
)
97 noeud
.setAttribute("id","HypothRank_"+i
)
98 noeud
.setAttribute("name","HypothRank_"+i
)
110 <table border=
"1" id=
"latable">
113 <tbody id=
"letbody"></tbody>
118 document
.body
.offsetWidth
;
120 document
.body
.offsetWidth
;
122 document
.body
.offsetWidth
;
124 document
.body
.offsetWidth
;
126 document
.body
.offsetWidth
;