Forum Moderators: open
Thanks alot!
<script>
var showmenu=1
if (document.layers) {
document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;
if (document.layers){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;
function handlerMM(e){
x = (document.layers)? e.pageX : event.clientX
y = (document.layers)? e.pageY : event.clientY
}
function dblclick() {
if (document.all && showmenu==1) {
document.all.printpic.style.posLeft=x
document.all.printpic.style.posLeft=x
document.all.printpic.style.posTop=y
}
if (document.layers && showmenu==1) {
document.printpic.left=x
document.printpic.left=x
document.printpic.top=y
}
if (document.all && showmenu!=1) {
document.all.printpic.style.posLeft=x-10000
}
if (document.layers && showmenu!=1) {
document.printpic.left=x-10000
}
showmenu=showmenu*-1
}
</script>
Looks to me as it is capturing the mouse events (double-clicks) of the visitor to the site, getting the x&y co-ordinates and showing the menu relative to that mouse event.
If I had not been half asleep I might have been able to turn it into pseudo code for you...
HTH,
-George