Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Sep 2nd, 2010 | Syntax: HTML | Size: 10.66 KB | Hits: 22 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. <?php require_once("../wp-config.php"); ?>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Language" content="es">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>DIARIO EL PINGUINO</title>
  7. <style type="text/css">
  8. <!--
  9. .titular {
  10.         font-family: Georgia, "Times New Roman", "Trebuchet MS";
  11.         font-size: 25px;
  12.         font-weight: normal;
  13.         color: #000066;
  14.         text-decoration: none;
  15. }
  16. .post_titletv {
  17.         float: left;
  18.         width: 560px;
  19.         position: relative;
  20.         padding-bottom: 10px;
  21. }
  22. .post_metatv {
  23.         float: left;
  24.         width: 560px;
  25.         padding-bottom: 10px;
  26.         background-repeat: no-repeat;
  27.         background-position: left bottom;
  28. }
  29. .textonoticiatv {
  30.         padding-top: 8px;
  31.         padding-bottom: 8px;
  32.         line-height: 25px;
  33.         text-align: justify;
  34.         color: #000000;
  35.         font-size: 20px;
  36.         font-family: Arial, Helvetica, sans-serif;
  37.         font-weight: normal;
  38. }
  39. .categorytv {
  40.         float: left;
  41.         width: 425px;
  42.         margin: 0px;
  43.         color: #003333;
  44.         text-align: left;
  45.         font-family: Arial, Helvetica, sans-serif;
  46.         font-size: 18px;
  47.         font-weight: normal;
  48. }
  49. .Estilo6 {
  50.         font-size: 35px;
  51.         font-family: Arial, Helvetica, sans-serif;
  52.         color: #000000;
  53.         letter-spacing: 1px;
  54. }
  55. .foto {
  56.         border: 3px solid #FFFFFF;
  57.         background-color: #FFFFFF;
  58.                 font-family: Arial, Helvetica, sans-serif;
  59.         font-size: 12px;
  60. }
  61. .fotomargen {
  62.         float: left;
  63.         border: 1px solid #CCCCCC;
  64.         margin-top: 0px;
  65.         margin-right: 7px;
  66.         margin-bottom: 7px;
  67.         margin-left: 0px;
  68.         font-family: Arial, Helvetica, sans-serif;
  69.         font-size: 12px;
  70. }
  71. body {
  72.         margin-left: 0px;
  73.         margin-top: 0px;
  74.         margin-right: 0px;
  75.         margin-bottom: 0px;
  76. }
  77. .scrollsuperior {
  78.         font-family: Arial, Helvetica, sans-serif;
  79.         font-weight: bold;
  80.         color: #003366;
  81.         font-size: 20px;
  82.         text-decoration: none;
  83. }
  84. .infos{
  85.         display:block;
  86.         text-align:right;
  87.         font-size: 18px;
  88.         font-family:Arial, Helvetica, sans-serif;
  89.         width:90%;
  90.         float:right;
  91.         margin-bottom:10px;
  92.         border-style:solid;
  93.         border-width:1px;
  94.         border-color:#03F;
  95.         padding:4px;
  96. }
  97. .infos h2{
  98.         margin: 0;
  99.         padding: 2px;
  100.         font-size: 20px;
  101.         color: #fff;
  102.         background-color: #003263;
  103.         text-align:right;
  104.         margin-bottom:4px;
  105. }
  106. .infos2{
  107.         display:block;
  108.         text-align:right;
  109.         font-size: 18px;
  110.         font-family:Arial, Helvetica, sans-serif;
  111.         width:90%;
  112.         float:right;
  113.         margin-bottom:10px;
  114.         border-style:solid;
  115.         border-width:1px;
  116.         border-color:#03F;
  117.         padding:4px;
  118.         height:219px;
  119. }
  120. .infos2 h2{
  121.         margin: 0;
  122.         padding: 2px;
  123.         font-size: 20px;
  124.         color: #fff;
  125.         background-color: #003263;
  126.         text-align:right;
  127.         margin-bottom:4px;
  128.        
  129. }
  130. -->
  131. </style>
  132. <script language="javascript"  type="text/javascript">  
  133. var RequestObject = false;    
  134. var Archivo = 'publicidad.html';  
  135.  
  136. window.setInterval("actualizacion_reloj()", 1800000);    
  137.  
  138. if (window.XMLHttpRequest)
  139.         RequestObject = new XMLHttpRequest();  
  140.  
  141. if (window.ActiveXObject)      
  142.   RequestObject = new ActiveXObject("Microsoft.XMLHTTP");  
  143.  
  144. function ReqChange() {  
  145.   if (RequestObject.readyState==4) {  
  146.           if(RequestObject.status==200){
  147.                 location.href=Archivo
  148.           }
  149.   }  
  150. }  
  151. function llamadaAjax() {  
  152.   RequestObject.open("POST", Archivo , true);  
  153.   RequestObject.onreadystatechange = ReqChange;  
  154.   RequestObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  155.   RequestObject.send("accion=mostrar");
  156. }  
  157.  
  158. function actualizacion_reloj() {  
  159.   llamadaAjax();  
  160. }  
  161.  
  162. </script>
  163. <script language="JavaScript" type="text/JavaScript">
  164. <!--
  165. function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  166.  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  167.    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  168.  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  169. }
  170. MM_reloadPage(true);
  171. //-->
  172. </script>
  173. <script>
  174. var clockid=new Array()
  175. var clockidoutside=new Array()
  176. var i_clock=-1
  177. var thistime= new Date()
  178. var hours=thistime.getHours()
  179. var minutes=thistime.getMinutes()
  180. var seconds=thistime.getSeconds()
  181. if (eval(hours) <10) {hours="0"+hours}
  182. if (eval(minutes) < 10) {minutes="0"+minutes}
  183. if (seconds < 10) {seconds="0"+seconds}
  184. var thistime = hours+":"+minutes+":"+seconds
  185.        
  186. function writeclock() {
  187.         i_clock++
  188.         if (document.all || document.getElementById || document.layers) {
  189.                 clockid[i_clock]="clock"+i_clock
  190.                 document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
  191.         }
  192. }
  193.  
  194. function clockon() {
  195.         thistime= new Date()
  196.         hours=thistime.getHours()
  197.         minutes=thistime.getMinutes()
  198.         seconds=thistime.getSeconds()
  199.         if (eval(hours) <10) {hours="0"+hours}
  200.         if (eval(minutes) < 10) {minutes="0"+minutes}
  201.         if (seconds < 10) {seconds="0"+seconds}
  202.         thistime = hours+":"+minutes+":"+seconds
  203.                
  204.         if (document.all) {
  205.                 for (i=0;i<=clockid.length-1;i++) {
  206.                         var thisclock=eval(clockid[i])
  207.                         thisclock.innerHTML=thistime
  208.                 }
  209.         }
  210.        
  211.         if (document.getElementById) {
  212.                 for (i=0;i<=clockid.length-1;i++) {
  213.                         document.getElementById(clockid[i]).innerHTML=thistime
  214.                 }
  215.         }
  216.         var timer=setTimeout("clockon()",1000)
  217. }
  218. window.onload=clockon
  219. </script>
  220. <script>
  221. var auto_refresh = setInterval(
  222. function ()
  223. {
  224. $('#programacion').load('cargaswap.php').fadeIn("slow");
  225. }, 5000); // refresh every 10000 milliseconds
  226. </script>
  227. <script>
  228. var auto_refresh = setInterval(
  229. function ()
  230. {
  231. $('#informacion').fadeOut('slow').load('cargaswapinfo.php').fadeIn("slow");
  232. }, 10000); // refresh every 10000 milliseconds
  233. </script>
  234. </head>
  235. <!--Tabla 1 : Contenido del Logo, Header, Reloj -->
  236. <body scrolling="no">
  237. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  238. <!--Primer grupo de celdas-->
  239.                 <tr>
  240. <!--Logo -->
  241.                         <td height="100" valign="top" background="../webtvredv2/fondoold1.jpg" bgcolor="#FFFFFF"><table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
  242.                 <tr>
  243. <!--Espacio en blanco -->
  244.                         <td width="430" height="23"></td>
  245.                 </tr>
  246. <!--Insertar reloj-->
  247.                 <tr>
  248.                         <td>
  249.                         <div align="right"><span class="Estilo6">
  250.                                 <script>writeclock()</script>
  251.                                 </span>
  252.                 </div>
  253.                 </td>
  254.                 </tr>
  255. <!--Espacio en blanco para alinear reloj -->
  256. <tr>
  257. <td><div align="right"></div></td>
  258. </tr>
  259. </table>
  260. </td>
  261. </tr>
  262. <!--Linea en blanco abajo del header -->
  263. <tr>
  264. <td height="2" bgcolor="#ffffff"></td>
  265. </tr>
  266. <tr>
  267. <td height="25" bgcolor="#b0d3e2">
  268. <!--Scroll superior con 20 titulares de noticias de Categoria Mensajes en TVRed -->
  269. <div class="scrollsuperior">
  270. <marquee scrollamount="1" scrolldelay="1" width="800" height="30" behavior="scroll">
  271. <?php query_posts('showposts=45&cat=2023'); ?>
  272. <?php while (have_posts()) : the_post(); ?>
  273. <?php the_title(); ?> -
  274. <?php endwhile; ?>
  275. </marquee></div>
  276. <div>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td height="2" bgcolor="#FFFFFF"></td>
  281. </tr>
  282. <!--Scroll superior con 20 titulares de noticias de Categoria Indicadores Economicos -->
  283. <td height="25" bgcolor="#FAC84F">
  284. <div class="scrollsuperior"><marquee direction="right" scrollamount=1 scrolldelay=1 width=800 behavior="scroll" height=30>
  285. <?php query_posts('showposts=1&cat=14651'); ?>
  286. <?php
  287. $i=0; //inicializo el contamiento
  288. while (have_posts()) : the_post(); ?>
  289. <?php the_title(); ?><?php endwhile; ?>                  
  290. </marquee>
  291. </div>
  292. <tr>
  293. <td>
  294.           <!--INICIO SCROLL -->
  295.  
  296. <table width="790" border="0" align="center" cellpadding="0" cellspacing="0">
  297.   <tr>
  298.     <td width="560">
  299.         <!--INICIO DE PRIMER LOTE DE 3 NOTICIAS -->
  300.     <marquee  behavior="scroll"  direction="up"  width=100% height=401 scrollamount=0 scrolldelay=80  onstart="this.scrollAmount=1">
  301. <?php query_posts('showposts=10&cat=1'); ?>
  302.         <?php while (have_posts()) : the_post(); ?>
  303.     <div class="post_metatv" id="post-<?php the_ID(); ?>">
  304.     <div class="post_titletv">
  305.     <div class="titular"><?php the_title(); ?></div>
  306.     <span class="categorytv">Publicado el <?php the_time('j F Y'); ?> a las <?php the_time('H:i a'); ?></span></div>
  307.         <div class="fotomargen"><?php image_extractor(true, 1, 260, 190, 'foto', '', '', '')?></div>
  308.         <div class="textonoticiatv"><?php the_excerpt(); ?>
  309.         </div>
  310.     </div>
  311.     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  312.         <td><table width="560" height="90" border="0" cellpadding="0" cellspacing="0">
  313.   <tr>
  314.    
  315.         <?php
  316.         if($i==3){
  317.         echo '<td height="90" colspan="3"><img src="http://www.elpinguino.com/diario/motel1.jpg" width="560" height="100"></td>';
  318.         $i=0;
  319.         }    
  320. </tr>
  321.   <tr>
  322.     <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
  323.   </tr>
  324. </table>
  325. </td>
  326.  
  327.     </table>
  328.    
  329. <?php
  330. $i++;
  331. endwhile; ?>
  332.     </marquee>
  333. <!--FIN DE PRIMER LOTE DE 3 NOTICIAS --></td>  
  334. <td>
  335. <div class="infos">
  336.         <h2>PINGUINO RADIO</h2>
  337. <div id="programacion"></div>
  338. </div>
  339.  <div class="infos2">
  340.  <h2>SERVICIOS</h2>
  341.  <div id="informacion"></div>
  342.  </div>
  343. </td>
  344. <!--FIN SCROLL -->
  345. </tr>
  346.    
  347. </table>
  348. <script type="text/javascript">
  349. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  350. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  351. </script>
  352. <script type="text/javascript">
  353. var pageTracker = _gat._getTracker("UA-5962894-1");
  354. pageTracker._trackPageview();
  355. </script>
  356. <tr>
  357.  <td height="25" bgcolor="#b0d3e2">
  358.     <div class="scrollsuperior"><marquee direction=left scrollamount=1 scrolldelay=1 width=800 height="25">
  359.                     <?php query_posts('showposts=1&cat=14657'); ?>
  360.                          <?php while (have_posts()) : the_post(); ?>
  361.                               <?php the_title(); ?><?php endwhile; ?>
  362.                                                   </marquee></div></td>
  363. </tr>
  364.  
  365. <!--link rel="stylesheet" href="demo.css" type="text/css" media="all"-->
  366. <link rel="stylesheet" href="jquery.twitter.css" type="text/css" media="all">
  367.  
  368. <!--<script type="text/javascript" src="jquery-1.3.2.min.js"></script>-->
  369. <script src="http://ajax.googleapis.com/ajax/
  370. libs/jquery/1.3.0/jquery.min.js"></script>
  371. <script type="text/javascript" src="jquery.twitter.js"></script>
  372.  
  373. <script type="text/javascript">
  374.     $(document).ready(function() {
  375.       $("#twitters").getTwitter({
  376.             userName: "pinguiprogramas",
  377.             numTweets: 1,
  378.             loaderText: "Cargando programación...",
  379.             showHeading: true,
  380.             headingText: "PINGUINO RADIO",
  381.             showProfileLink: false,
  382.             showTimestamp: false
  383.         });
  384.       $("#twitters_infopuq").getTwitter({
  385.             userName: "infopuq",
  386.             numTweets: 1,
  387.             loaderText: "Cargando informacion...",
  388.             showHeading: true,
  389.             headingText: "ITINERARIOS",
  390.             showProfileLink: false,
  391.             showTimestamp: false
  392.         });
  393.     });
  394. </script>
  395.         </body>
  396. </html>