Hi there
http://www.dynamicdrive.com/dynamici...stickynote.htm
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.
Hi there
http://www.dynamicdrive.com/dynamici...stickynote.htm
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.
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:
To add 100 pixels to it, do like so:Code:objref.style.top=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.Code:objref.style.top=100+scroll_top+docheight/2-objheight/2+"px"
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks