Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/10/2012, 20:05
xoopset
 
Fecha de Ingreso: octubre-2012
Mensajes: 5
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: Necesito crear un sistema de mensajes

Luego tenemos el siguiente archivo form_torpedo.php que hace referencia al primero cadastro.php

Código PHP:
Ver original
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>Torpedos</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <meta http-equiv="Content-Language" content="pt-br">
  7. <meta name="Robots" content="index, follow">
  8. <meta name="GOOGLEBOT" CONTENT="index, follow">
  9. <meta name="revisit-after" content="10 days">
  10. <meta name="rating" content="GENERAL">
  11. <meta name="classification" content="internet">
  12. </head>
  13. <script> window.alert('Rellena todos los campos!'); location.href='cadastro.php';</script></tbody>

Seguimos con la barra en donde se visualizaran los mensajes torpedo.php

Código PHP:
Ver original
  1. <head>
  2. <style type="text/css">
  3. <!--
  4. body {
  5.     margin-left: 0px;
  6.     margin-top: 0px;
  7.     margin-right: 0px;
  8.     margin-bottom: 0px;
  9. }
  10. -->
  11. </style><body bgcolor="#666666">
  12. <script language="javascript">
  13. function click() {
  14. if (event.button==2||event.button==3) {
  15. oncontextmenu='return false';
  16. }
  17. }
  18. document.onmousedown=click
  19. document.oncontextmenu = new Function("return false;")
  20. </script>
  21. <script language="javascript" type="text/javascript" >
  22.  
  23. function setTransition(){
  24.   if (document.all){
  25.      bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
  26.      bannerADrotator.filters.revealTrans.apply();
  27.   }
  28. }
  29.  
  30.  
  31. function abreTorpedo(){
  32.             window.open("cadastro.php" , "Torpedo" , "width=360 , height=200");
  33.         }
  34. </script>
  35. <script type="text/javascript">
  36. <!--
  37.  
  38. google_ad_client = "pub-7109370821639015";
  39.  
  40. /* 728x15, FOX */
  41.  
  42. google_ad_slot = "3912846024";
  43.  
  44. google_ad_width = 728;
  45.  
  46. google_ad_height = 15;
  47.  
  48. //-->
  49.  
  50. </script>
  51. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  52. <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#000000">
  53.   <tr>
  54.     <td width="10%" height="34"><a href="torpedos.php" target="cont" title="Click Aqui para ver novos Torpedos"><img src="torpedoo.png" width="130" height="30" border="0"></a></td>
  55.     <td width="80%"><iframe src="torpedos.php" width="100%" height="30" frameborder="0" id="cont" name="cont" scrolling="no"></iframe></td>
  56.     <td width="10%"><a href="#" onClick="window.open('cadastro.php','Janela','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=490,height=423,center=100,top=50'); return false;"><img src="EVI.png" style="cursor: pointer; margin-top: 0px;" width="130" border="0" height="30" title="Enviar Torpedos"></a></td>
  57.   </tr>
  58. </table>
  59.  
  60. </html>

y en donde se guardan los mensajes torpedos.php

Código PHP:
Ver original
  1. <html>
  2. <head>
  3. <script language="javascript">
  4. function click() {
  5. if (event.button==2||event.button==3) {
  6. oncontextmenu='return false';
  7. }
  8. }
  9. document.onmousedown=click
  10. document.oncontextmenu = new Function("return false;")
  11. </script>
  12. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  13. <style type="text/css">
  14. <!--
  15. body,td,th {
  16.     font-weight: bold;
  17. }
  18. -->
  19. </style></head>
  20. <body marginheight="2" marginwidth="0" topmargin="0" leftmargin="0" bgcolor="#999">
  21. <marquee scrollamount="5" onMouseOver="stop();" onMouseOut="start();">
  22. <span style='font-family:arial; color:#ffffff; font-size:12px ;'><img src='torpedo.png' width='16' height='14' /><strong>Byron</strong> <span style='font-family:arial; color:#fff000; font-size:12px ;'>ANUNCIA: <span style='font-family:arial; color: #FF0000; font-size:12px ;'>Muy buena la radio, desde Chile :) <img src='smilies/xd.png' width='18' height='18'><span style='font-family:arial; color:#ffffff; font-size:12px ;'><img src='torpedo.png' width='16' height='14' /><strong>Ignacio</strong> <span style='font-family:arial; color:#fff000; font-size:12px ;'>FALA: <span style='font-family:arial; color: #FFF; font-size:12px ;'>holaaaa <img src='smilies/spacer.png' width='18' height='18'>