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

📄 new.js

📁 OCM12864 液晶屏开发,可以实现汉字读写
💻 JS
字号:
/*<meta http-equiv="Content-Type" content="text/html; charset=gb2312">*/
function $() {
  var elements = new Array();
  for (var i = 0; i < arguments.length; i++) {
    var element = arguments[i];
    if (typeof element == 'string')
	    element = document.getElementById(element);
    if (arguments.length == 1)  
	    return element;
    elements.push(element);
  }
  return elements;
}


function doClick(o)
{
	 o.className="t1";
	 for(var i=1;i<=7;i++){
	    id ="t"+i;
	    j = $(id);
	    e = $("p"+i);
	     if(id != o.id){
		    if(j.className!="t2"){j.className="t2";e.className = "dss";}}
	        else{e.className = "iss";}
	 }
}


function gogo()
{  
	if (navigator.appName == "Microsoft Internet Explorer" ) 
	{strs=document.all.key.value}
    else if (navigator.appName == "Netscape")
	{strs=key.value}
	if(strs=="" || strs.length<2){alert('请输入查询关键词')}
	else{window.location.href="/Technic/search.asp?k="+strs}
}


function chagethis(o){
	p = $( "d" + o );
	if(	p.className=="dis-showtemp") {p.className="is-showtemp";}
	else{p.className="dis-showtemp";}
	}
	
function do_tong()
  {document.write('<SCRIPT language=javascript src="http://www.icgle.net/file/asp/LOGIN.js"><\/SCRIPT>')
   document.write('<SCRIPT language=javascript src="file/asp/ad.js"><\/SCRIPT>')
  }

function do_tou()
  {
	for(var i=1; i<=7; i++)
	  {
		  $('t'+i).className    ="t2"; 
		  $('p'+i).className    ="dss"; 
		  $('t'+i).onmouseover  =new Function('doClick( $("t'+i+'") )'); 
	   }
  }
  
function doshow(qqa)
{
	if( $('m'+qqa).className=='dis-showtemp' )
	  { $('m'+qqa).className='b17' }
	else
	  { $('m'+qqa).className='dis-showtemp' }	   
}

function s_i()
{
   do_tou();
   $('t1').className    ="t1" ;
   $('p1').className    ="iss";
   do_tong();
 }

function s_b()
{
   do_tou();
   $('t'+iijj).className    ="t1"; 
   $('p'+iijj).className    ="iss";
   for(i=1; i<=ii; i++)
     {
       $('s'+i).className    ="b11"; 
	   $('s'+i).onclick      =new Function('doshow( "'+i+'" );return false'); 
       $('m'+i).className    ="dis-showtemp"; 
	 }
   do_tong();
   for(i=1; i<=4; i++){$('m'+i).className ="b17"}   
	 
}

function s_t()
{
   do_tou();
   $('t'+iijj).className    ="t1"; 
   $('p'+iijj).className    ="iss";
   
   for(i=1; i<=ii; i++)
     {
       $('s'+i).className    ="b11"; 
	   $('s'+i).onclick      =new Function('doshow( "'+i+'" );return false'); 
       $('m'+i).className    ="dis-showtemp"; 
	 }
   for(i=1; i<=4; i++){$('m'+i).className ="b17"}   
	 
   do_tong(); 
}

function s_s()
{  
   do_tou();
    $('t2').className    ="t1"; 
    $('p2').className    ="iss";
	
   for(i=1; i<=ii; i++)
     {
	   $('y'+i).onclick      =new Function('chagethis( "'+i+'" );return false'); 
       $('y'+i).style.color  = "#CC9966"; 
       $('d'+i).className    ="dis-showtemp"; 
	   
	   if(i<=4)
	     {
          $('d'+i).className    ="is-showtemp"; 
			 }
	   
	 }	  
   do_tong(); 
}

function s_h()
{  
   do_tou();
   $('t'+ii).className    ="t1"; 
   $('p'+ii).className    ="iss";
   
   eval( "document.getElementById('right_1').innerHTML='<iframe id=iframe1 width=100 height=100 marginwidth=0 marginheight=0 frameborder=0 scrolling=no src=\"\" ></iframe>';" );
   eval( "document.getElementById('iframe1').height=\"160\";" );
   eval( "document.getElementById('iframe1').width=\"165\";" );
   eval( "document.getElementById('iframe1').src=\"../../../htm/htm/htm/ad.htm\";" );

	   $('hb1').onclick      =new Function('$("contentall").style.fontSize="16px";return false;'); 
	   $('hb2').onclick      =new Function('$("contentall").style.fontSize="14px";return false;'); 
	   $('hb3').onclick      =new Function('$("contentall").style.fontSize="12px";return false;'); 
   
   
   
   do_tong(); 
}



⌨️ 快捷键说明

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