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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<html>
<title>Resist</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#FF0000" vlink="#FF0000" alink="#FF6666">
<noscript>Désolé, votre navigateur n'a pas le plugin javascript, ce programme ne peut pas s'éxécuter</noscript>
<div id=noner><input type="checkbox" name="non" checked></div>
<script language="Javascript"><!--
eval("document.all.noner.style.display='none'")//--></script>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="50%" height="10%"
bgcolor="#ffffff">
<tr>
<td width="50%"><table border="0" cellpadding="0"
cellspacing="0" width="100%" height="100%">
<tr height="10%">
<td width="75px"><hr size="2" width="100%" color="#000000">
</td>
<td width="75px"><table border="1" cellpadding="1"
cellspacing="0" width="100%" height="100%" bgcolor="#000000">
<tr>
<td width="16%" bgcolor="#ffffff"> </td>
<td width="5%" id=Coul1> </td>
<td width="8%" bgcolor="#ffffff"> </td>
<td width="5%" id=Coul2> </td>
<td width="8%" bgcolor="#ffffff"> </td>
<td width="5%" id=Coul3> </td>
<td width="16%" bgcolor="#ffffff"> </td>
<td width="5%" id=Tol bgcolor="yellow"> </td>
<td width="16%" bgcolor="#ffffff"> </td>
</tr>
</table>
</td>
<td width="75px"><hr size="2" width="100%" color="#000000">
</td>
</tr>
</table>
<p> </p>
</td>
</tr>
</table>
</br></br>
<script>
<!--
function Couleur1() {
document.all.v1.value=document.all.C1.selectedIndex-1
if (document.all.C1.selectedIndex == 0) {document.all.v1.value='';document.all.Coul1.bgColor=''}
if (document.all.C1.selectedIndex == 1) {document.all.Coul1.bgColor='black'}
if (document.all.C1.selectedIndex == 2) {document.all.Coul1.bgColor='brown'}
if (document.all.C1.selectedIndex == 3) {document.all.Coul1.bgColor='red'}
if (document.all.C1.selectedIndex == 4) {document.all.Coul1.bgColor='orange'}
if (document.all.C1.selectedIndex == 5) {document.all.Coul1.bgColor='yellow'}
if (document.all.C1.selectedIndex == 6) {document.all.Coul1.bgColor='green'}
if (document.all.C1.selectedIndex == 7) {document.all.Coul1.bgColor='blue'}
if (document.all.C1.selectedIndex == 8) {document.all.Coul1.bgColor='darkviolet'}
if (document.all.C1.selectedIndex == 9) {document.all.Coul1.bgColor='silver'}
if (document.all.C1.selectedIndex == 10) {document.all.Coul1.bgColor='white'}}
function Couleur2() {
document.all.v2.value=document.all.C2.selectedIndex-1
if (document.all.C2.selectedIndex == 0) {document.all.v2.value='';document.all.Coul2.bgColor=''}
if (document.all.C2.selectedIndex == 1) {document.all.Coul2.bgColor='black'}
if (document.all.C2.selectedIndex == 2) {document.all.Coul2.bgColor='brown'}
if (document.all.C2.selectedIndex == 3) {document.all.Coul2.bgColor='red'}
if (document.all.C2.selectedIndex == 4) {document.all.Coul2.bgColor='orange'}
if (document.all.C2.selectedIndex == 5) {document.all.Coul2.bgColor='yellow'}
if (document.all.C2.selectedIndex == 6) {document.all.Coul2.bgColor='green'}
if (document.all.C2.selectedIndex == 7) {document.all.Coul2.bgColor='blue'}
if (document.all.C2.selectedIndex == 8) {document.all.Coul2.bgColor='darkviolet'}
if (document.all.C2.selectedIndex == 9) {document.all.Coul2.bgColor='silver'}
if (document.all.C2.selectedIndex == 10) {document.all.Coul2.bgColor='white'}}
function Couleur3() {
document.all.v3.value=document.all.C3.selectedIndex-1
if (document.all.C3.selectedIndex == 0) {document.all.v3.value='';document.all.Coul3.bgColor=''}
if (document.all.C3.selectedIndex == 1) {document.all.Coul3.bgColor='black'}
if (document.all.C3.selectedIndex == 2) {document.all.Coul3.bgColor='brown'}
if (document.all.C3.selectedIndex == 3) {document.all.Coul3.bgColor='red'}
if (document.all.C3.selectedIndex == 4) {document.all.Coul3.bgColor='orange'}
if (document.all.C3.selectedIndex == 5) {document.all.Coul3.bgColor='yellow'}
if (document.all.C3.selectedIndex == 6) {document.all.Coul3.bgColor='green'}
if (document.all.C3.selectedIndex == 7) {document.all.Coul3.bgColor='blue'}
if (document.all.C3.selectedIndex == 8) {document.all.Coul3.bgColor='darkviolet'}
if (document.all.C3.selectedIndex == 9) {document.all.Coul3.bgColor='silver'}
if (document.all.C3.selectedIndex == 10) {document.all.Coul3.bgColor='white'}}
function Tolere() {
if (document.all.Tole.selectedIndex == 0) {document.all.Tol.bgColor='yellow';document.all.v4.value='5'}
if (document.all.Tole.selectedIndex == 1) {document.all.Tol.bgColor='silver';document.all.v4.value='10'}
}
function num(text) {
num=text
if (text < 0) {num=""}
if (text > 9) {num=""}
}
function Calcval() {
var b1,b2,b3,min,max,T,b4
var n = 1
var expos = document.all.v3.value
if (expos == document.all.v3.existe) {expos=0}
for (var i = 1; i<= expos; i++) {n = eval(10*n)}
T=document.all.v4.value
if (T == document.all.v3.existe) {T=0}
b1=eval(document.all.v1.value)
if (b1 == document.all.v3.existe) {b1=0}
b4=document.all.v2.value
if (b4 == document.all.v3.existe) {b4=0}
b2=eval(b1+b4)
b3=eval(b2*n)
document.all.hom.value=b3
document.all.khom.value=eval(b3/1000)
document.all.mhom.value=eval(b3/1000/1000)
min=eval(b3-(T/100*b3))
max=eval(b3+(T/100*b3))
document.all.homin.value=min
document.all.khomin.value=eval(min/1000)
document.all.mhomin.value=eval(min/1000/1000)
document.all.homax.value=max
document.all.khomax.value=eval(max/1000)
document.all.mhomax.value=eval(max/1000/1000)
timer=setTimeout("Calcval()",700)
}
//-->
</script>
<table align="center">
<td align="center">
<p>Cliquez sur la flèche pour afficher la liste des couleurs<p>
</td>
</table>
</br><table border="0" cellspacing="0"align="center">
<tr>
<td width="25%"><p align="center">Bague 1</p>
</td>
<td width="25%"><p align="center">Bague 2</p>
</td>
<td width="25%"><p align="center">Bague 3</p>
</td>
<td width="25%"><p align="center">Tolérance</p>
</td>
</tr>
<tr>
<td width="25%"><select name="C1" OnChange="Couleur1();Calcval()">
<option>~~~~~~~~~~
<option>0 : Noir
<option>1 : Marron
<option>2 : Rouge
<option>3 : Orange
<option>4 : Jaune
<option>5 : Vert
<option>6 : Bleu
<option>7 : Violet
<option>8 : Gris
<option>9 : Blanc
</select></td>
<td width="25%"><select name="C2" OnChange="Couleur2();Calcval()">
<option>~~~~~~~~~~
<option value=0>0 : Noir
<option value=1>1 : Marron
<option value=2>2 : Rouge
<option value=3>3 : Orange
<option value=4>4 : Jaune
<option value=5>5 : Vert
<option value=6>6 : Bleu
<option value=7>7 : Violet
<option value=8>8 : Gris
<option value=9>9 : Blanc
</select></td>
<td width="25%"><select name="C3" OnChange="Couleur3();Calcval()">
<option>~~~~~~~~~~
<option value=0>0 : Noir
<option value=1>1 : Marron
<option value=2>2 : Rouge
<option value=3>3 : Orange
<option value=4>4 : Jaune
<option value=5>5 : Vert
<option value=6>6 : Bleu
<option value=7>7 : Violet
<option value=8>8 : Gris
<option value=9>9 : Blanc
</select></td>
<td width="25%"><select name="Tole" OnChange="Tolere();Calcval()">
<option value=0>5% : Or
<option value=1>10% : Argent
</select></td>
</tr>
<tr>
<td align=center><div id=Calc1><sub><input name=v1 type=text size=1 readonly=1></sub></div></td>
<td align=center><div id=Calc2><sub><input name=v2 type=text size=1 readonly=1></sub></div></td>
<td align=left><div id=Calc3><sub>x10</sub><input name=v3 type=text size=1 readonly=1></div></td>
<td align=center><div id=Calc4><input name=v4 type=text size=1 value=5 OnChange="Calcval()" OnKeyUp="Calcval()">%</div></td>
</tr></div>
</table>
</br></br>
<div id=Valfi><table align="center" border="0" cellpadding="0" cellspacing="0"><tr border="1">
<td width="100"><font face="symbol"><center>»</center></font></td>
<td width="300">
<table border="1" cellpadding="0" cellspacing="0" width="400">
<tr>
<td width="33%"><input type="text" size="11" name="hom" value="0" maxlength="11" readonly=1><font face="symbol">W</font></td>
<td width="33%"><input type="text" size="10" name="khom" value="0" maxlength="10" readonly=1>K<font face="symbol">W</font></td>
<td width="33%"><input type="text" size="10" name="mhom" value="0" maxlength="10" readonly=1>M<font face="symbol">W</font></td>
</tr>
</table>
</td></tr>
<tr>
<td width="100"><font><center>Soit de</center></font></td>
<td width="300">
<table border="0" cellpadding="0" cellspacing="0" width="400">
<tr>
<td width="33%"><input type="text" size="11" name="homin" value="0" maxlength="11" readonly=1><font face="symbol">W</font></td>
<td width="33%"><input type="text" size="10" name="khomin" value="0" maxlength="10" readonly=1>K<font face="symbol">W</font></td>
<td width="33%"><input type="text" size="10" name="mhomin" value="0" maxlength="10" readonly=1>M<font face="symbol">W</font></td>
</tr>
</table></td>
</tr>
<tr>
<td width="100"><font><center>à</center></font></td>
<td width="300">
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
<td width="33%"><input type="text" size="11" name="homax" value="0" maxlength="11" readonly=1><font face="symbol">W</font></td>
<td width="33%"><input type="text" size="10" name="khomax" value="0" maxlength="10" readonly=1>K<font face="symbol">W</font></td>
<td width="33%"><input type="text" size="10" name="mhomax" value="0" maxlength="10" readonly=1>M<font face="symbol">W</font></td>
</tr>
</table></td>
</tr>
</table></div>
<br>
<table align="center">
<tr>
<td><input type="checkbox" name="showcal" checked OnClick="if (document.all.showcal.checked == document.all.non.checked) {document.all.Calc1.style.display='';document.all.Calc2.style.display='';document.all.Calc3.style.display='';document.all.Calc4.style.display=''} else {document.all.Calc1.style.display='none';document.all.Calc2.style.display='none';document.all.Calc3.style.display='none';document.all.Calc4.style.display='none'}">Afficher le calcul
<br><input type="checkbox" name="showres" checked OnClick="if (document.all.showres.checked == document.all.non.checked) {document.all.Valfi.style.display=''} else {document.all.Valfi.style.display='none'}">Afficher le résultat
</td>
</tr>
</table>
</form>
</body>
</html> |
Partager