Thread View: chile.comp.programacion
1 messages
1 total messages
Started by gato2006chile
Sun, 15 Oct 2006 03:21
¿Error, javascript?
Author: gato2006chile
Date: Sun, 15 Oct 2006 03:21
Date: Sun, 15 Oct 2006 03:21
23 lines
1884 bytes
1884 bytes
Ocupo el siguiente codigo para obtener unas coordenadas.
En cualquier tipo de Mozilla funciona bien, pero no en IE.
Donde esta el error o esta bien codificado.
function louqesea(idmenu)
...
if (document.layers)
{
x=parseInt(document.id_menu.offsetLeft)+parseInt(document.id_menu.offsetWidth);
y=parseInt(document.id_menu.offsetTop)+parseInt(document.id_item.offsetTop);
}
else if (document.all)
{
x=parseInt(document.all.id_menu.offsetLeft)+parseInt(document.all.id_menu.offsetWidth);
y=parseInt(document.all.id_menu.offsetTop)+parseInt(document.all.id_item.offsetTop);
}
else if (document.getElementById)
{
x=parseInt(document.getElementById(id_menu).offsetLeft) +
parseInt(document.getElementById(id_menu).offsetWidth);
y=parseInt(document.getElementById(id_menu).offsetTop) +
document.getElementById(id_item).offsetTop;
}
............
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads