Minggu, 09 Februari 2014

UAS no.1


<html>
<head>
</title> </title>
</head>
<body>
<script>
var i,j,dx;
dx=100;
document.write("<table><tr height=100px>")
for(i=1;i<=10;i++)
{
document.write("<td><div style='width:3px;height:",dx,"% ;background-color:#000000;'></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");
// document.write("<hr width=",dx,"% >");
dx=dx-10;
}
document.write("</tr></table>")
</script>
</body>
</html>


Hasil :



Tidak ada komentar: