Javascript Tooltips, Popups, Captions - BoxOver  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-15-2006, 05:18 AM
Access Access is offline
Junior Member
 
Join Date: Mar 2006
Posts: 3
Default BoxOver Not at Front

Hi people,

I am currently developing a project that uses Tabs from the DHTML Kitchen (http://dhtmlkitchen.com/scripts/tabs/index.jsp) and the problem is that the BoxOver script actually sits behind the Tab's so aren't visible. Is there any way to guarantee that BoxOver always be brought to front?

Thanks Access
Reply With Quote
  #2  
Old 03-20-2006, 05:10 AM
Access Access is offline
Junior Member
 
Join Date: Mar 2006
Posts: 3
Default

Does anyone use this forum?
Reply With Quote
  #3  
Old 03-22-2006, 01:47 AM
ayryq ayryq is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Default

You can specify an external stylesheet with
HTML Code:
<foo title="header=[myheader] body=[mybody] cssheader=[popupheaderstyle] cssbody=[popupbodystyle]" />
and then adding a style to your document:
HTML Code:
<style> .popupheaderstyle{ font-weight:bold; width:150px; font-family:arial; border:1px solid #A5CFE9; padding:3; font-size:11; color:#4B7A98; background:#D5EBF9; } .popupbodystyle{ border-bottom:1px solid #A5CFE9; border-left:1px solid #A5CFE9; border-right:1px solid #A5CFE9; width:150px; fontFamily:arial; fontSize:11; padding:3; color:#1B4966; background:#FFFFFF; } </style>
Then you can add a z-index with a high value to the css to make the boxover div come to the front.

HTML Code:
z-index: 5;
Eric
Reply With Quote
  #4  
Old 03-27-2006, 04:26 AM
Access Access is offline
Junior Member
 
Join Date: Mar 2006
Posts: 3
Default

It's actually quite interesting, I have set all the z-index values in the CSS for the tabs to 0, and have set the CSS for the BoxOver to 500 and they still fall behind.

The tabs are all set to absolute so its not a Rel/Ab problem...

Odd... : /

Any advice?

Also when I use a fixed BoxOver such as when using the following code
HTML Code:
title="header=[Fixed tooltip] body=[Doesnt move with the mouse.] fixedrelx=[1000] fixedrely=[500]"
It stays in the same location no matter what I set fixedrelx and fixedrely... interesting...

Last edited by Access : 03-27-2006 at 04:36 AM.
Reply With Quote
  #5  
Old 03-31-2006, 05:15 AM
garryhs garryhs is offline
Junior Member
 
Join Date: Mar 2006
Posts: 1
Default Have the Same Problem

Hi,

I have the same problem using in a Form.

The BoxOver shows behind fields within a form.

Any Ideas ?

Garry
Reply With Quote
  #6  
Old 03-31-2006, 04:17 PM
ayryq ayryq is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Default

The form fields problem exists only in IE, and is the reason the hideselects option exists. I've had success with adding blank iframes behind other divs to cover up form fields (mainly selects) in IE, but I've been struggling to make this work with the complex positioning used by BoxOver. I'll post here if I get this working--it seems like the way to go.

Eric
http://www.ericandchar.com/xsltvgrid
Reply With Quote
  #7  
Old 04-19-2006, 01:06 PM
jdwmk jdwmk is offline
Junior Member
 
Join Date: Apr 2006
Posts: 1
Default I managed to resolve this

Hi,

I was looking at why this wasn't working in IE 6 but no problem in Mozilla.
The way I solved it was with the use of z-index. Not in the CSS as I spent a while trying, but in the init() section of the javascript library.
This is because of the way IE treats the z-index properties and the fact that the tooltip is not actually a part of the page until the loading process is completed. So, initialising the z-index at this point is the critical part.
I have highlighted the resolution I found below.

CSS - as used on the example page.

.dvhdr1 {
background:#F3F0E7;
font-family:arial;
font-size:12px;
font-weight:bold;
border:1px solid #C8BA92;
padding:5px;
width:150px;
}

.dvbdy1 {
background:#FFFFFF;
font-family:arial;
font-size:12px;
border-left:1px solid #C8BA92;
border-right:1px solid #C8BA92;
border-bottom:1px solid #C8BA92;
padding:5px;
width:150px;
}

javascript:

function init() {
oDv.appendChild(dvHdr);
oDv.appendChild(dvBdy);
oDv.style.position="absolute";
oDv.style.visibility='hidden';
oDv.style.zIndex='100';
document.body.appendChild(oDv);
}


I hope this helps out anyone else with this problem.

Jeff
Reply With Quote
  #8  
Old 04-22-2006, 08:40 AM
Duffdaddy Duffdaddy is offline
Junior Member
 
Join Date: Apr 2006
Posts: 3
Thumbs up

very handy Jeff, thanks, I was having exactly the same problem and wouldn't have solved it myself. Don't know javascript so... thanks!
Reply With Quote
  #9  
Old 08-23-2006, 09:28 AM
MilanJ MilanJ is offline
Junior Member
 
Join Date: Aug 2006
Posts: 5
Unhappy Part of my form are ahead of BoxOver

I have a form without DIV and I tried jdwmk solution, but it doesn't work, I have still the same...part of my form (SELECT tags) are ahead of BoxOver.

My link with short part of page: boxover.htm

Last edited by MilanJ : 08-23-2006 at 09:30 AM.
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 10:15 AM.