Hello,
First of all, I'm new to jQuery. I have made up a small code with js which shows and hides description box, but it doesnt work in IE. So i decided to write it in jQuery to make everything work. When I startet to go into jQuery, I realized that it would take too much time. Can someone help me write it in jQuery?
JS:
function show(obj,msg){
messageBox=document.getElementById('messageBox');
contents=document.getElementById('contents');
messageBox.style.top=obj.offsetTop+"px";
messageBox.style.left=obj.offsetLeft+obj.offsetWidth+5+"px";
contents.innerHTML=msg;
messageBox.style.display="block";
}
HTML:
<a href='#'>
<img src='images/72.png'class='field' onmouseover="show(this,'[DESCRIPTION]')" onmouseout="close()"/>
</a>
Thanks in advance.