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

📄 site_char.js

📁 一、安装SQL数据库 1、 打开Microsoft SQL Server 企业管理器 2、 建立一个新的数据库
💻 JS
字号:
function ADInfoList()
{
	this.ADCode=new Array();
	this.ADUrl=new Array();
	this.ADMode=new Array();
	this.ADType=new Array();
	this.ADText=new Array();
	this.ADWidth=new Array();
	this.ADHeight=new Array();
}

//加入收藏
function AddFav()
{
	window.external.addFavorite(window.document.location.href,document.title);
}

function Trim(strValue)
{
	return strValue.replace(/^\s*|\s*$/g,"");
}

function SetCookie(sName, sValue)
{
  document.cookie = sName + "=" + escape(sValue);
}

function GetCookie(sName)
{
  var aCookie = document.cookie.split(";");
  for (var i=0; i < aCookie.length; i++)
  {
    var aCrumb = aCookie[i].split("=");
    if (sName == Trim(aCrumb[0])) 
    {
    	return unescape(aCrumb[1]);
    }
  }

  return null;
}

function Request(strName)
{
	var strHref = window.document.location.href;
	var intPos = strHref.indexOf("?");
	var strRight = strHref.substr(intPos + 1);

	var arrTmp = strRight.split("&");
	for(var i = 0; i < arrTmp.length; i++)
	{
		var arrTemp = arrTmp[i].split("=");

		if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1];
	}
	return "";
}

function SelectAll(form) {
	for (var i=0; i < document.forms[0].elements.length; i++)
		document.forms[0].elements[i].checked = !document.forms[0].elements[i].checked;
}

function bbimg(o){
	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
	return false;
}

function getByID(StringID)
{
	try
	{
		return document.getElementById(StringID);
	}
	catch (e){}	
}
//广告区函数群
//--------------------------------
//广告相关定义如下
//ADList_0.ADCode[k] = 此为广告代码
//ADList_0.ADUrl[k]  = 广告连接
//ADList_0.ADMode[k] = 广告模式(图片=1,FLASH=2,HTML=3)
//ADList_0.ADType[k] = 广告类型
//ADList_0.ADText[k] = 广告说明
//ADList_0.ADWidth[k] = 广告宽度
//ADList_0.ADHeight[k] = 广告高度
//广告输出函数
function ShowAD(ADList)
{
	var thisads = ADList.ADType.length;
	var now = new Date()
	var sec = now.getSeconds()
	var k = sec % thisads;
	switch(ADList.ADMode[k]){
		case "1":	//图片广告
			document.write('<div align="center">');
			document.write('<a href=\"' + ADList.ADUrl[k] + '\" target=\"_blank\">');
			document.write('<img src=\"' + ADList.ADCode[k] + '\" width=')
			document.write(ADList.ADWidth[k] + ' height=' + ADList.ADHeight[k] + ' ');
			document.write('alt=\"' + ADList.ADText[k] + '\" border=0 valign=\"absmiddle\"></a>');
			document.write('</div>');
			break;
		case "2":	//FLASH广告
			document.write('<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=\"'+ADList.ADWidth[k]+'"\" height=\"'+ADList.ADHeight[k]+'\"><PARAM NAME=movie VALUE=\"'+ADList.ADCode[k]+'\"><PARAM NAME=quality VALUE=high><embed src=\"'+ADList.ADCode[k]+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+ADList.ADWidth[k]+'\" height=\"'+ADList.ADHeight[k]+'\">'+ADList.ADCode[k]+'</embed></OBJECT>');
			break;
		case "3":	//HTML广告
			document.write(ADList.ADCode[k]);
			break;
		case "4":	//漂浮广告
			document.write('<a href="' + ADList.ADUrl[k] + '" target="_blank" onmouseover=stopme("MoveAD"); onmouseout=movechip("MoveAD");>');
			document.write('<img src="' + ADList.ADCode[k] + '" border="0" width="'+ ADList.ADWidth[k] + '" height="' + ADList.ADHeight[k] + '" alt=' + ADList.ADText[k] + '></a>');
			break;
	}
}

//检查登陆表单
function CheckLogin(form){
	if (form.UserName.value==""){
		alert("请输入用户名");
		form.UserName.focus();
		return false;
	}
	if (form.PassWord.value==""){
		alert("请输入用户密码");
		form.PassWord.focus();
		return false;
	}
}

function openWindow(url, width, height){
	var Win = window.open(url,"openWin",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=yes' );
}

//漂浮广告部分
var brOK=false;
var mie=false;
var vmin=2;
var vmax=5;
var vr=3;
var timer1;
var MoveAD;

function movechip(chipname){
	if(brOK){
		eval("chip="+chipname);
		if(!mie){
			pageX=window.pageXOffset;
			pageW=window.innerWidth;
			pageY=window.pageYOffset;
			pageH=window.innerHeight;
		}else{
			pageX=window.document.body.scrollLeft;
			pageW=window.document.body.offsetWidth-8;
			pageY=window.document.body.scrollTop;
			pageH=window.document.body.offsetHeight;
		}
		chip.xx=chip.xx+chip.vx;
		chip.yy=chip.yy+chip.vy;
		chip.vx+=vr*(Math.random()-0.5);
		chip.vy+=vr*(Math.random()-0.5);
		if(chip.vx>(vmax+vmin))  chip.vx=(vmax+vmin)*2-chip.vx;
		if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
		if(chip.vy>(vmax+vmin))  chip.vy=(vmax+vmin)*2-chip.vy;
		if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;
		if(chip.xx<=pageX){
			chip.xx=pageX;
			chip.vx=vmin+vmax*Math.random();
		}
		if(chip.xx>=pageX+pageW-chip.w){
			chip.xx=pageX+pageW-chip.w;
			chip.vx=-vmin-vmax*Math.random();
		}
		if(chip.xx>=680){
			chip.xx=chip.xx-20;
			chip.vx=-vmin-vmax*Math.random();
		}
		if(chip.yy<=pageY){
			chip.yy=pageY;
			chip.vy=vmin+vmax*Math.random();
		}
		if(chip.yy>=pageY+pageH-chip.h){
			chip.yy=pageY+pageH-chip.h;
			chip.vy=-vmin-vmax*Math.random();
		}
		if(!mie){
			eval('document.'+chip.named+'.top ='+chip.yy);
			eval('document.'+chip.named+'.left='+chip.xx);
		}else{
			eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
			eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);
		}
		chip.timer1=setTimeout("movechip('"+chip.named+"')",80);
	}
}

function stopme(chipname){
	if(brOK){
		eval("chip="+chipname);
		if(chip.timer1!=null){
			clearTimeout(chip.timer1)
		}
	}
}

function MoveAD(){
	if(navigator.appName.indexOf("Internet Explorer")!=-1){
		if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled();mie=true;
	}
	if(navigator.appName.indexOf("Netscape")!=-1){
		if(parseInt(navigator.appVersion.substring(0,1))>=4) brOK=navigator.javaEnabled();
	}
	MoveAD.named="MoveAD";
	MoveAD.vx=vmin+vmax*Math.random();
	MoveAD.vy=vmin+vmax*Math.random();
	MoveAD.w=1;
	MoveAD.h=1;
	MoveAD.xx=0;
	MoveAD.yy=0;
	MoveAD.timer1=null;
	movechip("MoveAD");
}

//漂浮广告结束
//document.write("<Script Language=\"JavaScript\" Src=\"JS/AD_Data.JS\"></Script>");

⌨️ 快捷键说明

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