一个代码

上一篇 / 下一篇  2007-07-27 17:08:00

  • 文件版本: V1.0
  • 开发商: 本站原创
  • 文件来源: 本地
  • 界面语言: 简体中文
  • 授权方式: 免费
  • 运行平台: Win9X/Win2000/WinXP

<input type=text id=aa><input type=button ōnclick=a(aa.value)>
<scrīpt>
function a(n)
{
for(i=-n;i<=n;i++)
{
 for(j=1;j<=Math.abs(i);j++)
 document.write("&nbsp;");

 for(j=1;j<=n*2+1-Math.abs(i)*2;j++)
{
(j==1||j==n*2+1-Math.abs(i)*2)?document.write("*"):document.write("&nbsp;");
}
document.write("<br>");
}
}
</scrīpt>

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-12-05  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 5322
  • 日志数: 30
  • 文件数: 11
  • 建立时间: 2005-10-10
  • 更新时间: 2007-11-19

RSS订阅

Open Toolbar