Javascript Tooltips, Popups, Captions - BoxOver  

Go Back   Javascript Tooltips, Popups, Captions - BoxOver > BoxOver > Bugs
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2006, 05:49 PM
Gondza Gondza is offline
Junior Member
 
Join Date: Apr 2006
Posts: 4
Default Delay *bug*

Ok so here is the bug. When i set the delay option to any integer when i go to the link where i've setted the boxover and move really quick away from it and stop right away, the boxover still appears

I hope you've understood me

And thank you for the great code
Reply With Quote
  #2  
Old 04-25-2006, 08:11 PM
lectrix lectrix is offline
Junior Member
 
Join Date: Apr 2006
Posts: 1
Default confirmed!

Hi!

I just noticed the same problem over here... any solution/patch available?
i am using v 2.0 16th April 2006.

thanks a lot,
stefan.
Reply With Quote
  #3  
Old 05-01-2006, 10:12 PM
antman antman is offline
Junior Member
 
Join Date: May 2006
Posts: 4
Default Confirmed again

This is definitely a problem with the 'delay' option. Here's another user who describes it in a different way:

http://boxover.swazz.org/forum/make-...nt-t294-1.html
Reply With Quote
  #4  
Old 06-16-2006, 11:31 AM
Pol Pol is offline
Junior Member
 
Join Date: Jun 2006
Posts: 4
Default

Hiyah,

I had this problem too. I've had a little look and come up with a patch. I hope I don't offend anyone by posting this, but a solution is always nice!

Basically, my thinking was that the delay had to be cancelled if the user mouseout'd the div. I noticed there was a similar part in the code which closed the popup box, so that was a good starting point.

Here are the changes you need to do to make the current version (version I have is v 2.0 16th April 2006) work:

At the top of the script you need to attach a "mouseout" event, so from line 6 it should now read:

Code:
if (typeof document.attachEvent!='undefined') { window.attachEvent('onload',init); document.attachEvent('onmousemove',moveMouse); document.attachEvent('onclick',checkMove); document.attachEvent('onmouseout',moveOut); } else { window.addEventListener('load',init,false); document.addEventListener('mousemove',moveMouse,false); document.addEventListener('click',checkMove,false); document.addEventListener('mouseout',moveOut,false); }
(don't know why there are spaces in the word 'false' - remove them if they are still there when you copy and paste)

then just above the "mouseMove" function (around line 192 after modification above) past in this:
Code:
function moveOut(e) { e?evt=e:evt=event; CSE=evt.target?evt.target:evt.srcElement; if (!CSE.hasbox) { // Note we need to scan up DOM here, some elements like TR don't get triggered as srcElement iElem=CSE; while ((iElem.parentNode) && (!iElem.hasbox)) { scanBO(iElem); iElem=iElem.parentNode; } } //Clear current timeout (if it exists) - should stop and delayed tooltips running if (ID!=null) clearTimeout(ID); }
Not sure if it was all entriely needed, but it works for me!

Drop me a PM if you need help.

Finally, loving your work on an amazing JS widget Oliver!

Cheers!
Reply With Quote
  #5  
Old 06-17-2006, 11:18 AM
olly olly is offline
Administrator
 
Join Date: Jul 2005
Posts: 82
Default Delay bug fixed

Hi everyone,

Thanks for the support and feedback you guys have given on everything. Someone emailed me a code snippet which fixes the problem, and I have incorporated this in the latest release, (2.1).

Sorry for my own delay in getting the fix out there - I have been very busy and had hardly any time to dedicate to BoxOver of late.

Let me know everything is 100%,

cheers!
__________________
Javascript tooltips / popups
Reply With Quote
  #6  
Old 06-18-2006, 11:34 PM
Gondza Gondza is offline
Junior Member
 
Join Date: Apr 2006
Posts: 4
Default

Oh my goood
Thank you sooo much olly!
The delay option is now working at 100% EFFICIENCY :P.

Brilliant ^^
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:40 PM.