Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
I added another script instead of updating this with new features.
|
|
|
ok, I'm following your suggestion
anyway I'm going to add the possibility to choose the wanted character to stick pressing it on the keyboard while clicking with the mouse. thanks |
|
|
because innerHTML is a slow access way |
|
|
just to say, now I applied my intended fix I failed this morning. It works nice even where it didn't before. I use the style attribute instead of accessing the top and left properties using dom. for the next versions I'm going to:
|
|
|
yes you're right...I forgot something and the code was not correct. I did a correction this morning because I noticed it didn't work in some situations. the correction didn't work and I was busy to fix it again. For now I'm going to restore the first version. anyway, I decided to use the innerHtml because it was easier to modify the div content for the user. I wanted the div to be a general container for a customized sticky. And so I put my default content on top in a var used to fill the innerHtml. It did work in most of the cases, but I couldn't understand why in some special circumstances the div didn't get positioned at the right coordinates. why do you think I shouldn't use the innerHtml? |
|
|
Cool but you really shouldn't use innerHTML. You should do it like this... (also you forgot a ); after the second setAttribute command)
|