I have this

var x = window.event.clientX;
var y = window.event.clientY;

i get the x and y coordinates on button click

i do this x = x+10;
y = y +10;

how can I now on this position X AND Y, pop up an imageon that position??

The reason I want to do this, I have tree menu. On click of a node, I want "loading.gif" to appear in the position where l child nodes will come out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.