Advertisement
Hardrockdesign

Tablón Captain

May 28th, 2015
1,194
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. </div>
  132. Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
  133. <div style="color: #b42411; font-size: 12px; font-family: arial; line-height: 100%; padding: 3px; float: left; margin-right: 4px;">
  134. </div>
  135. Sed ut perspiciatis unde omnis iste natus error sit voluptatem.<br />
  136. </div>
  137.  
  138. </td>
  139.  
  140. <td>
  141.  
  142. <div style="width: 220px; padding: 5px; padding-top: 0px;">
  143.  
  144. <div class="titulotablon">
  145. Ambientación
  146. </div>
  147.  
  148. <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;">
  149.  
  150. <div style="float: left; margin-right: 5px; font-size: 50px; color: #b42411; font-family: Times New Roman; margin-top: 10px;">
  151. </div>
  152. 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.
  153. </div>
  154.  
  155. </div>
  156.  
  157. <div class="titulotablon2">
  158. Estación
  159. </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;" />
  160. <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;">
  161.  
  162. <div style="float: left; margin-right: 5px; font-size: 50px; color: #b42411; font-family: Times New Roman; margin-top: 10px;">
  163. </div>
  164. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque.
  165. </div>
  166.  
  167. </td>
  168.  
  169. <td>
  170.  
  171. <div id="premios">
  172.  
  173. <div class="efecto">
  174.  
  175. <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;">
  176. Título ganado
  177. </div>
  178.  
  179. </div>
  180.  
  181. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  182.  
  183. </div>
  184.  
  185. </div>
  186.  
  187. <div style="height: 5px;">
  188.  
  189. </div>
  190.  
  191. <div id="premios">
  192.  
  193. <div class="efecto">
  194.  
  195. <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;">
  196. Título ganado
  197. </div>
  198.  
  199. </div>
  200.  
  201. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  202.  
  203. </div>
  204.  
  205. </div>
  206.  
  207. <div style="height: 5px;">
  208.  
  209. </div>
  210.  
  211. <div id="premios">
  212.  
  213. <div class="efecto">
  214.  
  215. <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;">
  216. Título ganado
  217. </div>
  218.  
  219. </div>
  220.  
  221. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  222.  
  223. </div>
  224.  
  225. </div>
  226.  
  227. <div style="height: 5px;">
  228.  
  229. </div>
  230.  
  231. <div id="premios">
  232.  
  233. <div class="efecto">
  234.  
  235. <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;">
  236. Título ganado
  237. </div>
  238.  
  239. </div>
  240.  
  241. <div style="width: 140px; height: 85px; background:url('http://i.imgur.com/MeCJajd.jpg');">
  242.  
  243. </div>
  244.  
  245. </div>
  246.  
  247. </td>
  248.  
  249. </tr>
  250.  
  251. </tbody>
  252.  
  253. </table>
  254.  
  255. </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>
  256. </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement