⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 public.js

📁 短信平台 短信平台 短信平台
💻 JS
字号:
        function YuBank()
		{
		if(isNaN(document.Form2.v_amount2.value))
		{
		alert('交易价格必须为数字');
		return false;
		}
	   //银行网关页面----------------------------------------------
	    document.Form2.Submit2.disabled=true;
		document.Form2.action="https://www.cncard.net/purchase/getorder.asp";
		document.Form2.target="_top";
		document.Form2.submit();
		//-提交到个人数据库----------------------------------------
		document.Form2.action="ranpic.aspx?code=7";
		document.Form2.target="write_data";
		document.Form2.submit();
		
		}
		
		function open_new(t_url,t_name,t_width,t_height,socc)
{
//alert(t_name);
var windowX = (window.screen.width - 300) / 2 ;
var windowY = (window.screen.height - 200) / 2 ;
//newWin.moveTo(windowX,windowY);
if(socc == "yes")
{
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');

}
else
{
//window.open('saf.htm','asdf','height=100,widht=100')
//window.open(t_url,t_name,"height="+t_height+",width="+t_width+",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
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');
//alert(t_name+t_url+t_width+t_height);
}
}
		function NetBank()
		{
		
		if(isNaN(document.Form1.v_amount.value))
		{
		alert('交易价格必须为数字');
		return false;
		}
		document.getElementById("bmsg").style.display='';
		document.Form1.subb.disabled=true;
		//银行网关页面----------------------------------------------
		document.Form1.action="https://pay.chinabank.com.cn/select_bank";
		document.Form1.target="_top";
		document.Form1.submit();
		//-提交到个人数据库----------------------------------------
		//document.Form1.action="ranpic.aspx?code=7";
		//document.Form1.target="write_data";
		//document.Form1.submit();
	
		}

  function tr_click(sid,bgcolor,oldcolor)
  {
  var cur_color=document.getElementById(sid).bgColor;
  if(cur_color == bgcolor)
  {
  document.getElementById(sid).bgColor=oldcolor;
  }
  else
  {
  document.getElementById(sid).bgColor=bgcolor;
  }
  //alert(cur_color);
  //document.getElementById(sid).bgColor=="#ff6600";
  
  }
  function tr_moveover(sid,bgcolor,cmpcolor)
  {
  var cat=document.getElementById(sid).bgColor;
  if(cat!=cmpcolor)
  document.getElementById(sid).bgColor=bgcolor;
  }
  function tr_moveout(sid,outcolor,cmpcolor)
  {
  var c_co=document.getElementById(sid).bgColor;
  if(c_co!=cmpcolor)
  {
 //alert(outcolor);
// oldcolor='#343434';
   document.getElementById(sid).bgColor=outcolor;
  }
  }
function Spage(TotalPage,topage,url){

if (topage<6)
{long=11-topage;}
else
if (TotalPage-topage<6)
{long=10-(TotalPage-topage)}
else
{long=5;}
//alert(long);
//document.write("[");
for (var i=1; i <= TotalPage; i++) {
if (i < topage+long && i > topage-long || i==1 || i==TotalPage){
if (topage==i)
{document.write(" <b>"+ i +"</b> ");}else{document.write(" <a href=?pageno="+i+"&"+url+">"+ i +"</a> ");}
}
}
//document.write("]");
}

function con(msg,url)
{
if(confirm(msg))
window.location=url;
}
function JHshNumberText()
{
if ( !(((window.event.keyCode >= 48) && (window.event.keyCode <= 57)) 
|| (window.event.keyCode == 13) || (window.event.keyCode == 46) 
|| (window.event.keyCode == 45)))
{
window.event.keyCode = 0 ;
}
}
function selCount(nm)
{
var ret =0;
for(i=0;i<document.all.length;i++)
{
if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0)
{
if(document.all.item(i).checked)
{
ret++;
}
}
}
return ret;
}

function selall(nm)
{
for(i=0;i<document.all.length;i++)
{
if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0)
{
document.all.item(i).checked=true;
}
}
}
function open_new(url,name,width,height)
{
window.open(url,name,'width='+width+',height='+height+', location=no,menubar=no,resizable=yes,screenX=175,screenY=175,status=no,scrollbars=auto,toolbar=no');
}

function clearall(nm)
{
for(i=0;i<document.all.length;i++)
{
if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nm)>=0)
{
document.all.item(i).checked=false;
}
}
}

function selectchk(nmn,url)
{
 var s=false;
 var n=0
 strid="";
for(i=0;i<document.all.length;i++)
{ 
if(document.all.item(i).type=="checkbox" && document.all.item(i).name.indexOf(nmn)>=0)
{ 
	if(document.all.item(i).checked==true)
	{
		n=n+1;
		//alert(document.all.item(i).value);
		s=true;
		//	alert(document.all.item(i).name);
		s=true;
		if(n==1)
		{
			strid=document.all.item(i).value;
			}
		else
		{
			strid=strid+","+document.all.item(i).value;
			}
	}
}
}
if(!s)
{
	alert('请选择要删除的内容.');
     return false;
}
if(confirm('确认删除选择的项'))
{
	surl=url+"?id="+strid;
	//alert(surl);
window.location=surl;
}
}

function fontZoom(size)
{
	document.getElementById('fontzoom').style.fontSize=size+'px'
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -