Jump to content

inline vs. head


Stickybomb

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.