<html>
<head>
<meta charset="utf-8" />
<title>IP</title>
<style type="text/css">
body { background:white;
color:black; }
body, p, td, a { font:14px Arial; }
p { text-align:center; }
table { border-collapse:collapse;
margin:auto; }
td { border:1px solid lightgrey;
padding:3px; }
a:link, a:active, a:visited { color:blue;
text-decoration:none; }
a:hover { color:red; }
</style>
<script type="text/javascript">
var list = new Array("1.110.248.0/24",
"209.116.116.200/50",
"93.23.23.0/24");
var ip, part, position, min, max, main, count, total;
document.write("<p>IP</p>");
document.write("<p><table><tr>");
total=0;
for (ip in list)
{ part = list[ip].split(".");
position = part[3].indexOf("/");
min = parseInt(part[3].substr(0, position));
max = parseInt(part[3].substr(position + 1));
main = part[0] + "." + part[1] + "." + part[2] + ".";
for (count = min; count <= max; count++)
{ document.write("<td><a href='http://" + main + count + "' target='_blank'>" + main + count + "</a></td>");
total++;
if (total % 10 == 0)
document.write("</tr><tr>"); } }
document.write("</tr></table></p>");
document.write("<p>Total " + total + "</p>");
</script>
</html>
![](http://imgsrc.baidu.com/forum/w%3D580/sign=b9625cea8594a4c20a23e7233ef61bac/7a9703f7905298221de48426d5ca7bcb0846d4b0.jpg)
为何209.116.116.200/50段无法显示
<head>
<meta charset="utf-8" />
<title>IP</title>
<style type="text/css">
body { background:white;
color:black; }
body, p, td, a { font:14px Arial; }
p { text-align:center; }
table { border-collapse:collapse;
margin:auto; }
td { border:1px solid lightgrey;
padding:3px; }
a:link, a:active, a:visited { color:blue;
text-decoration:none; }
a:hover { color:red; }
</style>
<script type="text/javascript">
var list = new Array("1.110.248.0/24",
"209.116.116.200/50",
"93.23.23.0/24");
var ip, part, position, min, max, main, count, total;
document.write("<p>IP</p>");
document.write("<p><table><tr>");
total=0;
for (ip in list)
{ part = list[ip].split(".");
position = part[3].indexOf("/");
min = parseInt(part[3].substr(0, position));
max = parseInt(part[3].substr(position + 1));
main = part[0] + "." + part[1] + "." + part[2] + ".";
for (count = min; count <= max; count++)
{ document.write("<td><a href='http://" + main + count + "' target='_blank'>" + main + count + "</a></td>");
total++;
if (total % 10 == 0)
document.write("</tr><tr>"); } }
document.write("</tr></table></p>");
document.write("<p>Total " + total + "</p>");
</script>
</html>
![](http://imgsrc.baidu.com/forum/w%3D580/sign=b9625cea8594a4c20a23e7233ef61bac/7a9703f7905298221de48426d5ca7bcb0846d4b0.jpg)
为何209.116.116.200/50段无法显示
![](http://imgsrc.baidu.com/forum/pic/item/4e9d057b02087bf484cd5081f0d3572c11dfcfb9.jpg?v=tbs)