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

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - 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");
}