Changeset 207
- Timestamp:
- Feb 12, 2007 2:18:34 PM (6 years ago)
- Location:
- trunk/jobs/toft/publicnotes/web
- Files:
-
- 1 added
- 2 edited
-
pointer.png (added)
-
publicnotes.css (modified) (2 diffs)
-
publicnotes.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jobs/toft/publicnotes/web/publicnotes.css
r206 r207 44 44 45 45 46 td.diagtable { display: inline; position: absolute; } 47 td.diagcell { font-size: 0px; background: #ffb; } 48 td.diagshadow { font-size: 0px; background: #cc9; } 49 50 img.pointer { display: inline; position: absolute; } 51 46 52 /* these aren't working right now: 47 53 … … 59 65 td.shadow-br { padding: 0px; margin: 0px; width: 5px; height: 5px; background-image: url("shadow-br.png"); } 60 66 61 td.diagtable { display: inline; position: absolute; }62 td.diagcell { font-size: 0px; background: #ffb; }63 td.diagshadow { font-size: 0px; background: #cc9; }64 65 67 */ -
trunk/jobs/toft/publicnotes/web/publicnotes.js
r206 r207 78 78 var down = 2; 79 79 80 n.pointer = n.appendChild(PN.createDiagonalTable(2*dist + off, off)); 80 /* n.pointer = n.appendChild(PN.createDiagonalTable(2*dist + off, off)); */ 81 n.pointer = n.appendChild(PN.createPointer()); 81 82 n.pointer.style.position = "absolute"; 82 n.pointer.style.left = (n.offsetWidth/2 + dist) + "px";83 n.pointer.style.left = (n.offsetWidth/2 + n.pointer.offsetWidth) + "px"; 83 84 n.pointer.style.bottom = (off - n.pointer.offsetHeight) + "px"; 84 85 85 86 n.style.left = (xx[0] - n.offsetWidth/2) + "px"; 86 87 n.style.top = (off + down + xx[1] - n.offsetHeight - n.pointer.offsetHeight) + "px"; 88 }, 89 90 createPointer: function(n) { 91 var ret = document.createElement("IMG"); 92 ret.src = "pointer.png"; 93 ret.alt = ""; 94 ret.className = "pointer"; 95 return ret; 87 96 }, 88 97
Note: See TracChangeset
for help on using the changeset viewer.

