<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>
解决方案 »
- 如何在一个网站存在两个轮播器都能播放
- js怎么将过个div放到一个数组
- 这样的javascript语法有错误吗?
- javascript如何加载xls文件??
- Ext.grid.GridPanel中Ext.data.Store的json过长,不显示
- 用javascript操作excel中单元格的locked属性的疑问!!!!!
- 高分求解:关于一个form里的内容提交给两个不同页面的问题.UP有分!!
- 用window.open打开过后的窗口如何更改menubar和toolbar的属性值
- 跪求 JS 代码 转换 C# 代码 很小一段~~~
- 为啥我的js与他人的不一样?
- 智能日期????????????
- 谁能提供一个层的例子?
这样改和原来不是一样吗?有什么不同啊?
<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>