Skip to content

Instantly share code, notes, and snippets.

@artlung
Created May 29, 2024 01:36
Show Gist options
  • Save artlung/49b96f3800a4498922da2f5aa6144b23 to your computer and use it in GitHub Desktop.
Save artlung/49b96f3800a4498922da2f5aa6144b23 to your computer and use it in GitHub Desktop.
I do not miss this.
function show(object,x,y) {
if (document.all && document.all[object]) {
document.all[object].style.left = x+'px';
document.all[object].style.top = y+'px';
document.all[object].style.zIndex = AlwaysTopmostZ;
document.all[object].style.color = '#000';
AlwaysTopmostZ++;
document.all[object].style.visibility = 'visible';
}
else if (document.layers && document.layers[object] != null) {
document.layers[object].left = x;
document.layers[object].top = y;
document.layers[object].zIndex = AlwaysTopmostZ;
document.layers[object].color = '#000';
AlwaysTopmostZ++;
document.layers[object].visibility = 'visible';
}
else if (document.getElementById && (document.getElementById(object) !=null)) {
document.getElementById(object).style.left = x + 'px';
document.getElementById(object).style.top = y + 'px';
document.getElementById(object).style.zIndex = AlwaysTopmostZ;
document.getElementById(object).style.color = '#000';
AlwaysTopmostZ++;
document.getElementById(object).style.visibility = 'visible';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment