poniedziałek, 26 stycznia 2015

Skrypty HTML



KOMUNIKAT POWITALNY

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
  <meta name="Description" content=" [wstaw tu opis strony] ">
  <meta name="Keywords" content=" [wstaw tu slowa kluczowe] ">
  <meta name="Author" content=" [dane autora] ">
  <meta name="Generator" content="kED2">

  <title> [tytuł strony] </title>

  <link rel="stylesheet" href=" [nazwa_arkusza_stylow.css] " type="text/css">
</head>
<body onLoad = "alert ('Cześć! Miło , że odwiedziłeś moją stronę') ">
<H1><Center>
Moja strona WWW
</h1></center>

</body>
</html>










DRUKOWANIE STRONY


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
  <meta name="Description" content=" [wstaw tu opis strony] ">
  <meta name="Keywords" content=" [wstaw tu slowa kluczowe] ">
  <meta name="Author" content=" [dane autora] ">
  <meta name="Generator" content="kED2">

  <title> [tytuł strony] </title>

  <link rel="stylesheet" href=" [nazwa_arkusza_stylow.css] " type="text/css">
</head>
<body>
<script type="text/javascript">
function drukuj ()
{
window.print();
}
</script>
<button onClick="drukuj()">drukuj strone</button>


</body>
</html>
SKRYPT KTÓRY PRZEWIJA STRONE
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-2">
<H2><CENTER>
<P onMouseOver = "Alert('najechałeś myszą na tekst!')">
Przykładowy Tekst </P>
</h2></center>
</body>
</html>