Hardrockdesign

Tablón Captain

May 28th, 2015
1,308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.30 KB | None | 0 0
  1. ----------------------- JAVASCRIPT ----------------
  2.  
  3. var indice = 0;
  4. frases = new Array();
  5. frases[0] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
  6. frases[1] = "Texto2";
  7. frases[2] = "Texto3";
  8. frases[3] = "Texto4";
  9.  
  10. indice = Math.random()*(frases.length);
  11. indice = Math.floor(indice);
  12.  
  13. function rotar() {
  14. if (indice == frases.length) {indice = 0;}
  15. document.getElementById("rotando").innerHTML = frases[indice];
  16. indice++;
  17. setTimeout("rotar();",5000);
  18. }
  19.  
  20. ----------------------- CSS -----------------------
  21.  
  22. .titulotablon {
  23. background: #336077;
  24. color: #eee;
  25. font-size: 10px;
  26. font-weight: 700;
  27. padding-bottom: 5px;
  28. padding-top: 5px;
  29. text-align: center;
  30. text-transform: uppercase;
  31. width: 220px;
  32. }
  33.  
  34. .titulotablon2 {
  35. margin-left: 5px;
  36. background: #336077;
  37. color: #eee;
  38. font-size: 10px;
  39. font-weight: 700;
  40. padding-bottom: 5px;
  41. padding-top: 5px;
  42. text-align: center;
  43. text-transform: uppercase;
  44. width: 220px;
  45. }
  46.  
  47. .fechatablon {
  48. background: #336077;
  49. color: #eee;
  50. font-weight: bold;
  51. font-size: 14px;
  52. font-family: arial;
  53. line-height: 100%;
  54. padding: 3px;
  55. float: left;
  56. margin-right: 4px;
  57. }
  58.  
  59. #premios {
  60. width: 140px;
  61. height: 85px;
  62. position: relative;
  63. }
  64.  
  65. #premios .efecto {
  66. position: absolute;
  67. transform: scale(0.8);
  68. opacity: 0;
  69. width: 140px;
  70. height: 85px;
  71. transition:0.5s;
  72. }
  73.  
  74. #premios:hover .efecto {
  75. transform: scale(1);
  76. width: 140px;
  77. height: 85px;
  78. transition:0.5s;
  79. opacity: 1;
  80. }
  81.  
  82. ----------------------- HTML -----------------------
  83.  
  84. <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Cabin" />
  85. <center>
  86.  
  87. <div style="font-size: 30px; text-transform: uppercase; color: #b42411; font-weight: bold; width: 590px; margin-bottom: 5px; font-family: Cabin; letter-spacing: 10px;">
  88. Tablón de anuncios
  89. </div>
  90.  
  91. <div style="padding: 5px; background: #cfcfcf; width: 590px; font-family: Cabin;">
  92.  
  93. <table cellspacing="0">
  94.  
  95. <tbody>
  96.  
  97. <tr>
  98.  
  99. <td>
  100.  
  101. <div class="titulotablon">
  102. Novedades
  103. </div>
  104.  
  105. <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;">
  106.  
  107. <div class="fechatablon">
  108. 02/05
  109. </div>
  110. Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
  111. <div class="fechatablon">
  112. 03/05
  113. </div>
  114. Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
  115. </div>
  116.  
  117. <div class="titulotablon">
  118. ¿Sabías que...
  119. </div>
  120.  
  121. <div style="height:70px; width: 200px; padding: 10px; text-align: justify; color: #888; font-size: 12px; background: #eee;" id="rotando">
  122.  
  123. </div><script type="text/javascript">rotar();</script>
  124. <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;">
  125. Reglas
  126. </div>
  127.  
  128. <div style="height:70px; width: 200px; padding: 10px; text-align: justify; color: #888; font-size: 11px; background: #eee; line-height: 110%;">
  129.  
  130. <div style="color: #b42411; font-size: 12px; font-family: arial; line-height: 100%; padding: 3px; float: left; margin-right: 4px;">
  131. ★
  132. </div>
  133. Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
  134. <div style="color: #b42411; font-size: 12px; font-family: arial; line-height: 100%; padding: 3px; float: left; margin-right: 4px;">
  135. ★
  136. </div>
  137. Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
  138. </div>
  139.  
  140. </td>
  141.  
  142. <td>
  143.  
  144. <div style="width: 220px; padding: 5px; padding-top: 0px;">
  145.  
  146. <div class="titulotablon">
  147. Ambientación
  148. </div>
  149.  
  150. <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;">
  151.  
  152. <div style="float: left; margin-right: 5px; font-size: 50px; color: #b42411; font-family: Times New Roman; margin-top: 10px;">
  153. “
  154. </div>
  155. 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.
  156. </div>
  157.  
  158. </div>
  159.  
  160. <div class="titulotablon2">
  161. Estación
  162. </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;" />
  163. <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;">
  164.  
  165. <div style="float: left; margin-right: 5px; font-size: 50px; color: #b42411; font-family: Times New Roman; margin-top: 10px;">
  166. “
  167. </div>
  168. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque.
  169. </div>
  170.  
  171. </td>
  172.  
  173. <td>
  174.  
  175. <div id="premios">
  176.  
  177. <div class="efecto">
  178.  
  179. <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;">
  180. Título ganado
  181. </div>
  182.  
  183. </div>
  184.  
  185. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  186.  
  187. </div>
  188.  
  189. </div>
  190.  
  191. <div style="height: 5px;">
  192.  
  193. </div>
  194.  
  195. <div id="premios">
  196.  
  197. <div class="efecto">
  198.  
  199. <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;">
  200. Título ganado
  201. </div>
  202.  
  203. </div>
  204.  
  205. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  206.  
  207. </div>
  208.  
  209. </div>
  210.  
  211. <div style="height: 5px;">
  212.  
  213. </div>
  214.  
  215. <div id="premios">
  216.  
  217. <div class="efecto">
  218.  
  219. <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;">
  220. Título ganado
  221. </div>
  222.  
  223. </div>
  224.  
  225. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  226.  
  227. </div>
  228.  
  229. </div>
  230.  
  231. <div style="height: 5px;">
  232.  
  233. </div>
  234.  
  235. <div id="premios">
  236.  
  237. <div class="efecto">
  238.  
  239. <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;">
  240. Título ganado
  241. </div>
  242.  
  243. </div>
  244.  
  245. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  246.  
  247. </div>
  248.  
  249. </div>
  250.  
  251. </td>
  252.  
  253. </tr>
  254.  
  255. </tbody>
  256.  
  257. </table>
  258.  
  259. </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>
  260. </center>
Advertisement
Add Comment
Please, Sign In to add comment