View Full Version : Repositioning Sticky Note

10-03-2005, 01:11 AM
Hi there


I am trying to move down about 100 pixels the appearing sticky note.

I have played around with 'top: -400px;' but no changes take place.

Any clues?

Any help appreciated. Thank you.

10-03-2005, 04:44 AM
That only positions the sticky out of the viewable area of the page prior to its appearance on the scene. It is the code the calculates its actual position when it appears. The final calculation for vertical positioning is done on this line:

objref.style.top=scroll_top+docheight/2-objheight/2+"px"To add 100 pixels to it, do like so:

objref.style.top=100+scroll_top+docheight/2-objheight/2+"px"The line appears twice in the code, once to position the sticky and a second time to update its position if the static option is used. For best results, change both lines identically.