浮动DIV

< td  width ="100" >< input  type ="text"  name ="dataAddByManualReq.SSubscrMonth"  id ="SSubscrMonth"  onclick ="javascript:document.getElementById('monthDiv').style.display='';"  class ="text"  readonly />< br />< div  id ="monthDiv"  style ='position:absolute;  width:40; height:60;z-index:100;background:red; display:none;' >
                                            
< table >
                                                
< tr >
                                                    
< td  colspan ="4"  style ="text-align:right;" >< onclick ="javascript:document.getElementById('monthDiv').style.display='none';"  style ="cursor:pointer;" > 关闭 </ a ></ td >
                                                
</ tr >
                                                
< tr >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="1月" /> 1月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="2月" /> 2月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="3月" /> 3月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="4月" /> 4月 </ td >
                                                
</ tr >
                                                
< tr >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="5月" /> 5月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="6月" /> 6月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="7月" /> 7月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="8月" /> 8月 </ td >
                                                
</ tr >
                                                
< tr >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="9月" /> 9月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="10月" /> 10月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="11月" /> 11月 </ td >
                                                    
< td >< input  type ="checkBox"  name ="huyMonth"  value ="12月" /> 12月 </ td >
                                                
</ tr >
                                                
< tr >
                                                    
< script  type ="text/javascript" >
                                                        
function addMonth()
                                                        
{
                                                            
var checkBoxArr = document.getElementsByName("huyMonth");
                                                            
                                                            
var monthStr = "";
                                                            
for(var i=0; i<checkBoxArr.length; i++)
                                                            
{
                                                                
if(checkBoxArr[i].checked)
                                                                
{
                                                                    monthStr 
+= "," + checkBoxArr[i].value;
                                                                }

                                                            }

                                                            
                                                            
if(monthStr.length>0)
                                                            
{
                                                                monthStr 
= monthStr.substr(1);
                                                            }

                                                            document.getElementById(
"SSubscrMonth").value=monthStr;
                                                        }

                                                    
</ script >
                                                    
< td  colspan ="4"  style ="text-align:center;" >< onclick ="javascript:addMonth()"  style ="cursor:pointer;" > 确定 </ a ></ td >
                                                
</ tr >
                                            
</ table >
                                        
</ div ></ td >
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值