Re: 我做的樹~大致上也都差不多^^"

看板NTUBA95study作者 (封B倒數9天)時間23年前 (2003/01/07 23:18), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
※ 引述《VicLee ( Je t'aime)》之銘言: : <html> : <head> : <title>聖誕樹</title> : </head> : <body> : <script language="JavaScript"><!-- : str=x=prompt("你要幾層聖誕樹?") : alert("你想要的是"+str+"層聖誕樹!!") : f=x*2 : y=1 : z=x-3 : e=f : document.write("<center>") : for (j=0;j<x;j++) : { : for (i=0;i<y;i++) : {document.write("*")} : for (i=0;i<f;i++) : {document.write("<font color='white'>") : document.write("o") : document.write("</font>")} : for (i=0;i<y;i++) : {document.write("*")} : f=f-2 ^^^^^^^ : y=y+2; ^^^^^^^ 請問這兩個是什麼意思阿?? 沒有好像整個就跑不出來ㄟ.. 我把他刪掉後..原來的聖誕樹的圖形就只剩兩根棒棒了.. 也就是 * * * * *** *** * * ***** ***** 變成 * * * * * * * * * * : document.write("<br>") : } : for (j=0;j<z;j++) : { document.write("*") : for (i=0;i<e;i++) : {document.write("<font color='white'>") : document.write("o") : document.write("</font>")} : document.write("*") : document.write("</br>") : } : document.write("</center>") : // --></script> : </body> : </html> 謝謝解答了說.. -- 什麼是快樂?? 快樂就是欣賞我身邊的每一個人的快樂~~ -- ※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw) ◆ From: 61.70.199.105
文章代碼(AID): #-6k-gUZ (NTUBA95study)
討論串 (同標題文章)
文章代碼(AID): #-6k-gUZ (NTUBA95study)