Hi,
ich wüsste gerne, was ich in eine HTML-Datei reinschreiben muss, damit diese Datei einen Button auf einer Page drückt! Es geht um den Disconnect-Button von meinem Router!
Hier mal der Quelltext:
<html>
<head>
<title>PPPoE Status</title>
<meta http-equiv=refresh>
<link rel="stylesheet" href="form.css">
<META content=text/html;charset=iso-8859-1 http-equiv=content-type>
<META http-equiv='Pragma' CONTENT='no-cache'>
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<!--<style type='text/css'></style>//-->
<script language=JavaScript>
function isIE(){
var browser = new Object();
browser.version = parseInt(navigator.appVersion);
browser.isNs = false;
browser.isIe = false;
if(navigator.appName.indexOf("Netscape") != -1)
browser.isNs = true;
else if(navigator.appName.indexOf("Microsoft") != -1)
browser.isIe = true;
if(browser.isNs)
return false;
else if (browser.isIe)
return true;
}
function countTime(){
window.focus();
var t=document.forms[0].connTime.value;
var s=document.forms[0].connStatus.value;
var g=document.forms[0].getIP.value;
timeString='';
if((s != 'Connected') && (g != 'OK')){
window.setTimeout('Fresh()',5000);
}
if(s == 'Connected')
window.setTimeout('Fresh()',60000);
}
function pppoeAction(F,I) {
d =parseInt(I.value, 10);
F.pppoeAct.value = I;
F.submit();
}
function Fresh() {
parent.location = "pppoestatus.htm";
}
</script>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text=black onLoad="countTime()">
<center><br>
<form method="post" action="/post-query">
<input type=hidden name="Load" value="Q">
<FONT face="Arial, Helvetica, sans-serif" size=3><B></B></FONT>
<table width=100% border=1 cellspacing=1 cellpadding=5>
<tr>
<td><FONT face="Arial, Helvetica, sans-serif" size=2><B>Connection time</B></FONT></td>
<td><FONT face="Arial, Helvetica, sans-serif" size=2>
00:29:52
</FONT></td>
</tr>
<tr>
<td><FONT face="Arial, Helvetica, sans-serif" size=2><B>Connecting to server</B></FONT></td>
<td><FONT face="Arial, Helvetica, sans-serif" size=2>OK</FONT></td>
</tr>
<tr>
<td><FONT face="Arial, Helvetica, sans-serif" size=2><B>Negotiation</B></FONT></td>
<td><FONT face="Arial, Helvetica, sans-serif" size=2>OK</FONT></td>
</tr>
<tr>
<td><FONT face="Arial, Helvetica, sans-serif" size=2><B>Authentication</B></FONT></td>
<td><FONT face="Arial, Helvetica, sans-serif" size=2>OK</FONT></td>
</tr>
<tr>
<td><FONT face="Arial, Helvetica, sans-serif" size=2><B>Getting IP address</B></FONT></td>
<td><FONT face="Arial, Helvetica, sans-serif" size=2>OK</FONT></td>
</tr>
<input type=hidden name=connTime value=00:29:52>
<input type=hidden name=connStatus value=Connected>
<input type=hidden name=getIP value=OK>
</table>
<p>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=250>
<TBODY>
<TR>
<input type=hidden name=pppoeAct value=0>
<TD align="center">
<input type=button value=' Connect ' onClick='pppoeAction(this.form,1)'>
<input type=button value=' Disconnect ' onClick='pppoeAction(this.form,2)'>
</TD>
</TR>
</TBODY></TABLE>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr width="100%"><td>
<img src="img/liteblue.gif" width="100%" height="2" border="0">
<center>
<input type=button name="close" value="Close Window" onclick="window.close();">
</center>
</td></tr>
<input type=hidden name="Button" value="Apply">
</table>
</form>
</center>
</body>
</html>
Der Button Disconnect soll gedrückt werden.
Ich hoffe hier kann mir jemand helfen.
MfG
Jusher