H3LD3R

IF

May 15th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.34 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>Condição IF</title>
  6. <link href="css.css" rel="stylesheet" type="text/css" />
  7. </head>
  8.  
  9. <body>
  10. <div class="header">
  11.     <h1>TIS - JAVASCRIPT</h1>
  12. </div>
  13. <div class="wrapper">
  14. <div class="nav">
  15.     <a href="index.html"    class="buttons">HOME    </a>
  16.     <a href="codigo.html"   class="buttons">CODIGO  </a>
  17.     <a href="dowhile.html"  class="buttons">DOWHILE </a>
  18.     <a href="for.html"  class="buttons">FOR </a>
  19.     <a href="ifelse.html"   class="buttons">IFELSE  </a>
  20.     <a href="while.html"    class="buttons">WHILE   </a>
  21.     <a href="if.html"   class="buttons">IF  </a>
  22. </div>
  23.  
  24. <tr>
  25. <td class="tgrande">
  26. <p align="center">Expressões condicionais <b>IF</b><br></p>
  27. <p align="center">
  28.     <script>
  29.         var bananas=6;
  30.         if(bananas==6)
  31.             alert("É verdade. Temos meia dúzia de bananas!!!");
  32.     </script>
  33.     <p align="center">O <b>IF</b> é a mais básica das expressões condicionadas no JavaScript. Com ele, você pode decidir se quer executar uma acção ou não.  
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="tpequeno">
  38.     <p align="center"><b>CURSO TÉCNICO DE INFORMÁTICA SISTEMAS </b></td>
  39. </tr>
  40. </table>
  41.  
  42. </div>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment