<html>
<script language="JavaScript">
function onOkBtnClick(oForm)
{
var iFuncType = oForm.FuncType.value;
if (iFuncType != "Cancel" && iFuncType != "Apply")
{
alert("请选择功能");
return false;
}
body.style.cursor='wait'; oForm.submit();
return true;
}
function SetCancelType(oForm)
{
oForm.FuncType.value = "Cancel";
}
function SetApplyType(oForm)
{
oForm.FuncType.value = "Apply";
}
</script>
<body>
<form name="SelectFunctionForm">
<input type="radio" value="Apply" name="FuncType" OnClick="SetApplyType(SelectFunctionForm)">申请功能
<input type="radio" value="Cancel" name="FuncType" OnClick="SetCancelType(SelectFunctionForm)">取消功能
<img border="0" onclick="onOkBtnClick(SelectFunctionForm)" src="image/button_queding.gif" width="68" height="22">
</form>
</body>
</html>
<script language="JavaScript">
function onOkBtnClick(oForm)
{
var iFuncType = oForm.FuncType.value;
if (iFuncType != "Cancel" && iFuncType != "Apply")
{
alert("请选择功能");
return false;
}
body.style.cursor='wait'; oForm.submit();
return true;
}
function SetCancelType(oForm)
{
oForm.FuncType.value = "Cancel";
}
function SetApplyType(oForm)
{
oForm.FuncType.value = "Apply";
}
</script>
<body>
<form name="SelectFunctionForm">
<input type="radio" value="Apply" name="FuncType" OnClick="SetApplyType(SelectFunctionForm)">申请功能
<input type="radio" value="Cancel" name="FuncType" OnClick="SetCancelType(SelectFunctionForm)">取消功能
<img border="0" onclick="onOkBtnClick(SelectFunctionForm)" src="image/button_queding.gif" width="68" height="22">
</form>
</body>
</html>
解决方案 »
- 关于javascript的typeof obj === "undefined"
- JS 解析XML文档,新手,求帮忙下~!~!~
- javascript 节点的问题
- 怎样用jQuery获取datalist里加载的数据
- 闲着无聊 看了个东西 是javascript操纵svg 被震惊了 测试了下 ie6也支持 疯狂震惊中………感觉flash没必要了
- js 函数
- 新手求助:struts-2.0.14怎么安装的
- 求一 js
- bootcss插件carousel轮换时的事件slide能否获得当前是哪一张
- 一个看上去不是很难,但是困饶了我很久的问题,请各位大虾赐教
- 智能日期????????????
- 谁能提供一个层的例子?
这样改和原来不是一样吗?有什么不同啊?
<html>
<script language="JavaScript">
function onOkBtnClick(Form){
var iFuncType = Form.FuncType;
for(i=0;i<iFuncType.length;i++)if(iFuncType[i].checked)return true
alert("请选择功能");
return false;
/*
document.body.style.cursor='wait';
return true;这也是没有意议,提交了来个wait还看得到?
*/
}
</script>
<body>
<form name="SelectFunctionForm" target="_blank" action="a.asp">
<input type="radio" value="Apply" name="FuncType">申请功能
<input type="radio" value="Cancel" name="FuncType">取消功能
<input type=submit onclick="return onOkBtnClick(SelectFunctionForm)" src="image/button_queding.gif" width="68" height="22">
</form>
</body>
</html>
<script language="JavaScript">
function onOkBtnClick(Form){
var iFuncType = Form.FuncType;
for(i=0;i<iFuncType.length;i++)if(iFuncType[i].checked)return true
alert("请选择功能");
return false;
/*
document.body.style.cursor='wait';
return true;这也是没有意议,提交了来个wait还看得到?
*/
}
</script>
<body>
<form name="SelectFunctionForm">
<input type="radio" value="Apply" name="FuncType">申请功能
<input type="radio" value="Cancel" name="FuncType">取消功能
<input type=image onclick="return onOkBtnClick(SelectFunctionForm)" src="image/button_queding.gif" width="68" height="22">
</form>
</body>
</html>