PHP interesse |
|
Ben hellemaal niet goed in javascript maar wat is hier fout?
<script language="JavaScript">
<!--
var prices = new Object();
function changePrice() {
f = document.gameprices;
var price = 0;
var slots = 0;
var pub = f.pub[f.pub.selectedIndex].value;
if(pub == private) {
slots = f.slots[f.slots.selectedIndex].value * 0,875;
f.price.value = '€ '+slots;
}
else {
slots = f.slots[f.slots.selectedIndex].value * 1,00;
f.price.value = '€ '+slots;
}
}
function round(number,X) {
X = (!X ? 2 : X);
return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}
//-->
</script>
<script language="JavaScript"> <!-- var prices = new Object(); function changePrice() { f = document.gameprices; var price = 0; var slots = 0; var pub = f.pub[f.pub.selectedIndex].value; if(pub == private) { slots = f.slots[f.slots.selectedIndex].value * 0,875; f.price.value = '€ '+slots; } else { slots = f.slots[f.slots.selectedIndex].value * 1,00; f.price.value = '€ '+slots; } } function round(number ,X ) { X = (!X ? 2 : X); return Math .round(number *Math .pow(10,X ))/Math .pow(10,X ); } //--> </script>
|