H3LD3R

INDEX

May 20th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.11 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>Página Principal</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.     <td class="tgrande">
  24.     <script type="text/javascript">
  25.     var nome;
  26.     var currentTime = new Date();
  27.     var hora=currentTime.getHours();
  28.     nome = prompt ("Qual é o seu nome?"); 
  29.     if (hora<12)
  30.         document.write("<h2>Bom Dia,</h2><h2> Seja bem vindo(a) senhor(a) <b>"+nome+"</b>!</h2>");
  31.     else
  32.     {
  33.         if (hora<20)
  34.             document.write("<h2>Boa Tarde,</h2><h2> Seja bem vindo(a) senhor(a) <b>"+nome+"</b>!</h2>");
  35.         else
  36.             document.write("<h2>Boa Noite,</h2><h2> Seja bem vindo(a) senhor(a) <b>"+nome+"</b>!</h2>");
  37.     }
  38.     </script>
  39.     <p align="center">O que é <b>JavaScript?</b></p>
  40.     <p align="center"><br>É uma linguagem utilizada principalmente para auxílio de desenvolvimento
  41.     de páginas para a Internet. </font></p>
  42.     <p align="center"><br>O que posso fazer com o <b>JavaScript?</b></p>
  43.     <p align="center"><br>Pode tornar as páginas mais &quot;inteligentes&quot;, com recursos adicionais
  44.     como: botões que mudam ao passar o rato em cima, exibir o horário
  45.     actual, verificar se o preenchimento de um formulário está correcto, e
  46.     muito mais! O javaScript pode lhe salvar nas horas em que você menos
  47.     espera, pois as possibilidades de utilização são infinitas.</font></td>
  48. </tr>
  49. <tr>
  50.     <td class="tpequeno">
  51.     <p align="center"><b>CURSO TÉCNICO DE INFORMÁTICA SISTEMAS </b></td>
  52. </tr>
  53. </div>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment