<html>
<head>
<meta http-equiv="Content-Type" content="text/html"; charset="big5" />
<script language="javascript">
function cal(){
var z = n.in.value;
var s = "";
for(i = 0;i < z;i++){
for(j = 0;j < i;j++){
s += "●";
}
s += "</br>";
}
document.write(s);
}
function focus(){
alert("123");
}
</script>
</head>
<body>
<form name = "n">
輸入:<input type="Text" name="in" onfocus="focus()"><p>
<input type=button value="送出" Onclick="cal();">
</form>
</body>
</html>
留言
張貼留言