今天上計中順便完成的...
<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
推
推 210.58.182.10 01/03, , 1F
推 210.58.182.10 01/03, 1F
推
推 218.160.29.23 01/03, , 2F
推 218.160.29.23 01/03, 2F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):