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); Link to comment https://forums.phpfreaks.com/topic/39498-inline-vs-head/ 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. Link to comment https://forums.phpfreaks.com/topic/39498-inline-vs-head/#findComment-190790 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.