function hesapla ()
{
var baseval=
document.theform.renk1.selectedIndex+document.theform.renk2.selectedIndex/10
var us= doucment.theform.renk3.selectedIndex
var gosterge = "ohm"
if( us >2 && us < 6)
{
us = us-3
gosterge = "Kohm"
}
else if ( us > 5)
{
us = us-6
gosterge = "Mohm"
}
var usdeger = 1
for (var i = 0 ; i < us ; i++)
{
usdeger = usdefer *10
}
baseval = baseval*usdeger
document.theform.dirdeger.vaule = baseval
document.theform.dirgost.vaule = gosterge
}
Direnc Hesaplayicisi:
Direnc degerini bulmak icin, once soldan baslayarak renkleri secin.
Sonra da Hesapla! dugmesine tiklayin...