减小字体 增大字体
] 源码如下----------------------------------------------------------<html><head><meta http-equiv="Content-Language" content="zh-cn"><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><meta name="ProgId" content="FrontPage.Editor.Document"><title>得到所有链接-www.51windows.Net</title></head><body><script language="JavaScript1.2"><!--function extractlinks(){var links=document.all.tags("A")var total=links.lengthvar win2=window.open("","","menubar,scrollbars,toolbar")win2.document.write("<font size='2'>一共有"+total+"个连接</font><br>")for (i=0;i<total;i++){win2.document.write("<font size='2'>"+links[i].outerHTML+"</font><br>")}}//--></script><p><a href="http://www.51windows.com">http://www.51windows.com</a><p><a href="http://www.hconline.com.cn">http://www.hconline.com.cn</a></p><p><input type="button" onClick="extractlinks()" value="显示所有的连接"></p></body></html>
[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]