Changeset 207


Ignore:
Timestamp:
Feb 12, 2007 2:18:34 PM (6 years ago)
Author:
dkg
Message:

PN: now creating the pointer with a png instead of a ridiculous table.

Location:
trunk/jobs/toft/publicnotes/web
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobs/toft/publicnotes/web/publicnotes.css

    r206 r207  
    4444 
    4545 
     46td.diagtable { display: inline; position: absolute; } 
     47td.diagcell { font-size: 0px; background: #ffb; } 
     48td.diagshadow { font-size: 0px; background: #cc9; } 
     49 
     50img.pointer { display: inline; position: absolute; } 
     51 
    4652/* these aren't working right now:  
    4753 
     
    5965td.shadow-br { padding: 0px; margin: 0px; width: 5px; height: 5px; background-image: url("shadow-br.png"); } 
    6066 
    61 td.diagtable { display: inline; position: absolute; } 
    62 td.diagcell { font-size: 0px; background: #ffb; } 
    63 td.diagshadow { font-size: 0px; background: #cc9; } 
    64  
    6567*/ 
  • trunk/jobs/toft/publicnotes/web/publicnotes.js

    r206 r207  
    7878        var down = 2; 
    7979 
    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()); 
    8182        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"; 
    8384        n.pointer.style.bottom = (off - n.pointer.offsetHeight) + "px"; 
    8485 
    8586        n.style.left = (xx[0] - n.offsetWidth/2) + "px"; 
    8687        n.style.top = (off + down + xx[1] - n.offsetHeight - n.pointer.offsetHeight) + "px"; 
     88}, 
     89 
     90createPointer: function(n) { 
     91        var ret = document.createElement("IMG"); 
     92        ret.src = "pointer.png"; 
     93        ret.alt = ""; 
     94        ret.className = "pointer"; 
     95        return ret; 
    8796}, 
    8897 
Note: See TracChangeset for help on using the changeset viewer.