function RadioButtonchange()
{
var RadioListReceipt = DGL("RadioListReceipt");
var Radio_list = RadioListReceipt.getElementsByTagName("INPUT");
var RadioListPayType = DGL("RadioListPayType");
var Radio_Paylist = RadioListPayType.getElementsByTagName("INPUT");
//RadioListNetPaySource 网络支付类型
var RadioListNetPaySource = DGL("RadioListNetPaySource");
var Radio_NetPaylist = RadioListNetPaySource.getElementsByTagName("INPUT");
if(Radio_Paylist[3].checked)
{
Radio_list[1].disabled=true;
Radio_list[2].disabled=true
Radio_list[1].checked=false;
Radio_list[0].checked=true;
Radio_NetPaylist[0].checked=true;
}
else
{
Radio_list[2].checked=true;
Radio_list[0].disabled=false;
Radio_list[1].disabled=false;
Radio_list[2].disabled=false;
Radio_NetPaylist[0].checked=false;
}
if(Radio_Paylist[0].checked)
{
document.getElementById('paymenu2').style.display = "block";
var netpayType="<%=netpaysource %>";
// alert(netpayType);
if(netpayType==""||netpayType=="10")
{
Radio_NetPaylist[0].checked=true;
}
if(netpayType=="15")
{
Radio_NetPaylist[1].checked=true;
}
}
else
{
document.getElementById('paymenu2').style.display = "none";
//$("#paymenu2").hide();
}
}window.onload=function(){
RadioButtonchange();
}
在选择其他项之后 这个'paymenu2'层在firefox、谷歌浏览器里还是隐藏不了!请教各位,谢谢了。
{
var RadioListReceipt = DGL("RadioListReceipt");
var Radio_list = RadioListReceipt.getElementsByTagName("INPUT");
var RadioListPayType = DGL("RadioListPayType");
var Radio_Paylist = RadioListPayType.getElementsByTagName("INPUT");
//RadioListNetPaySource 网络支付类型
var RadioListNetPaySource = DGL("RadioListNetPaySource");
var Radio_NetPaylist = RadioListNetPaySource.getElementsByTagName("INPUT");
if(Radio_Paylist[3].checked)
{
Radio_list[1].disabled=true;
Radio_list[2].disabled=true
Radio_list[1].checked=false;
Radio_list[0].checked=true;
Radio_NetPaylist[0].checked=true;
}
else
{
Radio_list[2].checked=true;
Radio_list[0].disabled=false;
Radio_list[1].disabled=false;
Radio_list[2].disabled=false;
Radio_NetPaylist[0].checked=false;
}
if(Radio_Paylist[0].checked)
{
document.getElementById('paymenu2').style.display = "block";
var netpayType="<%=netpaysource %>";
// alert(netpayType);
if(netpayType==""||netpayType=="10")
{
Radio_NetPaylist[0].checked=true;
}
if(netpayType=="15")
{
Radio_NetPaylist[1].checked=true;
}
}
else
{
document.getElementById('paymenu2').style.display = "none";
//$("#paymenu2").hide();
}
}window.onload=function(){
RadioButtonchange();
}
在选择其他项之后 这个'paymenu2'层在firefox、谷歌浏览器里还是隐藏不了!请教各位,谢谢了。
解决方案 »
- 从数据库中取不出来数据,急急急
- 求高手解答一关于mschart问题
- C# DataBinding 事件不触发 郁闷了
- 有熟悉 user profile的朋友过来指导一下
- Repeater学习总结
- 如何做到碰到关键字就给其添超链接及其如何调用此方法
- asp+activex的问题,急死人了,请大家帮忙,先谢谢了!!
- 软件供需发布平台www.chinaident.com
- IIS与ASP.NET的问题
- [ArgumentNullException: 值不能为 null。 参数名: value]
- 用for循环在一个页面new多个iframe后的问题
- 关于GridView自动生成字段的问题,郁闷啊。。。各位大虾帮帮小弟吧
if(Radio_Paylist[0].checked)
{
document.getElementById('paymenu2').style.display = "block";
var netpayType="<%=netpaysource %>";
// alert(netpayType);
if(netpayType==""||netpayType=="10")
{
Radio_NetPaylist[0].checked=true;
}
if(netpayType=="15")
{
Radio_NetPaylist[1].checked=true;
}
}
//不要放在一个if语句里
if(Radio_Paylist[0].checked==false)
{
document.getElementById('paymenu2').style.display = "none";
//$("#paymenu2").hide();
}