Stickybomb Posted February 21, 2007 Share Posted February 21, 2007 ok not sure why this is but when i use the folowing code inline it works fine but when i place it in a function and call the function it only changes the visibility and not the x,y coords. Anyone help me with this? document.getElementById(id).style.visibility = 'visible'; document.getElementById(id).style.top = (event.clientY - 41); document.getElementById(id).style.left = (event.clientX - 20); Quote Link to comment Share on other sites More sharing options...
fenway Posted February 21, 2007 Share Posted February 21, 2007 My guess is that you're not getting the event object correctly when it's not inline. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.