|
How to dynamically destroy tooltips?
|
|
28th February, 14:27
Post: #1
|
|||
|
|||
|
How to dynamically destroy tooltips?
hi,
I have a page with a lot of thumbnails. Upon hovering a thumbnail, it shows a tooltip, with HTML details. This works fine. However, I do not want to run an "each" loop to create these tooltips upon document load, as that is memory intensive. Instead, I want the following behavior: - Hoverin: dynamically create the tooltip - Hoverout: dynamically destory the previously created tooltip I currently have the following code: JS Code
When I inspect the DOM using Firebug, I notice that a new tooltip is created upon each hover and that it also creates tooltips when hovering out. This quickly piles up and then it crashes the browser. What am I doing wrong? Note: The jQuery hover function takes two arguments, the first is the function to execute when hovering in, the second one is ran when hovering out. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



