JavCursorActive = 1; function JavCursor(txt, customClass){ if(!document.getElementById('tryh436kj43y0842y5i47432')){ div = document.createElement('div'); div.id = 'tryh436kj43y0842y5i47432'; div.style['position'] = 'absolute'; div.style['zIndex'] = '21000'; if(customClass == 1){ div.className = 'customJavCursor'; }else{ div.style['background'] = '#ffffff'; div.style['padding'] = '3px'; div.style['border'] = 'solid #777777 1px'; div.style['color'] = '#000000'; } }else{ div = document.getElementById('tryh436kj43y0842y5i47432'); div.style['display'] = 'block'; div.className = 'customJavCursor'; } div.innerHTML = txt; document.body.appendChild(div); document.onmousedown = function(e) { JavCursorActive = 1; JavCursorGo(e); } document.onclick = function(e) { JavCursorActive = 1; JavCursorGo(e); } document.onmousemove = function(e) { JavCursorActive = 1; JavCursorGo(e); } } function JavCursorGo(e){ try{ div = document.getElementById('tryh436kj43y0842y5i47432'); }catch(e){} offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; if(!offX || !offY){ try{ var offX = e.clientX + document.body.scrollLeft; var ScrollTop = (document.documentElement.scrollTop > 0) ? document.documentElement.scrollTop : document.body.scrollTop; var offY = e.clientY + ScrollTop; }catch(e){} } sizes = getPageSize(); scrll = getPageScroll(); if(!mozilla_ff){ offY += scrll[1]; } var ref = offY + div.offsetHeight + 20; if(ref > (sizes[1] + scrll[1])){ offY = offY - div.offsetHeight - 20; } var ref = offX + div.offsetWidth + 20; if(ref > (sizes[0] + scrll[0])){ offX = offX - div.offsetWidth - 20; } try{ div.style['left'] = (offX) + 15 + 'px'; div.style['top'] = (offY) + 5 + 'px'; }catch(e){} } function JavCursorHide(len){ if(!len){len = '1000';} if(len == 'daksht9q3yokjhae'){ JavCursorActive = 0; try{ document.getElementById('tryh436kj43y0842y5i47432').style['display'] = 'none'; }catch(e){ } }else{ window.setTimeout('JavCursorHide("daksht9q3yokjhae")', len); } }