I need to draw a line between 2 divs. I currently use jQuery.
The following is my HTML code. I need to draw a line from the div with id friend1 to the div with id friend2.
<div style="top:30px;left:95px" id="friend1" original-title="Rafael Rosenberg1">
<a href="./profile.php?id=1"><img src="http://graph.facebook.com/100000796250125/picture" border="0" height="50" width="50"/></a>
</div>
<div style="top:30px;left:250px" id="friend2" original-title="Rafael Rosenberg2">
<a href="./profile.php?id=1"><img src="http://graph.facebook.com/100000796250125/picture" border="0" height="50" width="50"/></a>
</div>
Here is a small library that can draw a line together with jQuery:
http://www.openstudio.fr/Library-for-simple-drawing-with.html