Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Marquee - marquee.html

marquee.html

Caricato da: Roby94
Scarica il programma completo

  1. <!doctype html>
  2. <html lang="it">
  3.   <head>
  4.     <meta charset="utf-8" />
  5.     <meta name="author" content="System Rush" />
  6.     <title>Marquee</title>
  7.         <script src="jquery.js"></script>
  8.     <script src="jquery.marquee.js"></script>
  9.     <script>
  10.           $(function() {
  11.                   $("#classic").marquee();
  12.                   $("#toRight").marquee({"direction": "right"});
  13.                   $("#toTop").marquee({"direction": "top", "time": 50});
  14.                   $("#toBottom").marquee({"direction": "bottom", "time": 15});
  15.                   $("#hoverStop").marquee({"hover": "stop"});
  16.                   $("#hoverSlow").marquee({"hover": 60});
  17.           });
  18.         </script>
  19.     <link rel="stylesheet" href="reset.css" media="screen" />
  20.     <style>
  21.           body {
  22.                   width: 800px;
  23.                   margin: 0 auto;
  24.           }
  25.           article {
  26.                   color: black;
  27.                   text-shadow: 1px 1px 3px #666666;
  28.           }
  29.           article > header {
  30.                   font-size: 18px;
  31.                   font-weight: bold;
  32.                   padding: 3px;
  33.           }
  34.           article > header > hgroup > * {
  35.                   padding: 5px;
  36.           }
  37.           article > header > hgroup > h2 {
  38.                   font-weight: bold;
  39.                   font-style: italic;
  40.                   font-size: 14px;
  41.                   border: 3px dashed black;
  42.                   background-color: #666;
  43.                   border-radius: 10px;
  44.                   color: #CCC;
  45.           }
  46.           article > div {
  47.                   border-radius: 10px;
  48.                   padding: 5px 10px;
  49.                   border: 3px solid black;
  50.                   color: #666;
  51.           }
  52.         </style>
  53.   </head>
  54.   <body>
  55.     <article>
  56.       <header>
  57.         <hgroup>
  58.           <h1>Marquee classico</h1>
  59.           <h2>$("#classic").marquee();</h2>
  60.         </hgroup>
  61.       </header>
  62.       <div id="classic">Questo è il marquee classico con scorrimento verso sinistra.</div>
  63.     </article>
  64.     <article>
  65.       <header>
  66.         <hgroup>
  67.           <h1>Marquee con scorrimento verso destra</h1>
  68.           <h2>$("#toRight").marquee({"direction": "right"});</h2>
  69.         </hgroup>
  70.       </header>
  71.       <div id="toRight">Questo è il marquee con scorrimento verso destra con alta latenza.</div>
  72.     </article>
  73.     <article>
  74.       <header>
  75.         <hgroup>
  76.           <h1>Marquee con scorrimento verso l'alto con bassa latenza</h1>
  77.           <h2>$("#toTop").marquee({"direction": "top", "time": 50});</h2>
  78.         </hgroup>
  79.       </header>
  80.       <div id="toTop">Questo è il marquee con scorrimento verso l'alto lento.<br/>bla bla bla bla<br/>bla bla bla bla<br/>bla bla bla bla<br/>bla bla bla bla</div>
  81.     </article>
  82.     <article>
  83.       <header>
  84.         <hgroup>
  85.           <h1>Marquee con scorrimento verso il basso</h1>
  86.           <h2>$("#toBottom").marquee({"direction": "bottom", "time": 15});</h2>
  87.         </hgroup>
  88.       </header>
  89.       <div id="toBottom">Questo è il marquee con scorrimento verso il basso veloce.<br/>bla bla bla bla<br/>bla bla bla bla<br/>bla bla bla bla<br/>bla bla bla bla</div>
  90.     </article>
  91.     <article>
  92.       <header>
  93.         <hgroup>
  94.           <h1>Marquee con stop all'hover</h1>
  95.           <h2>$("#hoverStop").marquee({"hover": "stop"});</h2>
  96.         </hgroup>
  97.       </header>
  98.       <div id="hoverStop">Questo è il marquee che al verificarsi di hover si ferma.</div>
  99.     </article>
  100.     <article>
  101.       <header>
  102.         <hgroup>
  103.           <h1>Marquee con aumento latenza all'hover</h1>
  104.           <h2>$("#hoverSlow").marquee({"hover": 60});</h2>
  105.         </hgroup>
  106.       </header>
  107.       <div id="hoverSlow">Questo è il marquee che al verificarsi di hover rallenta.</div>
  108.     </article>
  109.   </body>
  110. </html>