Foros del Web » Programando para Internet » Javascript »

error que me da dolor de cabeza

Estas en el tema de error que me da dolor de cabeza en el foro de Javascript en Foros del Web. hola. siempre que entro en mi web me sale un error como este: se produjo un error en tiempo de ejecución. ¿Desea depurarlo? línea:1 error: ...
  #1 (permalink)  
Antiguo 16/08/2003, 12:36
BLACK RIVER
Invitado
 
Mensajes: n/a
Puntos:
error que me da dolor de cabeza

hola. siempre que entro en mi web me sale un error como este:

se produjo un error en tiempo de ejecución.
¿Desea depurarlo?

línea:1
error: error de sintaxis

y después de los popus unos de estos:

se produjo un error en tiempo de ejecución.
¿Desea depurarlo?

línea:236
error: error de sintaxis

sabéis cómo los puedo arreglar?
  #2 (permalink)  
Antiguo 16/08/2003, 14:11
Avatar de Tx
Tx
 
Fecha de Ingreso: enero-2002
Ubicación: Cba - Arg
Mensajes: 188
Antigüedad: 22 años, 3 meses
Puntos: 1
Hola, si pones el codigo del Script, seguramente se te pueda dar una mano.

Saludos...
  #3 (permalink)  
Antiguo 16/08/2003, 15:52
BLACK RIVER
Invitado
 
Mensajes: n/a
Puntos:
humm... es muy largo pero lo intentaré:

Código PHP:
<?php
ob_start
();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>::CMBlackriver:: La web de CM</title>
<!-- InstanceEndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<META name="description" content="CMBlackriver, una de las webs mejores en ESPAÑOL, donde encontrarás: tácticas, descargas, editores, demos, actualizaciones...todo sobre CM">
<META name="keywords" content="championship manager, CM4, cm4, cm, 01/02, cm01/02, cm0102, championship manager 02/03, championship manager 01/02, trucos, guías, actualizaciones, descargas, tácticas, updates, demos, cmblackriver, español, champman,championship manager,cm,champman, futbol, juegos manager, pc futbol, cmblackriver, Championship Manager Blackriver, CMB, championship manager blackriver, CM Blackriver, cm blackriver, football, socccer, CM Gamer, Champman.tv, Cm.tv, The Dugout, Pretty-Addicted, SI Games, CM Spain, cm spain, CMSpain, cmspain, CM00/01, CM 00/01, CM 0001, CM0001, cm00/01">
<meta name="REVISIT-AFTER" content="7 DAYS">
<meta NAME="Robots" CONTENT="all" />
<link href="estilo.css" rel="stylesheet" rev="stylesheet" type="text/css">
<script language="JavaScript" src="funciones.js"></script>
<LINK REL="SHORTCUT ICON" href="http://www.cmblackriver.metropoliglobal.com/favicon.ico">
</head>

<body></style>
<script language="JavaScript">

var speed = 55 
var pause = 1750
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "..::CMBlackriver::.."
ar[1] = "......[url]www.cmblackriver.metropoliglobal.com......[/url]"
ar[2] = "..... La web de championship manager ....."
ar[3] = "..... sitio creado por Black_River todos los derechos reservados ......."
ar[4] = "..::CMBlackriver::.."
ar[5] = ".....la web para los aficionados al CM...."
ar[6] = ".....Descubre los secretos del juego......."
ar[7] = "-----------CMBlackriver!-----------"
ar[8] = "....busca la información que necesites...."
var currentMessage = 0
var offset = 0
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false
}
function startBanner() {
stopBanner()
showBanner()
}
function showBanner() {
var text = ar[currentMessage]
if (offset < text.length) {
if (text.charAt(offset) == " ")
offset++ 
var partialMessage = text.substring(0, offset + 1) 
window.status = partialMessage
offset++ // IE sometimes has trouble with "++offset"
timerID = setTimeout("showBanner()", speed)
bannerRunning = true
} else {
offset = 0
currentMessage++
if (currentMessage == ar.length)
currentMessage = 0
timerID = setTimeout("showBanner()", pause)
bannerRunning = true
}
}
startBanner();
// -->
</script>
<div align="center"> </div>
<td width="28%" style="font-family: Verdana, Arial, Helvetica, sans-serif">&nbsp; </td>
<td width="72%" style="font-family: Verdana, Arial, Helvetica, sans-serif">&nbsp;</td>
<div align="center">
  <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="746" id="AutoNumber1" height="740">
    <tr> 
      <td width="100%" height="740" valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif"> 
        <table width="746" height="98" border="0" cellpadding="0" cellspacing="0" style="margin-bottom: 0">
          <tr> 
            <td width="192" height="98" background="http://www.cmblackriver.metropoliglobal.com/images/1parte.jpg">&nbsp;</td>
            <td width="550" background="http://www.cmblackriver.metropoliglobal.com/images/2parte.jpg"> 
              <table width="100%" height="78" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="22%" height="78" valign="top">
<div align="right"></div></td>
                  <td width="78%" valign="top"><div align="center"> 
                      <ilayer name=M2kPubli left="-9" top="7" width="468" height="60" visibility="show" src="http://adserver.m2kcore.com/publi/publim2k.php?CID=cmblackriver"> 
                      </ilayer>
                      <iframe name=M2kPubli src="http://adserver.m2kcore.com/publi/publim2k.php?CID=cmblackriver" width="468" height="60" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"> 
                      </iframe>
                    </div>
                    &nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
        </table> 
        <table width="100%" height="48" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top" background="http://www.cmblackriver.metropoliglobal.com/images/arco3.gif">&nbsp;</td>
          </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="746" id="AutoNumber3" height="760">
          <tr> 
            <td width="124" height="760" valign="top" bgcolor="D8D8C4" style="font-family: Verdana, Arial, Helvetica, sans-serif"> 
              <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber4" height="669">
                <tr> 
                  <td width="120" height="669" valign="top" style="font-family: Verdana, Arial, Helvetica, sans-serif"> 
                    <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#AAAA7D" width="92%" id="AutoNumber1">
                      <tr> 
                        <td width="100%" height="21" bgcolor="#D8D8C4"> <p align="center"><strong><img src="http://www.cmblackriver.metropoliglobal.com/images/botones/generales.gif" width="98" height="20"></strong><b> 
                            </b></td>
                      </tr>
                      <tr> 
                        <td width="100%" height="90" valign="top"> <p style="margin-top: 0; margin-bottom: 0"> 
                            <img src="images/balons.gif" width="10" height="10"><font face="Verdana" style="font-size: 8pt"><strong style="font-weight: 400"><a href="http://www.cmblackriver.metropoliglobal.com/">Home</a></strong></font></p>
                          <p style="margin-top: 0; margin-bottom: 0"> <img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><font face="Verdana" style="font-size: 8pt"><a target="_blank" href="http://cmblackriver.metropoliglobal.com/foro/"><font color="#FF0000">Foro</font></a><br>
                            <img src="images/balons.gif" width="10" height="10"><a href="http://www.cmblackriver.metropoliglobal.com/chat.htm">Chat</a></font></strong></p>
                          <p style="margin-top: 0; margin-bottom: 0"> <img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><font face="Verdana" style="font-size: 8pt"><a target="_blank" href="http://cmblackriver.metropoliglobal.com/foro/viewforum.php?f=5">Errores 
                            CM</a></font></strong></p>
                          <p style="margin-top: 0; margin-bottom: 0"> <img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://www.cmblackriver.metropoliglobal.com/contactanos/contacto.php">Contáctanos</a></font></span></strong></p>
                          <p style="margin-top: 0; margin-bottom: 0"> <img src="images/balons.gif" width="10" height="10"><font face="Verdana" style="font-size: 8pt"><span lang="es"><strong style="font-weight: 400"><a href="http://www.cmblackriver.metropoliglobal.com/menubars.htm">Menubars</a></strong></span></font></p>
                          <p style="margin-top: 0"> <img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://www.cmblackriver.metropoliglobal.com/skins.htm">Skins<br>
                            </a></font></span></strong><img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://www.cmblackriver.metropoliglobal.com/recomiendanos.php">Recomendar<br>
                            </a></font></span></strong><img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://www.cmblackriver.metropoliglobal.com/enlazanos.htm">Enl&aacute;zanos</a></font></span></strong> 
                            <strong style="font-weight: 400"></strong> </p></td>
                      </tr>
                    </table>
                    <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber3">
                      <tr> 
                        <td width="100%" height="183" valign="top"> <table width="80%" border="0">
                            <tr> 
                              <td>&nbsp;</td>
                            </tr>
                          </table>
no me entra todo en un mensaje, lo po ngo en el siguiente lo que queda
  #4 (permalink)  
Antiguo 16/08/2003, 15:56
BLACK RIVER
Invitado
 
Mensajes: n/a
Puntos:
Aquí el otro trozo:
Código PHP:
                          <table width="115" border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF">
                            <tr> 
                              <td width="111" height="21" bgcolor="#D8D8C4"> <p align="center"><img src="http://www.cmblackriver.metropoliglobal.com/images/botones/managers.gif" width="106" height="20"><strong> 
                                  <font size="1"> </font></strong></p></td>
                            </tr>
                            <tr> 
                              <td valign="top"><img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://www.cmblackriver.metropoliglobal.com/guias.htm">Guías</a><br>
                                <img src="images/balons.gif" width="10" height="10"><font face="Verdana" style="font-size: 8pt"><span lang="es"><strong style="font-weight: 400"><a href="once_inicial.htm">11 
                                inicial</a></strong></span></font> <br>
                                <img src="images/balons.gif" width="10" height="10"><font face="Verdana" style="font-size: 8pt"><span lang="es"><strong style="font-weight: 400"><a target="_top" href="http://www.cmblackriver.metropoliglobal.com/downloads.htm">Downloads</a></strong></span></font> 
                                <br>
                                <img src="images/balons.gif" width="10" height="10"><font face="Verdana" style="font-size: 8pt"><span lang="es"><strong style="font-weight: 400"><a href="http://www.cmblackriver.metropoliglobal.com/jugadores.php">Jugadores</a></strong></span></font> 
                                <br>
                                <img src="images/balons.gif" width="10" height="10"><font face="Verdana" style="font-size: 8pt"><span lang="es"><strong style="font-weight: 400"><a href="http://www.cmblackriver.metropoliglobal.com/screenshots.htm">Screenshots</a></strong></span></font> 
                                </font></span></strong></td>
                            </tr>
                          </table>
                          <table width="77%" border="0">
                            <tr> 
                              <td>&nbsp;</td>
                            </tr>
                          </table>
                          <table width="100%" border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#AAAA7D">
                            <tr> 
                              <td width="100%" height="21" bgcolor="#D8D8C4"><div align="center"><img src="http://www.cmblackriver.metropoliglobal.com/images/botones/datosweb.gif" width="106" height="20"></div></td>
                            </tr>
                            <tr> 
                              <td valign="top"><img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://cmblackriver.metropoliglobal.com/foro/enviar_noticia.php">Enviar 
                                Noticia </a></font></span></strong><br> <img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://www.cmblackriver.metropoliglobal.com/colaboradores.htm">Quienes 
                                somos<br>
                                </a></font></span></strong><img src="images/balons.gif" width="10" height="10"><strong style="font-weight: 400"><span lang="es"><font face="Verdana" style="font-size: 8pt"><a href="http://www.cmblackriver.metropoliglobal.com/mapa_del_web.htm">Mapa 
                                del web</a></font></span></strong></td>
                            </tr>
                          </table>
                          <table width="78%" border="0">
                            <tr> 
                              <td>&nbsp;</td>
                            </tr>
                          </table></td>
                      </tr>
                    </table>
                    <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#AAAA7D" width="98%" id="AutoNumber4">
                      <tr> 
                        <td width="100%" valign="top" bgcolor="#D8D8C4"><div align="center"><span lang="es"><b> 
                            <img src="http://www.cmblackriver.metropoliglobal.com/images/botones/equipacion.gif" width="106" height="20"> 
                            </b></span></div></td>
                      </tr>
                      <tr> 
                        <td width="100%"> <p align="center"> <img src="images/camiseta_pantalon_cmbr.gif" width="86" height="110"></td>
                      </tr>
                    </table>
                    <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="80%" id="AutoNumber5">
                      <tr> 
                        <td width="100%">&nbsp;</td>
                      </tr>
                    </table>
                    <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#AAAA7D" width="75%" id="AutoNumber6">
                      <tr> 
                        <td width="100%" bgcolor="#D8D8C4" height="21"> <p align="center"><img src="http://www.cmblackriver.metropoliglobal.com/images/botones/busca.gif" width="106" height="20"></td>
                      </tr>
                      <tr> 
                        <td width="100%" height="95"> <table width="113" height="89" border=0 cellpadding="0" cellspacing=0 bordercolor="#111111" bgcolor=#FFFFFF style="border-collapse: collapse">
                            <tr valign=top> 
                              <td width="135" height="89" bgcolor="#D8D8C4"> <p style="margin-top: 0; margin-bottom: 0" align="center"> 
</body>
<!-- InstanceEnd --></html>
<?php
ob_end_flush
();
?>
aún me falta más por poner, pero con eso creo que os arregláis, no es así?? :NO:
  #5 (permalink)  
Antiguo 16/08/2003, 18:18
Avatar de Tx
Tx
 
Fecha de Ingreso: enero-2002
Ubicación: Cba - Arg
Mensajes: 188
Antigüedad: 22 años, 3 meses
Puntos: 1
Hola BLACK RIVER....
Tal vez sea mi humor de hoy pero....
Ayudaría y mucho, si es que explicas que es lo que quieres hacer con ese script, lo mismo que por lo visto llamas a un archivo externo "funciones.js", que es lo que tiene eso?.
Por favor, para la próxima, ten un poquito de consideración, te estoy tratando de ayudar!!; que si yo te tiro una ristra de código incluido con código html y te pido ayuda, sin decirte que es lo que necesito?, tengo que leer todo el código para deducir que es lo que hace?, y si esta en "funciones.js" el error?, no me parece...

Disculpa si soy un poco chocante con mi respuesta.
Espero que lo tomes como una sugerencia.

Saludos y hasta pronto....
  #6 (permalink)  
Antiguo 17/08/2003, 01:10
BLACK RIVER
Invitado
 
Mensajes: n/a
Puntos:
no tranquilo. en funciones.js tengo funciones XD

por ejemplo... mejor te lo pongo

[php
//************************************************** **********************************************
//********************* FUNCION GENERICA PARA ABRIR VENTANAS *************************************
//************************************************** **********************************************

function ventana(url,ventana,anchura,altura){
//Valores Top y Left para centrar la ventana en la pantalla
LeftPosition = (screen.width) ? (screen.width-anchura)/2 : 0;
TopPosition = (screen.height) ? (screen.height-altura)/2 : 0;

//Cadena con la configuración de la ventana
opciones="height="+altura+",width="+anchura+",top= "+TopPosition+",left="+LeftPosition;
opciones=opciones+",scrollbars=no,resizable=no,alw aysRaised=yes,status=no,toolbar=no";

//Mostramos la nueva ventana
win = window.open(url,ventana,opciones)

//Si no tiene el foco se lo ponemos
if(win.window.focus){
win.window.focus();
}
}

<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=250,height=250,left = 275,top = 175');");
}
</script>

//************************************************** **********************************************
//********************* FUNCION PARA ABRIR VENTANA DE IMAGENES ***********************************
//************************************************** **********************************************

function ventanaimg(url,ventana,anchura,altura){
//Valores Top y Left para centrar la ventana en la pantalla
LeftPosition = (screen.width) ? (screen.width-anchura)/2 : 0;
TopPosition = (screen.height) ? (screen.height-altura)/2 : 0;

//Cadena con la configuración de la ventana
opciones="height="+altura+",width="+anchura+",top= "+TopPosition+",left="+LeftPosition;
opciones=opciones+",scrollbars=yes,resizable=no,al waysRaised=yes,status=no,toolbar=no";

//Mostramos la nueva ventana
win = window.open(url,ventana,opciones)

//Si no tiene el foco se lo ponemos
if(win.window.focus){
win.window.focus();
}
}

<!--rollover-->
<script language="JavaScript1.2">

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)", 50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpa city)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

</script>

//************************************************** **********************************************
//********************* FUNCIONES PARA CAMBIAR PROPS DE OBJETOS DE FORM **************************
//************************************************** **********************************************
function dentro(objeto){
document.all(window.event.srcElement.name).style.b ackground="#F4F4F4";
}

function fuera(objeto){
document.all(window.event.srcElement.name).style.b ackground="#FFFFFF";
}

//************************************************** **********************************************
//********************* FUNCION PARA SALTAR A PAGINA DE BLOQUEO **********************************
//************************************************** **********************************************
function bloqueo(){
location.replace("mantenimiento.php");
}

//************************************************** **********************************************
//******************************* FUNCION PARA ENVIAR ENCUESTAS **********************************
//************************************************** **********************************************
function enviarencuesta(){
document.forms.frmEncuesta.submit();return false;
}[/php]
  #7 (permalink)  
Antiguo 17/08/2003, 13:24
Avatar de Bravenap  
Fecha de Ingreso: noviembre-2002
Ubicación: Los Arroyos, El Escorial, Madrid
Mensajes: 2.084
Antigüedad: 21 años, 5 meses
Puntos: 4
Bueno, BLACK RIVER, vuelves a caer y pones todo el churro entero para que nos perdamos entre las líneas. ¿no te ha servido la "regañina"?

En fín, es igual. Vamos a ver, lo primero de todo es que en un archivo .js no tienen que aparecer las etiquetas de <script>. Que vaya en un archivo .js ya implica que es un script para que el navegador lo interprete.

En segundo lugar, después de <body> se te ha colado una etiqueta de cierre de estilo </style>.

Poco más te puedo decir, porque evidentemente no me lo he leido todo. Hay que ir al grano y explicando las cosas que quieres y para que lo quieres.

Un saludo.
__________________
¡¡NO A LA GUERRA!!
Si ponemos a nuestros mensajes títulos adecuados, la gente se animará más a abrirlos y resultarán más útiles en las busquedas. ¡No a los ayuuudaaa, urgenteee y similares!
  #8 (permalink)  
Antiguo 17/08/2003, 15:33
BLACK RIVER
Invitado
 
Mensajes: n/a
Puntos:
Oh, gracias, sería uno de esos el problema, quité los dos y no me da ni un solo error!!! :d gracias tio
  #9 (permalink)  
Antiguo 18/08/2003, 10:28
Avatar de Bravenap  
Fecha de Ingreso: noviembre-2002
Ubicación: Los Arroyos, El Escorial, Madrid
Mensajes: 2.084
Antigüedad: 21 años, 5 meses
Puntos: 4
De nada. Lo más seguro es que fuera sólo lo del archivo .js.

Un saludo.
__________________
¡¡NO A LA GUERRA!!
Si ponemos a nuestros mensajes títulos adecuados, la gente se animará más a abrirlos y resultarán más útiles en las busquedas. ¡No a los ayuuudaaa, urgenteee y similares!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:52.