javascript popup image
- by sam
folks.,
i need to popup image on image hover?the image should be placed just above mouse pointer?
i tried to implement event.x,event.y.. but it is not positoning well in all browsers..?is css need to be used here or please give me javascript code..
Code sample
function Large(obj,id,e)
{
var imgbox=document.getElementById("imgbox");
// this is div tag,inside div i am placing imagebutton..
var imgbtn=document.getElementById('<%=ImageButton3.ClientID%>');
imgbox.style.visibility='visible';
imgbtn.src=obj;
imgbox.style.left=event.x;
imgbox.style.top= event.y;
}
thank you