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

📄 checkall.js

📁 天空音乐程序 V5.0 商业版程序安装说明: (申明:请尊重天空音乐程序作者的劳动成果
💻 JS
字号:
/*
 * Created on 2006-10-25
 * Last modified on 2006-10-25
 * Powered by www.yakec.com
 */
function prtie(txt){
	parent.frames.window.status=txt;
	parent.frames.document.title=txt;
}
function prtie2(txt2){
	window.status=txt2;
}


function tabline(w,h,c){
	document.write("<table  bgcolor=\"" + c + "\" width=\""+ w + "\" height=\"" + h + "\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr><td></td></tr></table>");
	}


var DHTML = (document.getElementById || document.all || document.layers);    
var preImages = new Array(); 

function loadImages() {  
	for (i = 0; i < imgLen; i++) {  
		preImages[i] = new Image();  
		preImages[i].src = yourImages[i]; 
	}  
}  
function gv_getObj(name) {    
	if (document.getElementById) {    
		return document.getElementById(name).style;    
	} else if (document.all) {   
		return document.all[name].style;    
	} else if (document.layers) {    
		return document.layers[name];    
	}    
}    

function gv_showWait(div,flag) {    
	if (!DHTML) return;    
		var x = gv_getObj(div);    
		x.visibility = (flag) ? 'visible':'hidden';
		if(! document.getElementById) {  
			if(document.layers) {  
				x.left=280/2;  
			}  
		}  

	return true;    
} 


function checkAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if (e.name != 'chkall')
		e.checked = form.chkall.checked;
	}
}


function checkall(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			e.checked = true;
	}
}

function unCheckall(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
			if (e.checked==false)
			{
				e.checked = true;
			}
			else
			{
				e.checked = false;
			}
	}
}

function list(){
	//window.open("about:blank","players","width=700,height=500,left=100,top=100, toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=1,copyhistory=no");
	window.open("about:blank","players");
}

function winpop(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ', left=300, top=200, resizable=1,scrollbars=yes,menubar=no,status=no' );
}

function playerPop(obj) {
    URL=obj.href;
    //window.open(URL,'c','width=700,height=500,top=100,scrollbars=0,resizable=1,scrollbars=yes');
   window.open(URL,'c');
    return false;
}

function openPop(obj, w, h, t, l) {
    URL=obj.href;
    window.open(URL,'',"width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",scrollbars=0,resizable=1,scrollbars=yes");
    return false;
}

function openPop2(url, w, h, t, l) {
    window.open(url,'',"width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",resizable=1,scrollbars=yes");
}

function openPop3(obj) {
   return  openPop(obj, 380, 200, 200, 80);
}

function openPop4(obj) {
   return  openPop(obj, 600, 420, 200, 80);
}

function openPop5(obj) {
   return  openPop(obj, 420, 300, 200, 80);
}

function gConfirm(txt, gUrl){
	isDel = confirm(txt);
	if(isDel){
		location.assign(gUrl);
	}	
}

/*提交表单*/
function postMsg(){
	var o=event.srcElement;
	o.gvSubmit.value="正在提交...";
	o.gvSubmit.disabled=true;
	o.gvBack.disabled=true;
}

/*提交表单*/
function postMsg2(){
	var o=event.srcElement;
	o.gvSubmit2.value="正在提交...";
	o.gvSubmit2.disabled=true;
}

/* this code powered by google */
var agt = navigator.userAgent.toLowerCase();
var is_op = (agt.indexOf("opera") != -1);
var is_ie = (agt.indexOf("msie") != -1) && document.all && !is_op;
var is_ie5 = (agt.indexOf("msie 5") != -1) && document.all && !is_op;
var is_mac = (agt.indexOf("mac") != -1);
var is_gk = (agt.indexOf("gecko") != -1);
var is_sf = (agt.indexOf("safari") != -1);

function CreateXmlHttpReq(handler) {
	var xmlhttp = null;
	if (is_ie) {
		/* Guaranteed to be ie5 or ie6 */
		var control = (is_ie5) ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP";
		try {
			xmlhttp = new ActiveXObject(control);
			xmlhttp.onreadystatechange = handler;
		} catch (ex) {
			/* TODO: better help message */
			 alert("You need to enable active scripting and activeX controls");  
		}
	} else {
		/* Mozilla */
		xmlhttp = new XMLHttpRequest();
		xmlhttp.onload = handler;
		xmlhttp.onerror = handler;
	}
	return xmlhttp;
}

/* XMLHttp send POST request */
function XmlHttpPOST(xmlhttp, url, data) {
  try {
    xmlhttp.open("POST", url, true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
    xmlhttp.send(data);
  } catch (ex) {
    alert("error:"+ex);
  }
}

/* XMLHttp send GEt request */
function XmlHttpGET(xmlhttp, url) {
  try {
    xmlhttp.open("GET", url, true);	
    xmlhttp.send(null);
  } catch (ex) {
    /* do nothing */
	alert("error:"+ex);
  }
}

function getElement(name) {
    return document.getElementById(name);
}

 
function queryString(item){  
       var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i"));
       return sValue?sValue[1]:sValue;
}  


function writeCookie(name, value, hours)
{
  var expire = "";
  if(hours != null) {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }

  document.cookie = name + "=" + escape(value)+ ";path=/" + expire;
}


function readCookie(name){
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0) { 
    offset = document.cookie.indexOf(search);
    if (offset != -1){ 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end));
    }
  }
  return cookieValue;
}

function doZoom(size){
	document.body.style.fontSize=size+'px';
	if(size==14){
		writeCookie("font",2,500);	
	}else if(size==12){
		writeCookie("font",1,500);		
	}	
}

function readFontCookie(){
	if(readCookie("font")=="1"){
		doZoom(12);	
	}else if(readCookie("font")=="2"){
		doZoom(14);
	}
}
function doFontSize(i){
	doZoom(i);
	if(readCookie("font")=="1"){
		getElement("dofont").innerHTML=("<span style=\"cursor:hand\" onclick=\"javascript:doFontSize(14);\">放大字体</span>");
	}else if(readCookie("font")=="2"){
		getElement("dofont").innerHTML=("<span style=\"cursor:hand\" onclick=\"javascript:doFontSize(12);\">缩小字体</span>");
	}else{
		getElement("dofont").innerHTML=("<span style=\"cursor:hand\" onclick=\"javascript:doFontSize(14);\">放大字体</span>");
	}
}


function songword(id)
{ 
window.open('/play/song_word.asp?id='+id,'musicword','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=300,height=400,top=10,left=10'); 
}
function lingdown(name){
window.open("http://219.133.55.164/mms/search/searchX.asp?uid=3548&keyword="+name+"");
}
function sendsong(name){
window.open("http://219.133.55.162/sg/send.asp?uid=3548&keyword="+name+"");
}
var IsLong=false;
function isLock(){
if (!IsLong){
   button1.innerHTML="...<a href=\"javascript:isLock();\"><font color=\"#888888\"><u>隐藏</u></font></a>";
   gecishow.innerHTML=geci.innerHTML;
   IsLong=true;
}else{
   button1.innerHTML="<a href=\"javascript:isLock();\"><font color=\"#888888\"><u>继续</u></font></a>";
   gecishow.innerHTML=geci.innerHTML.substr(0,250)+"...";
   IsLong=false;
}}

⌨️ 快捷键说明

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