惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - Kevin

换工作了,记录一下面试情况 打工的就是打工的! 超强的希捷硬盘 如何一次性取出每个类别下的前n条记录 在一个表里添加了一记录,怎样取得这条记录的id 发布程序到远程服务器 DNN所有表结构 web.config信息及RSA加密方式! vs2005调用js脚本方法总结 Using JavaScript to show the current time for the end user HtmlGenericControl操作meta标记 window2k3集成sp1光盘启动工具版 CodeSmith资源 Ajax程序设计入门 SQL Server端口更改后的数据库连接方式 windows2003server自带防火墙导致sql server2k无法访问,谁有好办法? 局域网访问access数据库 dreamweaver+asp+access+vss不该犯的错误 windows2k3server远程桌面连接,”终端服务器超出了最大允许连接数“的解决办法
华硕网站ajax应用分析-js脚本
Kevin · 2005-10-31 · via 博客园 - Kevin

页面
http://support.asus.com.cn/download/download.aspx?SLanguage=zh-cn

js脚本

function MM_findObj(n, d) {
  
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d
=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  
if(!&& d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() {
  
var i,p,v,obj,args=MM_showHideLayers.arguments;
  
for (i=0; i<(args.length-2); i+=3if ((obj=MM_findObj(args[i]))!=null{ v=args[i+2];
    
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility
=v; }

}

function MM_swapImgRestore() {
  
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
  
var d=document; if(d.images)if(!d.MM_p) d.MM_p=new Array();
    
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}

function MM_swapImage() {
  
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

      NN = (!document.all && document.getElementById);
      
      
function body_load() {
        document.getElementById(
"txt_search").onkeydown = txt_search_KeyDown;
        document.getElementById(
"ibtn_search").onclick = ibtn_search_Click;
        
        hide_loading();
      }

      
      
function txt_search_KeyDown(e) {
        
var keyCode;
        
        
if (NN)
          keyCode 
= e.keyCode;
        
else
          keyCode 
= event.keyCode;
        
        
if (keyCode == 13{
          ibtn_search_Click();
          
return false;
        }

      }

      
      
function ibtn_search_Click() {
        keyword 
= alltrim(document.getElementById("txt_search").value.toLowerCase());
        lang_id 
= document.getElementById("langNormal").value;
        
        
if (keyword == "")
          
return;
        
        show_loading();
        
        document.getElementById(
"ifr_user_left").src = "../search/search_left.aspx?SLanguage=" + lang_id + "&global=1";
        document.getElementById(
"ifr_user_right").src = "../search/search_right.aspx?keyword=" + escape(keyword) + "&SLanguage=" + lang_id;
      }

      
      
function alltrim() {
        
return arguments[0].replace(/(^ +)|+$)/g,'');
      }
 
      
      
function adjust_iframe_left_height(h) {
        
if (h==0)
          document.getElementById(
"ifr_user_left").src = document.getElementById("ifr_user_left").src;
          
        document.getElementById(
"ifr_user_left").style.height = h;
      }

      
      
function adjust_iframe_right_height(h) {
        
if (h==0)
          document.getElementById(
"ifr_user_right").src = document.getElementById("ifr_user_right").src;
          
        document.getElementById(
"ifr_user_right").style.height = h;
      }

      
      
function scroll_top() {
        window.scrollTo(
0,0);
      }

      
      
function body_resize() {
        
if (document.body.clientWidth>=778{
          nShift 
= 505;
          document.getElementById(
"contact").style.left = document.body.clientWidth - nShift;
          document.getElementById(
"search").style.left = document.body.clientWidth - nShift;
          document.getElementById(
"sitemap").style.left = document.body.clientWidth - nShift;
          document.getElementById(
"home").style.left = document.body.clientWidth - nShift;
          document.getElementById(
"home").style.left = document.body.clientWidth - nShift;
          document.getElementById(
"asus").style.left = document.body.clientWidth - nShift;
        }

        
else {
          nPlace 
= 270
          document.getElementById(
"contact").style.left = nPlace + 40;
          document.getElementById(
"search").style.left = nPlace + 40;
          document.getElementById(
"sitemap").style.left = nPlace + 40;
          document.getElementById(
"home").style.left = nPlace + 40;
          document.getElementById(
"home").style.left = nPlace + 40;
          document.getElementById(
"asus").style.left = nPlace + 40;
        }

      }

      
      
function show_loading() 
        IE 
= (document.all && navigator.userAgent.indexOf("Opera"== -1)
        
        
if (IE) {
          document.getElementById(
"loading").style.display = "inline";
          document.getElementById(
"loading").offsetHeight;
          document.getElementById(
"loading").style.pixelTop = (document.body.clientHeight/2)-(document.getElementById("loading").offsetHeight/2)+(document.body.scrollTop); 
          document.getElementById(
"loading").style.pixelLeft = (document.body.clientWidth/2)-(document.getElementById("loading").offsetWidth/2)+(document.body.scrollLeft); 
        }

      }
 
      
      
function hide_loading() {
        document.getElementById(
"loading").style.display = "none";
      }

      
      
function go(url) {
        show_loading();
        location.href 
= url;
      }

      
      
function replace(as,as_rex,as_out) {
        
var ls_rex;
        ls_rex 
= new RegExp(as_rex,"g");
        as 
= as.replace(ls_rex, as_out);
        
return as;
      }

      
      
function switch_lang(lang_id) {
        s 
= location.href;
        
        
if (s.indexOf(document.getElementById("langNormal").value) != -1)
          location.href 
= replace(s,document.getElementById("langNormal").value,lang_id);
        
else
          location.href 
= s + '?SLanguage=+ lang_id;
      }



skm_registerMenu('topmenu',new skm_styleInfo('','','','','','','','','','selectmenuitem'),new skm_styleInfo('','','','','','','','','',''),1,true);

function hide_loading() {
  
if (parent.document.getElementById("loading").style.display == "none")
    clearInterval(timerID);
  
else
    parent.hide_loading();
}


function parent_hide_loading() {
  
if (parent.parent.document.getElementById("loading").style.display == "none")
    clearInterval(timerID);
  
else
    parent.parent.hide_loading();
}

function go(url) {
  parent.show_loading();
  parent.document.getElementById(
"ifr_user_right").src = url;
}

var hld_model_keyword;
NN 
= (!document.all && document.getElementById);

function body_load() {
  document.getElementById(
"img_search_info").onclick = img_searach_info_click;
  document.getElementById(
"txt_keyword").onmouseover = txt_keyword_mouseover;
  document.getElementById(
"txt_keyword").onmouseout = txt_keyword_mouseout;
  document.getElementById(
"txt_keyword").onkeydown = txt_keyword_KeyDown;
  
  
if (NN)
    document.getElementById(
"ddl_dltype").style.width = 150;
  
  hld_model_keyword 
= document.getElementById("hld_model_keyword").value;
  document.getElementById(
"txt_keyword").value = document.getElementById("hld_model_keyword").value; 
  parent.adjust_iframe_left_height(document.body.scrollHeight);
}


function txt_keyword_KeyDown(e) {
  
var keyCode;
  
  
if (NN)
    keyCode 
= e.keyCode;
  
else
    keyCode 
= event.keyCode;
  
  
if (keyCode == 13{
    img_searach_info_click();
    
return false;
  }

}


function img_searach_info_click() {
  keyword 
= document.getElementById("txt_keyword").value;
  dltype 
= document.getElementById("ddl_dltype").value;
  
  
if (keyword == "" || keyword == hld_model_keyword)
    
return;
  
else {
    parent.show_loading();
    parent.document.getElementById(
"ifr_user_right").src = "../common/search_model.aspx?mode=1&model_name=" + keyword + "&type=" + dltype + "&SLanguage=" + document.getElementById("langNormal").value;
  }

}


function txt_keyword_mouseover() {
  o 
= document.getElementById("txt_keyword");
  
if (o.value == hld_model_keyword)
    o.value 
= "";
}


function txt_keyword_mouseout() {
  o 
= document.getElementById("txt_keyword");
  
if (o.value == "")
    o.value 
= document.getElementById("hld_model_keyword").value;
}

var timerID;
  
function body_load() 
  document.getElementById(
"btn_search").onclick = btn_search_click;
  
  document.getElementById(
"select1").value = "0";
  document.getElementById(
"select1").onchange = select1_change;
  document.getElementById(
"select2").onchange = select2_change;
  document.getElementById(
"select2")[0= new Option(document.getElementById("hld_select2_welcome").value,"0");
  document.getElementById(
"select3")[0= new Option(document.getElementById("hld_select3_welcome").value,"0");
    
  timerID 
= setInterval("hide_loading()",500);
          
  parent.adjust_iframe_right_height(document.body.scrollHeight);
}


function select1_change(){
  
if (document.getElementById("select1").value == "0"){
    document.getElementById(
"select2").innerHTML = "";
    document.getElementById(
"select2").add(new Option(document.getElementById("hld_select2_welcome").value,"0"));
    document.getElementById(
"select3").innerHTML = "";
    document.getElementById(
"select3").add(new Option(document.getElementById("hld_select3_welcome").value,"0"));
    
return;
  }

  
  parent.show_loading();
  setTimeout(
"get_select2()",500);
}


function get_select2() {
  xmlhttp 
= new ActiveXObject("Microsoft.XMLHTTP");
  xmlhttp.open(
"GET","../common/3combo_databind.aspx?workMode=0&select1_id=" + document.getElementById("select1").value + "&SLanguage=" + document.getElementById("langNormal").value,false);
  xmlhttp.send();
  
  xmldoc 
= new ActiveXObject("Microsoft.XMLDOM");
  xmldoc.loadXML(xmlhttp.responseText);
  
  document.getElementById(
"select2").innerHTML = "";
  document.getElementById(
"select2").add(new Option(document.getElementById("hld_select2_welcome").value,"0"));
  
  nodes 
= xmldoc.selectNodes("/NewDataSet/Table");
  
for(i=0; i<nodes.length; i++)
    document.getElementById(
"select2").add(new Option(nodes[i].childNodes(0).text,nodes[i].childNodes(1).text));
  
  document.getElementById(
"select3").innerHTML = "";
  document.getElementById(
"select3").add(new Option(document.getElementById("hld_select3_welcome").value,"0"));
  parent.hide_loading();
}


function select2_change() {
  
if (document.getElementById("select2").value == "0"){
    document.getElementById(
"select3").innerHTML = "";
    document.getElementById(
"select3").add(new Option(document.getElementById("hld_select3_welcome").value,"0"));
    
return;
  }

  
  parent.show_loading();
  setTimeout(
"get_select3()",500);
}


function get_select3() {
  xmlhttp 
= new ActiveXObject("Microsoft.XMLHTTP");
  xmlhttp.open(
"GET","../common/3combo_databind.aspx?workMode=0&select1_id=" + document.getElementById("select1").value + "&select2_id=" + document.getElementById("select2").value + "&SLanguage=" + document.getElementById("langNormal").value,false);
  xmlhttp.send();
  
  xmldoc 
= new ActiveXObject("Microsoft.XMLDOM");
  xmldoc.loadXML(xmlhttp.responseText);
  
  document.getElementById(
"select3").innerHTML = "";
  document.getElementById(
"select3").add(new Option(document.getElementById("hld_select3_welcome").value,"0"));
  
  nodes 
= xmldoc.selectNodes("/NewDataSet/Table");
  
for(i=0; i<nodes.length; i++)
    document.getElementById(
"select3").add(new Option(nodes[i].childNodes(0).text,nodes[i].childNodes(1).text));
  
  parent.hide_loading();
}


function btn_search_click() {
  select1_value 
= document.getElementById("select1").value;
    select2_value 
= document.getElementById("select2").value;
    select3_value 
= document.getElementById("select3").value;
    
    
if (select1_value == "0" && select2_value == "0" && select3_value == "0")
        
return;
    
    
if (select1_value != "0" && select2_value == "0" && select3_value == "0"{
      parent.show_loading();
      
      location.href 
= "model_list.aspx?product=" + select1_value + "&SLanguage=" + document.getElementById("langNormal").value;
      
return;
    }

    
    
if (select1_value != "0" && select2_value != "0" && select3_value == "0"{
      parent.show_loading();
      location.href 
= "model_list.aspx?product=" + select1_value + "&series=" + select2_value + "&SLanguage=" + document.getElementById("langNormal").value;
      
return;
    }

      
    model 
= document.getElementById("select3")[document.getElementById("select3").selectedIndex].text;  
  location.href 
= "download_item.aspx?product=" + select1_value + "&model=" + model + "&SLanguage=" + document.getElementById("langNormal").value;
}


function model_click() {
  parent.show_loading();
  
  
if (arguments.length == 2)
    location.href 
= "download_item.aspx?product=" + arguments[0+ "&model=" + arguments[1+ "&SLanguage=" + document.getElementById("langNormal").value;
  
else
    location.href 
= "download_item.aspx?product=" + arguments[0+ "&model=" + arguments[1+ "&f_name=" + arguments[2+ "&SLanguage=" + document.getElementById("langNormal").value;
}


function live_update_click() {
  parent.show_loading();
  
  
if (document.getElementById("sp_ocx").innerHTML == ""{
    document.getElementById(
"sp_ocx").innerHTML = ""asusTek_sysctrl\" codebase=\"../common/asusTek_sys_ctrl.cab#version=1,0,0,0\" height=\"0\" width=\"0\" data=\"data:application/x-oleobject;base64,xbhBDZklk0iBgwAZXsjV+QADAAAaAAAAGgAAAA==\" classid=\"CLSID:0D41B8C5-2599-4893-8183-00195EC8D5F9\">";
    chk_live_installed();
  }

  
else
    RunDetermineModel();
}


function chk_live_installed() {
  loaded 
= false;
  
  
try {
    
if (document.getElementById("asusTek_sysctrl").MB_Product)
      loaded 
= true;
  }

  
catch(e){}
  
  
if (loaded)
    RunDetermineModel();          
  
else
    location.href 
= "../common/nav_guide.aspx?mode=0&SLanguage=" + document.getElementById("langNormal").getAttribute("value");
}


function RunDetermineModel() {
  BIOSVersion 
= document.getElementById("asusTek_sysctrl").BIOS_SMBIOSBIOSVersion;
  MBProduct 
= document.getElementById("asusTek_sysctrl").MB_Product;
  
  
if (BIOSVersion == "" && MBProduct == ""){
    setTimeout(RunDetermineModel(),
1000);
    
return;
  }

  
  
// mode : 0 => download
  // mode : 1 => faq
  location.href = "../common/determine_model.aspx?mode=0&BIOSVersion=" + BIOSVersion + "&MBProduct=" + MBProduct + "&SLanguage=" + document.getElementById("langNormal").value;
}


function first_use_click() {
  parent.show_loading();

  location.href 
= "../common/nav_guide.aspx?mode=0&SLanguage=" + document.getElementById("langNormal").getAttribute("value");
}