温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:星幻短信群发平台Web源码
当前文件路径:XingHuanWebSms/js/public.js

1function 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); 23
var windowX = (window.screen.width - 300) / 2 ; 24
var windowY = (window.screen.height - 200) / 2 ; 25
//newWin.moveTo(windowX,windowY); 26
if(socc == "yes") 27
{ 28
window.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
} 31
else 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"); 35
window.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
} 91
function Spage(TotalPage,topage,url){ 92
93
if (topage<6) 94
{long=11-topage;} 95
else 96
if (TotalPage-topage<6) 97
{long=10-(TotalPage-topage)} 98
else 99
{long=5;} 100
//alert(long); 101
//document.write("["); 102
for (var i=1; i <= TotalPage; i++) { 103
if (i < topage+long && i > topage-long || i==1 || i==TotalPage){ 104
if (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
111
function con(msg,url) 112
{ 113
if(confirm(msg)) 114
window.location=url; 115
} 116
function JHshNumberText() 117
{ 118
if ( !(((window.event.keyCode >= 48) && (window.event.keyCode <= 57)) 119
|| (window.event.keyCode == 13) || (window.event.keyCode == 46) 120
|| (window.event.keyCode == 45))) 121
{ 122
window.event.keyCode = 0 ; 123
} 124
} 125
function selCount(nm) 126
{ 127
var ret =0; 128
for(i=0;i<document.all.length;i++) 129
{ 130
if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0) 131
{ 132
if(document.all.item(i).checked) 133
{ 134
ret++; 135
} 136
} 137
} 138
return ret; 139
} 140
141
function selall(nm) 142
{ 143
for(i=0;i<document.all.length;i++) 144
{ 145
if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0) 146
{ 147
document.all.item(i).checked=true; 148
} 149
} 150
} 151
function open_new(url,name,width,height) 152
{ 153
window.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
156
function clearall(nm) 157
{ 158
for(i=0;i<document.all.length;i++) 159
{ 160
if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0) 161
{ 162
document.all.item(i).checked=false; 163
} 164
} 165
} 166
167
function selectchk(nmn,url) 168
{ 169
var s=false; 170
var n=0 171
strid=""; 172
for(i=0;i<document.all.length;i++) 173
{ 174
if(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
} 194
if(!s) 195
{ 196
alert('请选择要删除的内容.'); 197
return false; 198
} 199
if(confirm('确认删除选择的项')) 200
{ 201
surl=url+"?id="+strid; 202
//alert(surl); 203
window.location=surl; 204
} 205
} 206
207
function fontZoom(size) 208
{ 209
document.getElementById('fontzoom').style.fontSize=size+'px' 210
} 211




}
}