Log in

View Full Version : Need Help...



Noshino
09-29-2007, 06:31 PM
I'm looking for a calculator, or well, estimator script, but I can't find any...

I need a calculator to estimate the number of items needed based on the dimensions of a room

Actually the equation would be:

Lenght x Width x 1.1 /2.7

But I can't find something like that anywhere....help? :(

djr33
09-29-2007, 07:27 PM
<form onSubmit="return false;">
<script type="text/javascript>
var width = 0;
var height = 0;
function calc() {
document.getElementByID['n'].value = width*height;
}
</script>
Width: <input type="text" name="w" value="0" onchange="width=this.value; calc();"><br>
Height: <input type="text" name="h" value="0" onchange="height=this.value; calc();"><br>
Needed: <input type="text" disabled id="n" value="0">
</form>
Something like this, but it's probably not going to fit your design right away.