回菜鸟:
if ((parseInt(document.forms[0].txtbright.value) < 129) & (parseInt(document.forms[0].txtbright.value) > 1) &
 (parseInt(document.forms[0].txtcontrast.value) < 129) & (parseInt(document.forms[0].txtcontrast.value) > 1) & (parseInt(document.forms[0].txthue.value) < 129) & (parseInt(document.forms[0].txthue.value) > 1))
{
}原理:
if ((?) & (?) & (?))
{
}

解决方案 »

  1.   

    if ((parseInt(document.forms[0].txtbright.value) < 129) and (parseInt(document.forms[0].txtbright.value) > 1) &&
     (parseInt(document.forms[0].txtcontrast.value) < 129) and (parseInt(document.forms[0].txtcontrast.value) > 1) &&
     (parseInt(document.forms[0].txthue.value) < 129) and (parseInt(document.forms[0].txthue.value) > 1)){....
    }
      

  2.   

    if  语言中的“与”和“或”是用"&&" 和"||" 来实现的
      

  3.   

    vbscript才用 and,javascript用 && !