请求JS报价 [英] Request for JS quote

查看:73
本文介绍了请求JS报价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这个小组的新手 - 以及一般的新闻组 - 所以如果我出去的话,我会大肆宣传

行...


我是网页设计师,但不精通JS。


我需要一个简单的密度计算器报价。在JS中。这里有两个

的例子(不是JS):


1. http://www.cheeseman.com/Density-Calculator.asp

2.
http://www.myyellow.com/dynamic/serv。 ..ipfromservices


谢谢!

I''m new to this group - and newsgroups in general - so I aplogize if I''m out
of line here...

I''m a web designer, but not proficient in JS.

I need a quote for a simple "Density Calculator" in JS. Here are two
examples (not JS):

1. http://www.cheeseman.com/Density-Calculator.asp
2.
http://www.myyellow.com/dynamic/serv...ipfromservices

Thanks!

推荐答案

Shaun Furlong于2006年8月18日在comp.lang.javascript
Shaun Furlong wrote on 18 sep 2006 in comp.lang.javascript:

我需要一个简单的密度计算器报价。在JS中。
I need a quote for a simple "Density Calculator" in JS.



只要你不引用topquote,

这个NG就是免费的。


然而,奇怪的是,

当一个人使用我需要时,

而意思是我想要。


; - }


-

Evertjan。

荷兰。

(请更改在我的电子邮件地址中点到点')

As long as you do not topquote,
quoting is free on this NG.

It is strange however,
when one uses "I need",
while meaning "I want".

;-}

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


但很奇怪,
It is strange however,

当使用时我需要,

,而意思是我想要。
when one uses "I need",
while meaning "I want".



谢谢。它在技术上可能不正确,但是

并没有什么奇怪的。人们总是这样使用这个词。 ;-)


Evertjan。 < ex ************** @ interxnl.netwrote in message

news:Xn **************** **** @ 194.109.133.242 ...

Thanks. It may not be technically correct, but there''s nothing strange about
it. People use the word that way all the time. ;-)

"Evertjan." <ex**************@interxnl.netwrote in message
news:Xn********************@194.109.133.242...


Shaun Furlong于2006年8月18日在comp.lang.javascript中写道

>我需要一个简单的密度计算器的报价。在JS中。
>I need a quote for a simple "Density Calculator" in JS.



只要你不引用topquote,

这个NG就是免费的。


然而,奇怪的是,

当一个人使用我需要时,

而意思是我想要。


; - }


-

Evertjan。

荷兰。

(请更改我的电子邮件地址中的点数为x''es)


As long as you do not topquote,
quoting is free on this NG.

It is strange however,
when one uses "I need",
while meaning "I want".

;-}

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)



" Shaun Furlong" < sh *** @ shaunfurlong.com写信息

新闻:wc *************************** ***@comcast.com。 ..
"Shaun Furlong" <sh***@shaunfurlong.comwrote in message
news:wc******************************@comcast.com. ..

我是这个小组的新手 - 以及一般的新闻组 - 所以如果我是
I''m new to this group - and newsgroups in general - so I aplogize if I''m

$ b,我会大肆宣传
$ b out

out


这里的行...


我是网页设计师,但不是精通JS。


我需要一个简单的密度计算器报价。在JS中。这里有两个

的例子(不是JS):


1. http://www.cheeseman.com/Density-Calculator.asp

2.
of line here...

I''m a web designer, but not proficient in JS.

I need a quote for a simple "Density Calculator" in JS. Here are two
examples (not JS):

1. http://www.cheeseman.com/Density-Calculator.asp
2.

http://www.myyellow.com/dynamic/serv ... sitedensitycal

culator.jsp?PARENT = yfscjhowtoshipfromservices

这会有帮助 - 虽然没有错误检查吗?


< html>

< head>

< title>密度计算器< / title>

< script type =" ; text / javascript">

函数calc(){

var decs = 5; // =显示的小数位数

var form = document.form1;

var l_ft = parseInt(form.L_ft.value,10);

var l_in = parseInt(form.L_in.value,10);

var w_ft = parseInt(form.W_ft.value,10);

var w_in = parseInt( form.W_in.value,10);

var h_ft = parseInt(form.H_ft.value,10);

var h_in = parseInt(form.H_in.value, 10);

var o_lb = parseInt(form.O_lb.value,10);

var o_oz = parseInt(form.O_oz.value,10);

var c_ft = l_ft * w_ft * h_ft;

var c_in = l_in * w_in * h_in;

var cube =(12 * c_ft + c_in)/ 12;

var wait =(16 * o_lb + o_oz)/ 16;

var dens = wait / cube;

dens = dens。 toString()

if(dens.indexOf("。")> = 0){

dens = dens.substr(0,dens.indexOf(") ;。")+ decs + 1);

}

form.Cube.value = cube;

form.Dens.value =窝点;

}

函数init(){

var for m = document.form1;

form.L_ft.focus();

form.L_ft.select();

}

window.onload = init;

< / script>

< / head>

< body>

< pre>

< b>计算密度< / b>

< form name =" form1">

< b>长度:< / b>< input type =" text" name =" L_ft"

size =" 6"值= QUOT; 0" style =" text-align:right" Feet

< b< / b>< input type =" text" name =" L_in"

size =" 6"值= QUOT; 0" style =" text-align:right" Inches

< b>宽度:< / b>< input type =" text" name =" W_ft"

size =" 6"值= QUOT; 0" style =" text-align:right" Feet

< b< / b>< input type =" text" name =" W_in"

size =" 6"值= QUOT; 0" style =" text-align:right" Inches

< b>高度:< / b>< input type =" text" name =" H_ft"

size =" 6"值= QUOT; 0" style =" text-align:right" Feet

< b< / b>< input type =" text" name =" H_in"

size =" 6"值= QUOT; 0" style =" text-align:right" Inches

< b> Weight:< / b>< input type =" text" name =" O_lb"

size =" 6"值= QUOT; 0" style =" text-align:right" Pounds

< b< / b>< input type =" text" name =" O_oz"

size =" 6"值= QUOT; 0" style =" text-align:right" Ounces

< input type =" button"值= QUOT;计算" onclick =" calc()"

style =" background-color:white; width:110px">

< b< / b>< input type =" text"名称= QUOT;立方" readonly

size =" 6"值= QUOT; 0" style =" text-align:right" Cubic Feet(ft< sup> 3< / sup>)

< b< / b>< input type =" text"名称= QUOT;齿突" readonly

size =" 6"值= QUOT; 0" style =" text-align:right" lbs / ft< sup> 3< / sup>

< input type =" reset"值= QUOT;清零" onclick =" init()"

style =" background-color:white;宽度:110px">

< / form>

< / pre>

< / body>

< / html>


注意自动换行。


它可能不是最佳解决方案,但它是一个"解决方案。


或者你是否需要支付解决方案。

http://www.myyellow.com/dynamic/serv...sitedensitycal
culator.jsp?PARENT=yfscjhowtoshipfromservices
Will this help -- though it has no error checking?

<html>
<head>
<title>Density Calculator</title>
<script type="text/javascript">
function calc() {
var decs = 5; // = decimal positions displayed
var form = document.form1;
var l_ft = parseInt(form.L_ft.value,10);
var l_in = parseInt(form.L_in.value,10);
var w_ft = parseInt(form.W_ft.value,10);
var w_in = parseInt(form.W_in.value,10);
var h_ft = parseInt(form.H_ft.value,10);
var h_in = parseInt(form.H_in.value,10);
var o_lb = parseInt(form.O_lb.value,10);
var o_oz = parseInt(form.O_oz.value,10);
var c_ft = l_ft * w_ft * h_ft;
var c_in = l_in * w_in * h_in;
var cube = (12 * c_ft + c_in) / 12;
var wait = (16 * o_lb + o_oz) / 16;
var dens = wait / cube;
dens = dens.toString()
if (dens.indexOf(".") >= 0) {
dens = dens.substr(0,dens.indexOf(".")+decs+1);
}
form.Cube.value = cube;
form.Dens.value = dens;
}
function init() {
var form = document.form1;
form.L_ft.focus();
form.L_ft.select();
}
window.onload = init;
</script>
</head>
<body>
<pre>
<b>Calculate Density</b>
<form name="form1">
<b>Length: </b><input type="text" name="L_ft"
size="6" value="0" style="text-align:right"Feet
<b </b><input type="text" name="L_in"
size="6" value="0" style="text-align:right"Inches
<b>Width : </b><input type="text" name="W_ft"
size="6" value="0" style="text-align:right"Feet
<b </b><input type="text" name="W_in"
size="6" value="0" style="text-align:right"Inches
<b>Height: </b><input type="text" name="H_ft"
size="6" value="0" style="text-align:right"Feet
<b </b><input type="text" name="H_in"
size="6" value="0" style="text-align:right"Inches
<b>Weight: </b><input type="text" name="O_lb"
size="6" value="0" style="text-align:right"Pounds
<b </b><input type="text" name="O_oz"
size="6" value="0" style="text-align:right"Ounces
<input type="button" value="Calculate" onclick="calc()"
style="background-color:white; width:110px">
<b </b><input type="text" name="Cube" readonly
size="6" value="0" style="text-align:right"Cubic Feet (ft<sup>3</sup>)
<b </b><input type="text" name="Dens" readonly
size="6" value="0" style="text-align:right"lbs/ft<sup>3</sup>
<input type="reset" value="Clear" onclick="init()"
style="background-color:white; width:110px">
</form>
</pre>
</body>
</html>

Watch for word-wrap.

It may not be the best solution but it is "a" solution.

Or did you "need" to pay for a solution.


这篇关于请求JS报价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆