hallo zusammen
ich wollte für meine seite einen raten kalkulator machen
mein problem ist das folgende, als font möchte ich microsoft sans serif, leider wird beim switchen nicht auf alle dieses format übertragen, bloss wo und wie kann ich das wechseln???? wäre schon froh wenn das dann tadellos funktionieren würde
vielen dank im voraus
gruss
cindy
Code
</script>
<script type="text/javascript">
function setLeasingRate(months)
{
var rate;
var total;
switch (months) {
case 12: rate = 531.00;
break;
case 24: rate = 280.40;
break;
case 36: rate = 197.20;
break;
}
total = rate * months;
document.getElementById('rate').innerHTML = "chf " + rate.toFixed(2) + "/Monat";
document.getElementById('total').innerHTML = "Total: chf " + total.toFixed(2);
}
</script>
<table border="1" width="108">
<tr>
<td width="181">
<table border="0" width="1">
<tr>
<td colspan="3" class="rateTableHeader" nowrap width="175">
<p align="center"><font size="1" face="MS Sans Serif">Raten-Kalkulator</font></p>
</td>
</tr>
<tr>
<td nowrap width="58"><font size="1" face="MS Sans Serif"><input type="radio" name="months" onclick="setLeasingRate(12,'rate','total');">
12</font></td>
<td nowrap width="58"><font size="1" face="MS Sans Serif"><input type="radio" name="months" onclick="setLeasingRate(24,'rate','total');">24</font></td>
<td nowrap width="59"><font size="1" face="MS Sans Serif"><input type="radio" name="months" onclick="setLeasingRate(36,'rate','total');" checked>36</font></td>
</tr>
<tr>
<td colspan="3" id="rate" align="center" class="produktenamen" width="175"><font size="1" face="MS Sans Serif">chf 197.20/Monat</font><font></font></td>
</tr>
<tr>
<td colspan="3" id="total" align="center" width="175"><font size="1" face="MS Sans Serif">Total:
chf 7'099.20<font size="1" face="MS Sans Serif"></td>
Alles anzeigen