Pages

Sunday, 9 February 2014

Pertemuan WEB X

                                 PERTEMUAN X

MATERI  : - Menggunakan Dreamwaever

 Contoh: membuat output seperti dibawah ini:


Caranya :

1. 
Aktifkan macromedia dreamwever 8

      - start
      - all programs
      - macromedia
      - macromedia dreamweacer 8
2.   Ketikkan
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org  
        /TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
         <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
              <title>Untitled Document</title>
            <style>
                h1{ 
                     font-family : monotype corsiva;
                     font-size     : 24pt;
                 }
          </style>
             </head>

               <body bgcolor=black>
                   <table width=75% align=center>
                  <tr>
                       <td align=center>
                     <script>
                           var A,i;
                               A=1;
                                 for (i=1;i<=20;i++)
                        {
                             for (j=1;j<=A;j++)
                         {
                               if (j % 2 == 0)
                          {
                               document.write("<blink><font color=yellow>*
                                 </font></blink>");
                           }
                              else
                            {
                               document.write("<font color=blue>*</font>");
                             }
                           }
                                 A=A+2;
                                   document.write("<BR>");
                            }
                              </script>
                                </td>
                                   </tr>
                                 <tr>
                                   <td align="center">
                                      <script>
                                         var i,j;
                                           for (i=1;i<=7;i++)
                                              {
                                                 for (j=1;j<=3;j++)
                                               {
                                                  document.write("<font color=green>*
                                                       </font>");
                                                }
                                                   document.write("<BR>");
                                                   }
                                         </script>
                                           </td>
                                         </tr>
                                             <tr>
          <td align=center bgcolor=yellow><h1>Merry Christmas 25 Desember 2013
                       And Happy New Year 1 Januari 2014</h1></td>
               </tr>
                  </table>
                      </body>
                      </html>


3.    Simpan kode dengan nama js1.html
4.   
Aktifkan web browser

5.    
Buka file js1.html dari web browser

No comments :

Post a Comment