Jump to content

dmitry.vl

Newbie
  • Posts

    1
  • Joined

  • Last visited

Everything posted by dmitry.vl

  1. Подскажите пожалуйста почему может не работать в FireFox: В ИЕ и Опере показывает Layer1 точно там где надо... а в лисе тупо в левом верхнем углу... Заранее спасибо function test_layer() { obj = document.getElementById("hap_right"); pos = getAbsolutePos(obj); x = pos.x + 249; y = pos.y + 105; document.getElementById("Layer1").style.left = x - 104; document.getElementById("Layer1").style.top = y; document.getElementById("Layer1").style.visibility = "visible"; } function getAbsolutePos(el) { var r = { x: el.offsetLeft, y: el.offsetTop }; if (el.offsetParent) { var tmp = getAbsolutePos(el.offsetParent); r.x += tmp.x; r.y += tmp.y; } return r; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy