Wednesday, January 26, 2011

A forum open source project by asp.net MVC3, POP forum

Source code:
http://popforums.codeplex.com/

Article:
http://weblogs.asp.net/jeff/archive/2011/01/24/the-mvc3-special-sauce-in-pop-forums.aspx

How to get and set coordinate for html element by JQuery offset()

How to get and set coordinate for html element by JQuery offset()
Codes example:
Get
var p = $("p:last");
var offset = p.offset();
p.html( "left: " + offset.left + ", top: " + offset.top );</script>


Set:
<script>$("p:last").offset({ top: 10, left: 30 });</script>


Reference: