*       ***     *****   ******* *********   *******     *****       ***         *  mau bikin kayak gini?, gampang kok lo ti...

bikin diamond lewat javascript

/
0 Comments
       *
      ***
    *****
  *******
*********
  *******
    *****
      ***
        *
 mau bikin kayak gini?, gampang kok
lo tinggal copas ni codding di bawah ini :
chekitdot !!!


<html>
<head>
<title>No 1</title>
</head>
<body>
<script type="text/javascript">
<!--
var bil= 5;
bil=parseInt(bil);

for(i=bil;i>0;i--){
for(j=1;j<=i-1;j++){
document.write('&nbsp&nbsp');
}

for(y=1;y<=bil-i+1;y++){
document.write('*');
}

for(l=1;l<=bil-i;l++){
document.write('*');
}
document.write('<br>');
}

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

{
for(j=1;j<=i;j++){
document.write('&nbsp&nbsp');
}

for(y=1;y<=bil-i;y++){
document.write('*');

}

for(l=1;l<bil-i;l++){
document.write('*');
}
document.write('<br>');
}B
//-->
</script>
</body>
</html>
 
 
kalo elo udah paham lo bisa ngerubah tu bentuk, lo coba dulu
tar gue kasih tutorial selanjutnya ya,,
ditunggu 


You may also like

No comments:

Total Pageviews

Powered by Blogger.