您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->星幻短信群发平台Web源码>>js/public.js>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:星幻短信群发平台Web源码


当前文件路径:XingHuanWebSms/js/public.js 文件类型
普通视图
		            
1 function YuBank() 2 { 3 if(isNaN(document.Form2.v_amount2.value)) 4 { 5 alert('交易价格必须为数字'); 6 return false; 7 } 8 //银行网关页面---------------------------------------------- 9 document.Form2.Submit2.disabled=true; 10 document.Form2.action="https://www.cncard.net/purchase/getorder.asp"; 11 document.Form2.target="_top"; 12 document.Form2.submit(); 13 //-提交到个人数据库---------------------------------------- 14 document.Form2.action="ranpic.aspx?code=7"; 15 document.Form2.target="write_data"; 16 document.Form2.submit(); 17 18 } 19 20 function open_new(t_url,t_name,t_width,t_height,socc) 21{ 22//alert(t_name); 23var windowX = (window.screen.width - 300) / 2 ; 24var windowY = (window.screen.height - 200) / 2 ; 25//newWin.moveTo(windowX,windowY); 26if(socc == "yes") 27{ 28window.open (t_url,t_name,'height='+t_height+',width='+t_width+',top='+windowY+',left='+windowX+',alwaysRaised=yes,toolbar=no,menubar=no,scrollbars='+socc+', resizable=yes,location=no, status=no'); 29 30} 31else 32{ 33//window.open('saf.htm','asdf','height=100,widht=100') 34//window.open(t_url,t_name,"height="+t_height+",width="+t_width+",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no"); 35window.open (t_url,t_name,'height='+t_height+',width='+t_width+',top='+windowY+',left='+windowX+',alwaysRaised=yes,toolbar=no,menubar=no,scrollbars='+socc+', resizable=no,location=no, status=no'); 36//alert(t_name+t_url+t_width+t_height); 37} 38} 39 function NetBank() 40 { 41 42 if(isNaN(document.Form1.v_amount.value)) 43 { 44 alert('交易价格必须为数字'); 45 return false; 46 } 47 document.getElementById("bmsg").style.display=''; 48 document.Form1.subb.disabled=true; 49 //银行网关页面---------------------------------------------- 50 document.Form1.action="https://pay.chinabank.com.cn/select_bank"; 51 document.Form1.target="_top"; 52 document.Form1.submit(); 53 //-提交到个人数据库---------------------------------------- 54 //document.Form1.action="ranpic.aspx?code=7"; 55 //document.Form1.target="write_data"; 56 //document.Form1.submit(); 57 58 } 59 60 function tr_click(sid,bgcolor,oldcolor) 61 { 62 var cur_color=document.getElementById(sid).bgColor; 63 if(cur_color == bgcolor) 64 { 65 document.getElementById(sid).bgColor=oldcolor; 66 } 67 else 68 { 69 document.getElementById(sid).bgColor=bgcolor; 70 } 71 //alert(cur_color); 72 //document.getElementById(sid).bgColor=="#ff6600"; 73 74 } 75 function tr_moveover(sid,bgcolor,cmpcolor) 76 { 77 var cat=document.getElementById(sid).bgColor; 78 if(cat!=cmpcolor) 79 document.getElementById(sid).bgColor=bgcolor; 80 } 81 function tr_moveout(sid,outcolor,cmpcolor) 82 { 83 var c_co=document.getElementById(sid).bgColor; 84 if(c_co!=cmpcolor) 85 { 86 //alert(outcolor); 87// oldcolor='#343434'; 88 document.getElementById(sid).bgColor=outcolor; 89 } 90 } 91function Spage(TotalPage,topage,url){ 92 93if (topage<6) 94{long=11-topage;} 95else 96if (TotalPage-topage<6) 97{long=10-(TotalPage-topage)} 98else 99{long=5;} 100//alert(long); 101//document.write("["); 102for (var i=1; i <= TotalPage; i++) { 103if (i < topage+long && i > topage-long || i==1 || i==TotalPage){ 104if (topage==i) 105{document.write(" <b>"+ i +"</b> ");}else{document.write(" <a href=?pageno="+i+"&"+url+">"+ i +"</a> ");} 106} 107} 108//document.write("]"); 109} 110 111function con(msg,url) 112{ 113if(confirm(msg)) 114window.location=url; 115} 116function JHshNumberText() 117{ 118if ( !(((window.event.keyCode >= 48) && (window.event.keyCode <= 57)) 119|| (window.event.keyCode == 13) || (window.event.keyCode == 46) 120|| (window.event.keyCode == 45))) 121{ 122window.event.keyCode = 0 ; 123} 124} 125function selCount(nm) 126{ 127var ret =0; 128for(i=0;i<document.all.length;i++) 129{ 130if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0) 131{ 132if(document.all.item(i).checked) 133{ 134ret++; 135} 136} 137} 138return ret; 139} 140 141function selall(nm) 142{ 143for(i=0;i<document.all.length;i++) 144{ 145if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0) 146{ 147document.all.item(i).checked=true; 148} 149} 150} 151function open_new(url,name,width,height) 152{ 153window.open(url,name,'width='+width+',height='+height+', location=no,menubar=no,resizable=yes,screenX=175,screenY=175,status=no,scrollbars=auto,toolbar=no'); 154} 155 156function clearall(nm) 157{ 158for(i=0;i<document.all.length;i++) 159{ 160if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0) 161{ 162document.all.item(i).checked=false; 163} 164} 165} 166 167function selectchk(nmn,url) 168{ 169 var s=false; 170 var n=0 171 strid=""; 172for(i=0;i<document.all.length;i++) 173{ 174if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nmn)>=0) 175{ 176 if(document.all.item(i).checked==true) 177 { 178 n=n+1; 179 //alert(document.all.item(i).value); 180 s=true; 181 // alert(document.all.item(i).name); 182 s=true; 183 if(n==1) 184 { 185 strid=document.all.item(i).value; 186 } 187 else 188 { 189 strid=strid+","+document.all.item(i).value; 190 } 191 } 192} 193} 194if(!s) 195{ 196 alert('请选择要删除的内容.'); 197 return false; 198} 199if(confirm('确认删除选择的项')) 200{ 201 surl=url+"?id="+strid; 202 //alert(surl); 203window.location=surl; 204} 205} 206 207function fontZoom(size) 208{ 209 document.getElementById('fontzoom').style.fontSize=size+'px' 210} 211
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:星幻短信群发平台Web源码

- 中国技术论坛源码(仿Discuz)

- 在线订票系统源码(毕业设计)

- 中文彩色验证码实现(变形\噪..

- Ajax无刷新中文验证码

- 勤网爱问v2008学习版项目源码

- Yetanotherforum论坛1.9.1多..

- 青岛分类信息网源码

- 简单新闻管理系统(Access数据..

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号