有没有什么函数或者命令可以控制路由器重新拨号么? 我最近需要编写一个可以根据情况自动换IP的软件,我的思路就是通过让路由器重新拨号来实现,请问有没有控制路由器断开并重新拨号的函数或者命令? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 以下是路由器自带的页面的一部分代码,不知道对这个问题有没有什么帮助。function preSubmit(f,idx) { var f=document.frmSetup; f.action.value=idx f.submit() ; }<SCRIPT> document.write("<TR><td >连接方式<td >"+ conType[conTypeIdx-1] ); if (conTypeIdx==2) { document.write("<td width=11% ><input type=button class=smallbutton value=' 释放 ' onclick=preSubmit(this.form,1);>"); document.write("<td width=19% ><input type=button class=smallbutton value=' 更新 ' onclick=preSubmit(this.form,2);>"); } else if (conTypeIdx == 3){ document.write("<TD width=11% ><input type=button class=smallbutton value=' 连接 ' onclick=preSubmit(this.form,3);>" ); document.write("<TD width=19% ><input type=button class=smallbutton value=' 断开 ' onclick=preSubmit(this.form,4);>" ); } else if (conTypeIdx == 4) { document.write("<TD width=11% ><input type=button class=smallbutton value=' 连接 ' onclick=preSubmit(this.form,5);>"); document.write("<TD width=19% ><input type=button class=smallbutton value=' 断开 ' onclick=preSubmit(this.form,6);>"); } else if (conTypeIdx == 5) { document.write("<TD width=11% ><input type=button class=smallbutton value=' 连接 ' onclick=preSubmit(this.form,7);>"); document.write("<TD width=19% ><input type=button class=smallbutton value=' 断开 ' onclick=preSubmit(this.form,8);>"); } else{ document.write("<td width=11% ><td width=19% >"); } </SCRIPT> 得到网页的document指针,然后访问javascript,通过document.Script http://topic.csdn.net/u/20070724/19/d92a69c7-b50a-4159-a366-62a78da3f0c4.html http://support.microsoft.com/kb/185127 控制Frame竖直滚动条的位置 socket通信的问题 我用STL和dll的问题 急!关于打印问题 请问华为面试一般会问些什么问题 极简单的问题,得到静态控件的客户区 请问如何改变view中输出字符的背景色? 在系统提供地诸多OCX控件中,有没有显示BMP图象地控件? MFC的COMBOBOX问题 C++ 使用COM如何控制已经打开的PPT文件播放、翻页? MFC怎样调试DLL MFC Class 继承再继承问题?
function preSubmit(f,idx) {
var f=document.frmSetup;
f.action.value=idx
f.submit() ;
}
<SCRIPT>
document.write("<TR><td >连接方式<td >"+ conType[conTypeIdx-1] );
if (conTypeIdx==2) {
document.write("<td width=11% ><input type=button class=smallbutton value=' 释放 ' onclick=preSubmit(this.form,1);>");
document.write("<td width=19% ><input type=button class=smallbutton value=' 更新 ' onclick=preSubmit(this.form,2);>");
}
else if (conTypeIdx == 3){
document.write("<TD width=11% ><input type=button class=smallbutton value=' 连接 ' onclick=preSubmit(this.form,3);>" );
document.write("<TD width=19% ><input type=button class=smallbutton value=' 断开 ' onclick=preSubmit(this.form,4);>" );
}
else if (conTypeIdx == 4) {
document.write("<TD width=11% ><input type=button class=smallbutton value=' 连接 ' onclick=preSubmit(this.form,5);>");
document.write("<TD width=19% ><input type=button class=smallbutton value=' 断开 ' onclick=preSubmit(this.form,6);>");
}
else if (conTypeIdx == 5) {
document.write("<TD width=11% ><input type=button class=smallbutton value=' 连接 ' onclick=preSubmit(this.form,7);>");
document.write("<TD width=19% ><input type=button class=smallbutton value=' 断开 ' onclick=preSubmit(this.form,8);>");
}
else{
document.write("<td width=11% ><td width=19% >");
}
</SCRIPT>