作者shadow10 (天我被捲毛淹沒了)
看板NTUBA95study
標題今天上計中順便完成的...
時間Fri Jan 3 11:27:52 2003
<script>
x=prompt("enter number",10)
z=(x*2)-1
v=z
m=1
document.writeln("<center>")
for(j=0;j<x;j++)
{
document.writeln("<font color='red'>")
for(i=0;i<m;i++)
{
document.writeln("*")
}
document.writeln("</font>")
for(i=0;i<z;i++)
{
document.writeln("o")
}
document.writeln("<font color='red'>")
for(i=0;i<m;i++)
{
document.writeln("*")
}
document.writeln("</font>")
z=z-2
m=m+2;
document.writeln("<br>")
}
for(j=0;j<x;j++)
{
document.writeln("<font color='red'>")
document.writeln("*")
document.writeln("</font>")
for(i=0;i<v;i++)
{
document.writeln("o")
}
document.writeln("<font color='red'>")
document.writeln("*")
document.writeln("</font>")
document.writeln("</br>")
}
document.write("</center>")
</script>
<html>
<body bgcolor="black">
</body>
</html>
--
我喜歡做我想做的事
但是如果我沒有機會
我會試著去喜歡上我現在在做的事
~~~~我的哲學 ==> 生活以享受為最高目的
--
※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw)
◆ From: 140.112.7.59
→ stoneaq:真的可以照抄嗎..... 推 210.58.182.10 01/03
→ Aone:三個字...."看不懂"....>< 推 218.160.29.23 01/03