<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<script src="js/mui.min.js"></script>
<link href="http://ask.dcloud.net.cn/css/mui.min.css" rel="stylesheet"/>
<script type="text/javascript" charset="utf-8">
mui.init();
</script>
<script>
function getdizhi()
{
var micomosid = document.getElementById("mosip").value;
var exp = new Date();
exp.setTime(exp.getTime() 30 24 60 60 1000);
document.cookie = "mico_cook=" micomosid ";expires=" exp.toGMTString() ";path=/";
window.location.href="http://" micomosid ":81/index.asp";
}
window.onload=function()
{
if (readcookie("mico_cook"))
{
document.getElementById("mosip").value = readcookie("mico_cook");
}
}
var mycookie = document.cookie;
function readcookie(name)
{
var start1 = mycookie.indexOf(name "=");
if (start1== -1)
alert("请输入服务器IP1");
else
{
start=mycookie.indexOf("=",start1) 1;
var end = mycookie.indexOf(";",start);
if (end==-1)
{
end=mycookie.length;}
var value=unescape(mycookie.substring(start,end));
if (value==null)
{alert("请输入服务器IP2");}
else
{return value;}
}
}
</script>
</head>
<body>
<table width="100%">
<tr height="40">
<td align="center"> </td>
</tr>
<tr height="40">
<td align="center"><img src="logo.png" border="0" width="32" height="32"></td>
</tr>
<tr height="40">
<td align="center"><font color="#666666">服务器LAN IP:</font></td>
</tr>
<tr height="40">
<td align="center"><input name="mosip" id="mosip" type="text" value="" style= "width:160px; height:32px; font-size:20px; color:#666666" /></td>
</tr>
<tr height="40">
<td align="center"><input type="button" value="进 入" onClick="getdizhi()" style= "width:160px; height:32px;" /></td>
</tr>
<tr height="40">
<td align="center"><font color="#666666"> </td>
</tr>
<tr height="40">
<td align="center"><font color="#666666">版权所有</td>
</tr>
</table>
</body>
</html>
3 个评论
要回复文章请先登录或注册
4***@qq.com
5***@qq.com
f***@126.com (作者)