1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
7 <style type="text/css" media="screen">
8 body { margin: 1px; padding: 5px; }
9 #marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
11 <script src="../../../src/core.js"></script>
12 <script src="../../../src/support.js"></script>
13 <script src="../../../src/sizzle/sizzle.js"></script>
14 <script src="../../../src/sizzle-jquery.js"></script>
15 <script src="../../../src/traversing.js"></script>
16 <script src="../../../src/data.js"></script>
17 <script src="../../../src/event.js"></script>
18 <script src="../../../src/css.js"></script>
19 <script src="../../../src/offset.js"></script>
20 <script type="text/javascript" charset="utf-8">
22 $('body').click(function() {
23 $('#marker').css( $(this).offset() );
30 <div id="marker"></div>