![]() |
|
#1
|
|||
|
|||
|
The "boxover is hidden by select objects" was getting me down. I've come up with a way to get boxover tool tips to show up on top of select objects. It works in IE 6 and Firefox 1.5. I'd be glad if someone would confirm that this works in other versions. I don't know for sure what the story is on updates to boxover.js but if appropriate, I'd be happy to have my changed incorporated into the main version. You'll need to add a coverselect=[on] parameter to the title string in the place of hideselect=[on] for the new code to work. Please let me know if you find any errors or omissions or have any comments or questions.
-- Henry |
|
#2
|
|||
|
|||
|
My hidden selects get displayed on mouse out and I would love to check out your fix so that I don't have to hack it myself, but the zip file is corrupted when I download... Does the forum cause that?
Anyway you could either post actual code or repost the zip file or simply post it as a text file? Thanks! |
|
#3
|
|||
|
|||
|
Quote:
Code:
|
|
#4
|
|||
|
|||
|
And the second part of the js file. Note that this doesn't have the +"px" that someone suggested in a different thread. I haven't had a chance to test that addition and it doesn't seem necessary, at least in the browsers I've used. Also note that you should use either coverselects=[on] or hideselects=[on] but not both. If you use hideselects, it will continue to hide and then reveal your selects, whether you use coverselects or not.
Code:
HTML Code:
|
|
#5
|
|||
|
|||
|
Thanks so much for posting your code! It works great. I noticed, however, that the tooltip was displaying some extra whitespace in firefox. Specifying height and width seems to have helped (lines 22 & 23)
oCoverSelect.style.width='220px'; oCoverSelect.style.height='100px'; |
|
#6
|
|||
|
|||
|
Henry,
Good solution -- I'd just done the exact same thing myself and came to post it before realising you'd done one! In function moveMouse() you need to modify the position/dimension setting lines to the following: Code:
I used offsetTop and offsetLeft in preference to style.top and style.left just to keep the two lines consistent with the previous two, although in reality you can use either. At the top of the file, why have you declared and created a new iframe, then redeclared the variable, then just retrieved an existing iframe from the HTML? This seems very backwards as it requires the manual insertion of an iframe into the HTML, and also incorrect as it declares oCoverSelect twice. It should create the iframe then use 'document.body.appendChild(oCoverSelect);' to add it to the body. My version is attached for info -- I think you've probably handled the fadeIn/Out situation better, I didn't look at that as I don't use it. Perhaps a combination of the two solutions would be good? Mine fix is not verified under NetscapeNavigator which suffers from this problem on all form elements. Last edited by boycy : 01-05-2007 at 03:51 PM. Reason: Forgot to attach file! |
|
#7
|
|||
|
|||
|
This is a great addition to boxover.js. This should be incorporated into the main release as it solves problems for many people when hidden selects are being used on a page.
Also, there should be more documentation on the hideselects function in general on the main page for the tool. A more useful description would have been very helpful for me. Change description of hideselects parameter to: Specifies whether to hide all SELECT boxes on page when popup is activated. This addresses a bug in IE that causes form select objects to remain on top of popup objects.(Same would apply to the CoverSelects parameter if that is added.) Thanks for the great utility and for the great fixes from the user community! |
|
#8
|
|||
|
|||
|
Quote:
So, anyone reading this, if you use oDv.offsetTop and oDv.offsetLeft, then DO add "+'px'". If you use oDv.style.top and oDv.Style.left, DO NOT add that or you will generate errors. They are already included in the definition of those values a few lines above. Note that this is true also for the similar lines in the coverSelects() function I added to boxover.js. -- Henry |
|
#9
|
|||
|
|||
|
Quote:
-- Henry |
|
#10
|
|||
|
|||
|
Hi guys,
I've implemented the iframe shim thing, and fixed it up for fading in. Works well in IE6 and FF1.5. I also bundled with it the changes I did for "opacity=[xx]" (manual opacity overrides the default) and "clickoff=[on]" (useful for form fields: click element to turn tooltip off) - see my recent posts about those. Hope that's helpful. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|