Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------- JAVASCRIPT ----------------
- var indice = 0;
- frases = new Array();
- frases[0] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
- frases[1] = "Texto2";
- frases[2] = "Texto3";
- frases[3] = "Texto4";
- indice = Math.random()*(frases.length);
- indice = Math.floor(indice);
- function rotar() {
- if (indice == frases.length) {indice = 0;}
- document.getElementById("rotando").innerHTML = frases[indice];
- indice++;
- setTimeout("rotar();",5000);
- }
- ----------------------- CSS -----------------------
- .titulotablon {
- background: #336077;
- color: #eee;
- font-size: 10px;
- font-weight: 700;
- padding-bottom: 5px;
- padding-top: 5px;
- text-align: center;
- text-transform: uppercase;
- width: 220px;
- }
- .titulotablon2 {
- margin-left: 5px;
- background: #336077;
- color: #eee;
- font-size: 10px;
- font-weight: 700;
- padding-bottom: 5px;
- padding-top: 5px;
- text-align: center;
- text-transform: uppercase;
- width: 220px;
- }
- .fechatablon {
- background: #336077;
- color: #eee;
- font-weight: bold;
- font-size: 14px;
- font-family: arial;
- line-height: 100%;
- padding: 3px;
- float: left;
- margin-right: 4px;
- }
- #premios {
- width: 140px;
- height: 85px;
- position: relative;
- }
- #premios .efecto {
- position: absolute;
- transform: scale(0.8);
- opacity: 0;
- width: 140px;
- height: 85px;
- transition:0.5s;
- }
- #premios:hover .efecto {
- transform: scale(1);
- width: 140px;
- height: 85px;
- transition:0.5s;
- opacity: 1;
- }
- ----------------------- HTML -----------------------
- <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Cabin" />
- <center>
- <div style="font-size: 30px; text-transform: uppercase; color: #b42411; font-weight: bold; width: 590px; margin-bottom: 5px; font-family: Cabin; letter-spacing: 10px;">
- Tablón de anuncios
- </div>
- <div style="padding: 5px; background: #cfcfcf; width: 590px; font-family: Cabin;">
- <table cellspacing="0">
- <tbody>
- <tr>
- <td>
- <div class="titulotablon">
- Novedades
- </div>
- <div style="height:70px; width: 200px; padding: 10px; text-align: justify; color: #888; font-size: 11px; background: #eee; margin-bottom: 5px; line-height: 110%; overflow-y: auto;">
- <div class="fechatablon">
- 02/05
- </div>
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
- <div class="fechatablon">
- 03/05
- </div>
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
- </div>
- <div class="titulotablon">
- ¿Sabías que...
- </div>
- <div style="height:70px; width: 200px; padding: 10px; text-align: justify; color: #888; font-size: 12px; background: #eee;" id="rotando">
- </div><script type="text/javascript">rotar();</script>
- <div style="margin-top: 5px; background: #336077; color: #eee; font-size: 10px; font-weight: 700; padding-bottom: 5px; padding-top: 5px; text-align: center; text-transform: uppercase; width: 220px;">
- Reglas
- </div>
- <div style="height:70px; width: 200px; padding: 10px; text-align: justify; color: #888; font-size: 11px; background: #eee; line-height: 110%;">
- <div style="color: #b42411; font-size: 12px; font-family: arial; line-height: 100%; padding: 3px; float: left; margin-right: 4px;">
- ★
- </div>
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
- <div style="color: #b42411; font-size: 12px; font-family: arial; line-height: 100%; padding: 3px; float: left; margin-right: 4px;">
- ★
- </div>
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
- </div>
- </td>
- <td>
- <div style="width: 220px; padding: 5px; padding-top: 0px;">
- <div class="titulotablon">
- Ambientación
- </div>
- <div style="height: 125px; overflow-y: auto; font-size: 12px; line-height: 100%; text-align: justify; padding-top: 10px; color: #888; background: #eee; padding: 10px;">
- <div style="float: left; margin-right: 5px; font-size: 50px; color: #b42411; font-family: Times New Roman; margin-top: 10px;">
- “
- </div>
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.<br /><br />Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
- </div>
- </div>
- <div class="titulotablon2">
- Estación
- </div><img src="http://www.fly.com/blog/wp-content/uploads/2013/07/Downtown-Chicago-Lake-Michigan-Featured.jpg" style="margin-left: 5px; width: 220px; height: 92px;" />
- <div style="width: 200px; height: 45px; font-size: 12px; line-height: 100%; text-align: justify; padding-top: 10px; color: #888; background: #eee; padding: 10px; margin-left: 5px;">
- <div style="float: left; margin-right: 5px; font-size: 50px; color: #b42411; font-family: Times New Roman; margin-top: 10px;">
- “
- </div>
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque.
- </div>
- </td>
- <td>
- <div id="premios">
- <div class="efecto">
- <div style="width: 136px; line-height: 100%; padding: 2px; text-align: center; background: #336077; font-size: 9px; text-transform: uppercase; color: #eee; position: absolute; bottom: 0px;">
- Título ganado
- </div>
- </div>
- <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
- </div>
- </div>
- <div style="height: 5px;">
- </div>
- <div id="premios">
- <div class="efecto">
- <div style="width: 136px; line-height: 100%; padding: 2px; text-align: center; background: #336077; font-size: 9px; text-transform: uppercase; color: #eee; position: absolute; bottom: 0px;">
- Título ganado
- </div>
- </div>
- <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
- </div>
- </div>
- <div style="height: 5px;">
- </div>
- <div id="premios">
- <div class="efecto">
- <div style="width: 136px; line-height: 100%; padding: 2px; text-align: center; background: #336077; font-size: 9px; text-transform: uppercase; color: #eee; position: absolute; bottom: 0px;">
- Título ganado
- </div>
- </div>
- <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
- </div>
- </div>
- <div style="height: 5px;">
- </div>
- <div id="premios">
- <div class="efecto">
- <div style="width: 136px; line-height: 100%; padding: 2px; text-align: center; background: #336077; font-size: 9px; text-transform: uppercase; color: #eee; position: absolute; bottom: 0px;">
- Título ganado
- </div>
- </div>
- <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div><span style="font-size: 10px; font-weight: 700; text-transform: uppercase; font-family: calibri; letter-spacing: 5px; position: relative; top: 5px;"><a href="http://thecaptainknowsbest.tumblr.com/" style="color: #403B33;">© HARDROCK</a></span>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement