Jumat, 07 Februari 2014

TUGAS PRAKTEK WEB NO 1

<html>

<head>

</title> </title>

</head>

<body>

<script>

var i,j,dx;

dx=100;

document.write("<table height=100%><tr height=100%>")

for(i=1;i<=10;i++)

{

document.write("<td><div style='width:3px;height:",dx,"% ;background-color:red;'></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");

// document.write("<hr width=",dx,"% >");

dx=dx-10;

}

document.write("</tr></table>")

</script>

</body>

</html>

Tidak ada komentar:

Posting Komentar