Foros del Web » Creando para Internet » HTML »

Error sintaxis

Estas en el tema de Error sintaxis en el foro de HTML en Foros del Web. Hola a todos. Tengo un problema con un archivo html que me tira error de sintaxis pero solo en IExplorer, en Chrome y Firefox no ...
  #1 (permalink)  
Antiguo 24/07/2010, 11:32
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Error sintaxis

Hola a todos.

Tengo un problema con un archivo html que me tira error de sintaxis pero solo en IExplorer, en Chrome y Firefox no lo tira, y ademas aunque muestre que hay un error, tanto la pagina html como el objeto de java funcionan perfectamente.
Detalles de error de página web

Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.30618; Media Center PC 5.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; SLCC1; Tablet PC 2.0)
Fecha: Sat, 24 Jul 2010 17:26:48 UTC


Mensaje: Carácter no válido
Línea: 1
Carácter: 1
Código: 0
URI: file:///D:/launchervarios/weblaunch/LunchRight_files/LunchRight_files/injection_graph_func.js


Mensaje: Carácter no válido
Línea: 1
Carácter: 1
Código: 0
URI: file:///D:/launchervarios/weblaunch/LunchRight_files/LunchRight_files/injection_graph_func.js


Mensaje: Carácter no válido
Línea: 1
Carácter: 1
Código: 0
URI: file:///D:/launchervarios/weblaunch/LunchRight_files/LunchRight_files/injection_graph_func.js


Os pego aqui el codigo a ver si alguien me puede decir que lo esta ocasionando:

<html><head>
<!-------- Launcher Notice By MasterJeus -- Hastle Network Games -- www.hastlegames.com ----------->
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Launcher Derecho</title>
<style type="text/css">
<!--
body {
margin: 0px;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
A:link { text-decoration:none; color: #C69A6B; text-decoration:none; }
A:visited { text-decoration:none; color: #C69A6B; text-decoration:none; }
A:active { text-decoration:none; color: #C69A6B; text-decoration:none; }
A:hover { text-decoration:none; color: #C69A6B; text-decoration:none; }

.t_event { font-family: Dotum,DotumChe,Arial; font-size: 11px; color: #CE753A;letter-spacing:-1px; }
.t_news { font-family: Dotum,DotumChe,Arial; font-size: 11px; color: #C69A6B;letter-spacing:-1px;}
.t_news_b { font-family: Dotum,DotumChe,Arial; font-size: 11px; color: #C69A6B; font-weight : bold ;}
-->
</style><script charset="utf-8" id="injection_graph_func" src="LunchRight_files/injection_graph_func.js"></script></head><body style="border: 0px none ;" leftmargin="0" topmargin="0" scroll="no" oncontextmenu="return false" ondragstart="return false" onselectstart="return false" bgcolor="#000000" marginheight="0" marginwidth="0">
<table border="0" cellpadding="0" cellspacing="0" width="251" height="282">
<tbody><tr>
<td background="LunchRight_files/right_bg.gif" valign="top">

<iframe src="LunchRight_files/RightSlide.htm" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" width="251" frameborder="0" height="25"></iframe>


<iframe src="LunchRight_files/RightNotice.htm" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" width="251" frameborder="0" height="100"></iframe>


<table border="0" cellpadding="0" cellspacing="0" width="100" height="10">
<tbody><tr>
<td></td>
</tr>
</tbody></table>

<iframe src="LunchRight_files/RightBanner.htm" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" width="251" frameborder="0" height="133"></iframe>

</td>
</tr>
</tbody></table>
</body></html>

Última edición por Yengaman; 24/07/2010 a las 11:37
  #2 (permalink)  
Antiguo 24/07/2010, 11:33
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Error sintaxis

El script de java en cuestion es este:

var skype_injection_path = 'chrome://skype_ff_toolbar_win/content/';
var skype_tool = null;

/*window.addEventListener("click",skype_click_handl er,true);
function skype_click_handler(event)
{
if (skype_tool)
skype_tool.closemenu();
//HideSkypeMenuFull();
} */

//CALL BUTTON
var SkypeActiveCallButtonPart = 0;
function SkypeSetCallButtonPart(obj)
{
if (obj.getAttribute('id') == '__skype_highlight_id_left')
{
SkypeActiveCallButtonPart = 0;
}
else if (obj.getAttribute('id') == '__skype_highlight_id_right')
{
SkypeActiveCallButtonPart = 1;
}
}

function SkypeSetCallButton(obj, hl, isInternational, isFax)
{
var cb_part_l = null;
var cb_part_ml = null;
var cb_part_mr = null;
var cb_part_r = null;
if (obj.getAttribute('rtl') == 'false')
{
cb_part_l = obj.firstChild.firstChild;
cb_part_ml = obj.firstChild.lastChild;
cb_part_mr = obj.lastChild.firstChild;
cb_part_r = obj.lastChild.lastChild;

cb_flag = obj.firstChild.lastChild.firstChild;
if (cb_flag && cb_flag.isSameNode(obj.firstChild.firstChild.first Child) == true)
cb_flag = null;
}
else
{
cb_part_l = obj.lastChild.lastChild;
cb_part_ml = obj.lastChild.firstChild;
cb_part_mr = obj.firstChild.lastChild;
cb_part_r = obj.firstChild.firstChild;

cb_flag = obj.lastChild.firstChild.lastChild;
if (cb_flag && cb_flag.isSameNode(obj.lastChild.lastChild.lastChi ld) == true)
cb_flag = null;
}

if (hl == 1)
{
cb_part_l.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_mouseover_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_mouseover_m.gif')";
cb_part_mr.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_mouseover_m.gif')";


if (isInternational == "0")
{
if (SkypeActiveCallButtonPart == 0) //left
{
cb_part_r.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_mouseonflag_r"+(isFax?"_fax":"")+".gif')";
//shadow
if (cb_flag)
{
cb_flag.style.top = '1px';
cb_flag.style.left = '1px';
/*top right bottom left*/
cb_flag.style.padding = '1px 0px 0px 1px';//'2px 0px 0px 0px';
}
}
else //right
{
cb_part_r.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_mouseover_r"+(isFax?"_fax":"")+".gif')";
//flag
if (cb_flag)
{
cb_flag.style.top = '0px';
cb_flag.style.left = '0px';
cb_flag.style.padding = '0px 1px 1px 0px';//'0px 1px 1px 0px';
cb_flag.style.margin = '0px 0px 2px 0px;';
}
}
}
else
{
cb_part_r.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_mouseover_r"+(isFax?"_fax":"")+".gif')";
//flag
if (cb_flag)
{
cb_flag.style.top = '0px';
cb_flag.style.left = '0px';
cb_flag.style.padding = '0px 1px 1px 0px';
cb_flag.style.margin = '0px 0px 2px 0px;';
}
}
}
else
{
cb_part_l.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_normal_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_normal_m.gif')";
cb_part_mr.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_normal_m.gif')";
cb_part_r.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_normal_r"+(isFax?"_fax":"")+".gif')";

//flag
if (cb_flag)
{
cb_flag.style.top = '0px';
cb_flag.left = '0px';
cb_flag.style.padding = '0px 1px 1px 0px';
cb_flag.style.margin = '0px 0px 2px 0px;';
}
}
}
var skype_cb_l = '';
var skype_cb_m = '';
var skype_cb_r = '';

function SkypeSetCallButtonPressed(obj, pr, isInternational, isFax)
{
var cb_part_l = null;
var cb_part_ml = null;
var cb_part_mr = null;
var cb_part_r = null;
if (obj.getAttribute('rtl') == 'false')
{
cb_part_l = obj.firstChild.firstChild;
cb_part_ml = obj.firstChild.lastChild;
cb_part_mr = obj.lastChild.firstChild;
cb_part_r = obj.lastChild.lastChild;

cb_flag = obj.firstChild.lastChild.firstChild;
if (cb_flag && cb_flag.isSameNode(obj.firstChild.firstChild.first Child) == true)
cb_flag = null;
}
else
{
cb_part_l = obj.lastChild.lastChild;
cb_part_ml = obj.lastChild.firstChild;
cb_part_mr = obj.firstChild.lastChild;
cb_part_r = obj.firstChild.firstChild;

cb_flag = obj.lastChild.firstChild.lastChild;
if (cb_flag && cb_flag.isSameNode(obj.lastChild.lastChild.lastChi ld) == true)
cb_flag = null;
}
if (pr == 1)
{
skype_cb_l = cb_part_l.style.backgroundImage;//getAttribute('src');
skype_cb_m = cb_part_mr.style.backgroundImage;
skype_cb_r = cb_part_r.style.backgroundImage;//getAttribute('src');

if (isInternational == "0")
{
if (SkypeActiveCallButtonPart == 0) //left
{
//obj.firstChild.firstChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_l.gif');
cb_part_l.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
}
else //right
{
//obj.firstChild.firstChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_l.gif');
cb_part_l.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
cb_part_mr.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
//obj.lastChild.lastChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_r"+(isFax?"_fax":"")+".gif');
cb_part_r.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_r"+(isFax?"_fax":"")+".gif')";
}
}
else
{
//obj.firstChild.firstChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_l.gif');
cb_part_l.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_l.gif')";
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
cb_part_mr.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_m.gif')";
//obj.lastChild.lastChild.setAttribute('src', 'chrome://skype_ff_toolbar_win/content/cb_down_r"+(isFax?"_fax":"")+".gif');
cb_part_r.style.backgroundImage = "url('chrome://skype_ff_toolbar_win/content/cb_down_r"+(isFax?"_fax":"")+".gif')";
}
}
else
{
//obj.firstChild.firstChild.setAttribute('src', skype_cb_l);
cb_part_l.style.backgroundImage = skype_cb_l;
if (cb_part_l.isSameNode(cb_part_ml) != true)
cb_part_ml.style.backgroundImage = skype_cb_m;
cb_part_mr.style.backgroundImage = skype_cb_m;
//obj.lastChild.lastChild.setAttribute('src', skype_cb_r);
cb_part_r.style.backgroundImage = skype_cb_r;
}
}
  #3 (permalink)  
Antiguo 24/07/2010, 11:34
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Error sintaxis

La continuacion...

//COMMANDS
function SkypeToolBarInit(tb)
{
skype_tool = tb;
}

function doRunCMDSkype(event, link, id, name)
{
if (skype_tool)
{
if (link == 'chdial')
{
var obj=event.originalTarget;
if (!obj)
obj=event;

/*var brd=SkypeGetBounds(obj);
var docelem = document.documentElement;
if ((docelem.scrollTop == 0 && document.body.scrollTop != 0) || (docelem.scrollLeft == 0 && document.body.scrollLeft != 0))
docelem=document.body;

scrollY=docelem.scrollTop;
scrollX=docelem.scrollLeft;

var my=brd.top+16, mx=brd.left;/*brd.height*/

//var oDoc = obj.ownerDocument;

/*var obj2 = document.getBoxObjectFor(element);

var html_box = new XPCNativeWrapper(obj2).wrappedJSObject;
if (!html_box)
html_box = obj2;

var screenX = html_box.screenX;
var screenY = html_box.screenY;
*/

SkypeFlagColor='rgb(184, 203, 255)';
skype_tool.chprefix(id, document, obj, screenY);
}
else if (link == 'copy')
skype_tool.copy_num(id, document);
else if (link == 'sms')
skype_tool.sms(id);
else if (link == 'add')
skype_tool.add(id, name);
else
skype_tool.call(id);
}
}

function runCMDSkype(link)
{
HideSkypeFull();
doRunCMDSkype(null, link, skype_curid, skype_cur_name);
}

//FLAG TOOLTIP
function HideSkypeFull()
{
// skype_active=false;
document.getElementById('skype_dc').style.visibili ty = "hidden";
}

function ShowSkype(event, title)
{
// skype_active=true;
DoShowSkype(event.pageX, event.pageY + 20, title);
}

function DoShowSkype(cX, cY, title)
{
var menu = document.getElementById('skype_dc');
menu.firstChild.nodeValue = title;
menu.style.visibility = "visible";

menu.style.left = cX + 'px';
menu.style.top = cY + 'px';

}
var SkypeFlagColor = 'rgb(184, 203, 255)';
function doSkypeFlag(obj, brd)
{
SkypeFlagColor = brd;
}

//MENU
var skype_curid = 0,skype_active = false,skype_showseed = 0,skype_ctm = 0,skype_cur_name = '';
var skype_curbutton = null;
function SkypeCheckCallButton(obj)
{
var res = false;
if (skype_curbutton && skype_curbutton.isSameNode(obj) == true)
res = true;

skype_curbutton = obj;
return res;
}

function HideSkypeMenu()
{ //skype_tool.sd('HideSkypeMenu skype_active='+skype_active);
if (!skype_active)
HideSkypeMenuFull();
else
setTimeout("HideSkypeMenu()", 1000);
}

function HideSkypeMenu2(event)
{
skype_showseed = 0;
if (!skype_active)
HideSkypeMenuFull();
else
{
skype_active = false;
setTimeout("HideSkypeMenu()", 1000);
}
}

function HideSkypeMenuFull()
{ //skype_tool.sd('HideSkypeMenuFull skype_active='+skype_active);
/* skype_active=false;
document.getElementById('skype_menu').style.visibi lity="hidden";*/
}

function CheckSkype()
{
skype_active = true;
}

function ShowSkypeMenu(event, call_msg, id, callto, isMobile, name, x, y)
{
try {
/* skype_active=true; //skype_tool.sd('ShowSkypeMenu skype_curid='+skype_curid+' callto='+callto+' id='+id);
if(document.getElementById('skype_menu').style.vis ibility!="hidden" && skype_curid==callto)//id
return;
skype_showseed=Math.random();
clearTimeout(skype_ctm);
var obj=event.originalTarget;
if (!obj)
obj=event;
// var brd=SkypeGetBounds(obj);
//var pcx=brd.left, pcy=brd.top+16;/*brd.height;* / //alert(pcx+'--'+pcy);

scrolls=SkypeGetDivScroll(obj);

var pcx = x+scrolls.left, pcy = y+scrolls.top;

skype_ctm=setTimeout('DoShowSkypeMenu(\''+call_msg +'\','+skype_showseed+',"'+callto+'",'+pcx+','+pcy +','+isMobile+',"'+name+'")',0);*/
} catch(e) {
}
}

function DoShowSkypeMenu(call_msg, seed, callto, pcx, pcy, isMobile, name)
{
try { //skype_tool.sd('DoShowSkypeMenu seed='+seed+' skype_showseed='+skype_showseed);
/* if(seed!=skype_showseed)
return;
skype_showseed=0;
skype_curid=callto;
skype_cur_name=name;
var menu=document.getElementById('skype_menu');

var my=pcy, mx=pcx;

var menubox=document.getBoxObjectFor(menu);
//var docelem = document.documentElement;
//alert(menubox.height);
//alert('doc h='+document.height + ' y='+my+' menu h='+menubox.height);
var docH=document.height;
if (docH < document.documentElement.clientHeight) docH=document.documentElement.clientHeight;
if (docH < document.documentElement.scrollHeight) docH=document.documentElement.scrollHeight;
if (docH < document.body.clientHeight) docH=document.body.clientHeight;
if (docH < document.body.scrollHeight) docH=document.body.scrollHeight;
if ((my + menubox.height) > docH)
my=my - 16 - menubox.height;
if (my < 0) my=0;
// if (document.height != 0 && (my + menubox.height) > document.height && (my + menubox.height) > document.documentElement.scrollHeight)//docelem.clientHeight)
//my=document.height - menubox.height;

var docW=document.width;
if (docW < document.documentElement.clientWidth) docW=document.documentElement.clientWidth;
if (docW < document.documentElement.scrollWidth) docW=document.documentElement.scrollWidth;
if (docW < document.body.clientWidth) docW=document.body.clientWidth;
if (docW < document.body.scrollWidth) docW=document.body.scrollWidth;
if ((mx + menubox.width) > docW)
mx=document.width - menubox.width;
if (mx < 0) mx=0;
// if (document.width != 0 && (mx + menubox.width) > document.width && (mx + menubox.width) > document.documentElement.scrollWidth)//docelem.clientWidth)

menu.style.left=mx+'px';
menu.style.top=my+'px';

skype_tool.doFixMenu(menu, isMobile, document);

menu.style.visibility="visible"; */
} catch(e) {
}
}

function SkypeSetBgColor(obj, color)
{
try {
obj.lastChild.style.backgroundColor = color;
} catch(e) {
}
}

//UTIL
function SkypeGetBounds(element)
{
try {
var left = element.left;
var top = element.top;
while (!(element.tagName.toLowerCase() == 'span' && element.getAttribute('id') == '__skype_highlight_id'))
{
element = element.parentNode;
}
left = element.offsetLeft;
top = element.offsetTop;
for (var parent = element.offsetParent; parent; parent = parent.offsetParent)
{
left += parent.offsetLeft;
top += parent.offsetTop;
if (parent.tagName.toLowerCase() == 'div')
{
left -= parent.scrollLeft;
top -= parent.scrollTop;
}
}


return {left: left, top: top, width: element.offsetWidth, height: element.offsetHeight};
} catch(e) {
}
}

function SkypeGetDivScroll(element)
{
try {
var left = 0;
var top = 0;
while (!(element.tagName.toLowerCase() == 'span' && element.getAttribute('id') == '__skype_highlight_id'))
{
element = element.parentNode;
}

for (var parent = element.offsetParent; parent; parent = parent.offsetParent)
{
if (parent.tagName.toLowerCase() == 'div')
{
left -= parent.scrollLeft;
top -= parent.scrollTop;
}
}


return {left: left, top: top};
} catch(e) {
}
}
  #4 (permalink)  
Antiguo 24/07/2010, 11:36
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Error sintaxis

Aunque no creo que haga falta mirar el codigo entero viendo que el error es justo al principio, pero bueno mejor que sobre que no que falte :)

Muchas gracias de antemano y perdon por el tochazo

Un Saludo
  #5 (permalink)  
Antiguo 24/07/2010, 12:20
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Error sintaxis

Yengaman:
Mira, es bastante complejo el código, y si bien JavaScript no es mi fuerte, he notado que en varias lineas tienes espacios en blanco como el que sigue:

firstChild.first Child) == true)

y esa es tan solo una.

Saludos
  #6 (permalink)  
Antiguo 24/07/2010, 13:00
Avatar de zerokilled
Javascripter
 
Fecha de Ingreso: abril-2009
Ubicación: Isla del Encanto, La Borinqueña [+>==]
Mensajes: 8.050
Antigüedad: 15 años
Puntos: 1485
Respuesta: Error sintaxis

@emprear, el error de los espacios no es propio del codigo. ese espacio se lo agrega vbulletin en el cuerpo de los mensajes que se publica. por eso se recomienda que los codigos, por mas simple que sea, envuelvan en las bbcode adecuados para que vbulletin no corropa el codigo.

@yengaman, el codigo quizas no sea tan complejo pero estoy vago como para reparar un codigo que vbulletin estropeo. en adicion, parece un codigo prefabricado y a algunos de nosotros no da alto de lata revisar codigos prefabricados. por otro lado, aparentemente se necesita algun plugins de skype instalado en el navegador. son detalles que deberias aclarar porque no todos usamos skype. preferiblemente deberias subir la aplicacion a un hosting e indicarnos la direccion.
__________________
la maldad es una virtud humana,
y la espiritualidad es la lucha del hombre contra su maldad.
  #7 (permalink)  
Antiguo 24/07/2010, 23:51
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Error sintaxis

Muchas gracias por vuestras respuestas.

Efectivamente es un código prefabricado, la pagina html forma parte del launcher.exe del cliente de un juego para el cual estoy creando un servidor.
Dentro de ese launcher hay 2 ventanas con código html para mostrar noticias, actualizaciones, etc. Por eso que quería saber si tenia arreglo el error que os comentaba, en el peor de los casos creare una pagina html mas sencilla, pero me gustaria aprovechar esta ya que es bastante vistosa.

Aqui os dejo un enlace con la pagina en si.

http://mudestiny.byethost3.com/weblaunch/LunchRight.html

Tiene que ser una tontería porque se ve perfectamente y funciona.

Lo del skype que comentas, no entiendo para que necesita usarlo, si es solo una pagina html y no tiene ni sonido xd, pero vamos ni idea

Perdon si estoy siendo pesao, pero es que por mas que he probado a modificar los archivos en mi HD siempre me tira el mismo error de sintaxis.

Cualquier ayuda es bien recibida

Un saludo!
  #8 (permalink)  
Antiguo 25/07/2010, 01:16
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Error sintaxis

Yengaman:

fijate en este link
http://foros.emprear.com/jsdemo/launch/RightSlide.html
funciona y ya no tira el error en IE

pero aisle tu right.htm del resto

declare la variable var sDiv y
declare la variable var tmp
y te corregi el type en
<script type="text/javascript">
var sNScroll = "";
...
que está abajo de todo.

En firefox se observan 2 errores más
Aviso: function SkypeGetBounds does not always return a value
Archivo fuente: http://foros.emprear.com/jsdemo/laun..._graph_func.js
Línea: 438, Columna: 1
Código fuente:
}
----------
Aviso: function SkypeGetDivScroll does not always return a value
Archivo fuente: http://foros.emprear.com/jsdemo/laun..._graph_func.js
Línea: 463, Columna: 1
Código fuente:
}

pero no les des mayor importancia, ya vi ese error en otras scripts, pero siempre funcionaron.

tu injection_graph_func.js no lo modifique para nada
Igual no estoy seguro porque vi que se cargan varios frames y no se si alguna otra cosa pueda estar interfiriendo.

bueno, solo es cuestion de probar.
revisa los códigos del link que te deje.
saludos
  #9 (permalink)  
Antiguo 25/07/2010, 08:55
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Error sintaxis

Mil gracias emprear!!!
Efectivamente el Rightslide ya no tira error

De los 3 errores de sintaxis que salian, ahora solo tira 2, que seran de las otras 2 partes Rightnotice y Rightbanner

Quedaria asi:

http://mudestiny.byethost3.com/weblaunch/LunchRight.html

Tu crees que se le podria aplicar el mismo fix a las otras 2 partes que quedan?

Los errores que comentas que salen en firefox, es cierto que no molestan para nada ya que no se ven en el launcher.exe que utiliza el Iexplorer por defecto.

Muchisimas gracias por dedicarme tu tiempo

Un Saludo!!
  #10 (permalink)  
Antiguo 25/07/2010, 11:43
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Error sintaxis

Yengaman:
El problema no es solo de javascript, sino que has hecho una cosa muy confusa.

charset=EUC-KR" ? eso es para coreano
charset=x-windows-949 ? eso ni me molesté para ver que es.

llamas a la script en todos los archivos, la unica que lo necesita es la que hace el scroll

Plagaste los body de atributos no validos (ni te preocupes en proteger el código, con que deshabiliten javascript pueden ver lo que quieran)

Para qué tantas tablas? en las noticias, vaya y pase, pero el resto.

bueno, se acabaron las criticas... por fin dirás !!!

te dejo esto, lo limpie un poco
http://foros.emprear.com/jsdemo/launch/
(lo voy a dejar un par de dias)
Carga el archivo principal, y los otros por separado para ver si hay errores de javascript
Revisa los códigos y a leer algun manual urgente

Saludos
  #11 (permalink)  
Antiguo 25/07/2010, 13:56
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Error sintaxis

Eres un crack!!

Justo se lo había enseñado a un coleguilla que entiende mas que yo(cosa que no es dificil ) y me comentaba lo mismo, que estaban llenos de "basura" esos files.

El problema es que cada uno era de un padre como quien dice, y bueno el caos que había ya lo has visto tu.

Lo de que viniera en coreano es porque el juego original es en ese idioma, un lío vamos.

Bueno funciona todo que da gusto, carga mucho mas rápido y encima no tira errores, no tengo palabras tío, muchísimas gracias, lo has dejado perfecto.

Para que yo me entere, los errores de sintaxis que tiraba, era porque se llamaba al script de java en los otros archivos no?

Que manual me recomiendas para ir aprendiendo, ya has visto que estoy muy verde jaja

Si vienes por Madrid estas invitado a todas las cañas del mundo jajaja

Un abrazo!!

Gracias mil

PD: ya he copiado todos los archivos, asi que puedes borrarlos tranquilamente para que no te ocupen espacio
  #12 (permalink)  
Antiguo 25/07/2010, 15:10
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Error sintaxis

Yengaman:


manuales
http://www.librosweb.es/
y google por supuesto

dónde estaban los errores?, sinceramente ni me fijé, sólo saqué todo lo que sabía positivamente que estaba mal y se corriegieron, puede que en las cosas que cargabas desde el body, body onload="return false", creo que decia.

Estoy bastante lejos de Madrid, sin embargo tengo alli viviendo 3 hermanos desde hace tiempo, así como que no aprendas algo pronto, te mando a los tres... y que se vayan con sus hijos también !!!

Un abrazo

Etiquetas: sintaxis
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 18:48.