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

📄 mgmtipfunc.js

📁 Filesystem for DSL-300T with MMC mod (must be extracted in the first primary partition, formatted in
💻 JS
字号:
<script>function uiDoOnLoad(){   jslSetValue("uiViewIPAddr","uiPostIPAddr");   jslSetValue("uiViewNetMask","uiPostNetMask");   jslSetValue("uiViewGateway","uiPostGateway");   jslSetValue("uiViewHostname","uiPostHostname");   jslSetValue("uiViewDomainname","uiPostDomainname");}function uiMgmtIpDoValidate(){  var message,value,count=0;  value = document.getElementById("uiPostIPAddr").value;  message = valDoValidateIpmod(value);  if(message!=null)   {   	erlDoAddError("bad","uiViewIPAddr","",value,message);  	count++;   }  value = document.getElementById("uiPostNetMask").value;  message = valDoValidateMask(value);  if(message!=null)   {   	erlDoAddError("bad","uiViewNetMask","",value,message);    	count++;   }  value = document.getElementById("uiPostGateway").value;    if(value!="")  {    message = (jslIsString("uiViewGateway")!=false)? valDoValidateGateway(value):valDoValidateGateway(value);    if(message!=true)     {     	erlDoAddError("bad","uiViewGateway","",value,message);     	count++;     }  }  value = document.getElementById("uiPostHostname").value;  if(value!="")  {    message = (jslIsString("uiViewHostname")!=false)? valDoValidateHostName(value): "";    if(message!=null)     {     	erlDoAddError("bad","uiViewHostname","",value,message);     	count++;     }  }  value = document.getElementById("uiPostDomainname").value;  if(value!="")  {    message = (jslIsString("uiViewDomainname")!=false)? valDoValidateHostName(value): "";    if(message!=null)     {     	erlDoAddError("bad","uiViewDomainname","",value,message);     	count++;     }   }  if(count!=0)   {  	message="IP Management";  	return false;  }  	  else    {   	message="";   	return true;   }   	}function uiDoValidate(){  var msg;  msg = uiMgmtIpDoValidate();  return msg;	}function uiDoSave(){  jslSetValue("uiPostIPAddr","uiViewIPAddr");  jslSetValue("uiPostNetMask","uiViewNetMask");  jslSetValue("uiPostGateway","uiViewGateway");  jslSetValue("uiPostHostname","uiViewHostname");  jslSetValue("uiPostDomainname","uiViewDomainname");    //inserted by Edward on 2004/01/14 to check network mask  if(doValidateMask(document.getElementById("uiViewNetMask").value,0)==false)     return;  //inserted by Edward on 2004/01/14 to check network mask     end    if(uiDoValidate()==true)  {  	jslFormSubmit("uiPostForm");  	setTimeout('document.location.href="http://"+document.getElementById("uiPostIPAddr").value+"/cgi-bin/webcm?getpage=../html/setup/index.htm"', 15000);  }	  	}function uiDoNextLoc(){   document.location.href="http://"+document.getElementById("uiPostIPAddr").value+"/cgi-bin/webcm?getpage=../html/setup/index.htm";}function uiDoCancel(){  document.location.href="../cgi-bin/webcm?getpage=../html/setup/index.htm";}</script>

⌨️ 快捷键说明

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