Labels

Powered by Blogger.

Social Icons

Social Icons

Featured Posts


Text Widget

Saturday, February 8, 2014

Jwb No 2 UTS

 soal nomor 2 UTS praktikum web
pembuatan sebuah garis, dimana garis - garis tersebut berbentuk Vertikal.

<html>
<head>
</title> </title>
</head>
<body>
<script>
var i,j,dx;
dx=100;
document.write("<table><tr height=1000px>")
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 :



0 comments:

Post a Comment