Home > front end >  This JS why Google and 360 does not perform
This JS why Google and 360 does not perform

Time:09-27

IE, mobile phones are useful
Google and 360 does not perform

Process is to click on the select material, select the "gold" - should pop up 4135, 4140, 4340 in the model, but Google and 360 play not to come out,
What disease?








 & lt; The script type="text/javascript" & gt; 

Var alloysteelArray=new Array (" (' choice of precious metals', ' ', true, true) ",
"(' 4135 ', '0.282')",
"(' 4140 ', '0.282')",
"(' 4340 ', '0.282')");


The function populateAlloy (inForm, selected) {
Var selectedArray=eval (selected + "Array");
While (selectedArray. Length & lt; InForm. Alloy. The options. Length) {
InForm. Alloy. The options [(inForm) alloy) options. The length of 1)]=null;
}
for (var i=0; i Eval (" inForm. Alloy. The options [I]="+" new Option "+ selectedArray [I]);
}
If (inForm) material) options. [0] value='https://bbs.csdn.net/topics/={
InForm. Material. The options [0]=null;
If (the navigator. AppName=='Netscape) {
If (parseInt (the navigator. AppVersion) & lt; 4) {
Window. The history. The go (0);
}
The else {
If (the navigator. Platform=='Win32' | | the navigator. The platform=='Win16') {
Window. The history. The go (0);
}
}
}
}
}

Var focusflag=false;
Var RoundOff=5;

The function ConvertToInch (value, type) {
If (type=="ft")
Value=https://bbs.csdn.net/topics/value * 12;
If (type=="yd")
Value=https://bbs.csdn.net/topics/value * 36;
If (type=="cm")
Value=https://bbs.csdn.net/topics/value/2.54;
If (type=="m")
Value=https://bbs.csdn.net/topics/(value * 100)/2.54;
If (type=="mm")
Value=https://bbs.csdn.net/topics/(value/10)/2.54;
return value;
}

The function CalculateWeight () {

Var Param=new Array (5);
Var Units=new Array (4);
Var Convert;
Var FormType;
Var Result;
Var Good;
Var myShape;
Var myPieces;
Var myDensity;
Var myWeight;
Var myPcWeight;
Var totalWeight;
Var dim1;
Var dim2;
Var dim3;
Var dim4;

MyDensity=document. Weightcalc. Alloy. The value;
Dim1=ConvertToInch (document. Weightcalc. Dim1. The value of the document. The weightcalc. Unitsdim1. Value);
Dim2=ConvertToInch (document. Weightcalc. Dim2. The value of the document. The weightcalc. Unitsdim2. Value);
Dim3=ConvertToInch (document. Weightcalc. Dim3. The value of the document. The weightcalc. Unitsdim3. Value);
Dim4=ConvertToInch (document. Weightcalc. Dim4. The value of the document. The weightcalc. Unitsdim4. Value);
MyPieces=document. Weightcalc. Pieces. The value;
MyShape=document. Weightcalc. Matshape. Value;
Document. Weightcalc. Pcweight. Rsize="4";
Document. Weightcalc. Totalweight. Rsize="4";

{if (myShape=="round")
Dim1 myWeight=new String (dim1 * * 9.42 * myDensity * (dim2/12));
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}
{if (myShape=="square")
MyWeight=new String (myDensity dim1 dim1 * * * dim2);
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}
{if (myShape=="hex")
MyDensity dim1 myWeight=new String (dim1 * * * 10.4 * (dim2/12));
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}

{if (myShape=="flat")
MyWeight=new String (myDensity dim2 dim1 * * * dim3);
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}
{if (myShape=="rectangle")
MyWeight=new String (myDensity dim2 dim1 * * * dim3);
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}

If (myShape=="tube" | | myShape=="pipe") {
MyWeight=new String (myDensity dim2 (dim1 - dim2) * * * 37.7 * (dim3/12));
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}
If (myShape=="rectangle tube") {
Dim2 myWeight=new String (((dim1 * * 12 * myDensity) - ((dim1 - (dim3 * 2) * (dim2 - (dim3 * 2)) * 12 * myDensity)) * (dim4/12));
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}
If (myShape=="square tube") {
Dim2 myDensity myWeight=new String (37.7 * * * (dim1 - dim2) * 1.27 * (dim3/12));
Document. Weightcalc. Pcweight. Value=https://bbs.csdn.net/topics/myWeight.substring (0, myWeight indexOf (". ") + RoundOff) * 0.4535;
}
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related