PDA

View Full Version : Toolbar appears on top - DHTML Window widget (v1.1)



jaswinder_rana
12-17-2008, 12:21 AM
1) Script Title: DHTML Window widget (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:
I have a toolbar at the top (Suckerfish). When my window appears, my toolbar appears on top of it. I have tried changing (and adding to every class) z-index to 9005. But, it just doesn't show up on top of the toolbar.

Is there a setting that I can change to make it appear ON the toolbar rather than it disappearing under the toolbar??

Thanks

Snookerman
12-17-2008, 08:24 AM
Please post a link to your site.

jaswinder_rana
12-17-2008, 04:48 PM
Hi:

Sorry I won't be able to post it as it's internal site.

I have, however, attached screenshot of it as it appears on that page.

http://img145.imageshack.us/img145/9803/dhtmlwindowdy2.th.gif (http://img145.imageshack.us/my.php?image=dhtmlwindowdy2.gif)

Thanks

Snookerman
12-17-2008, 05:11 PM
Can you please post the code you are using?

jaswinder_rana
12-17-2008, 05:21 PM
Everything same (no change on DHTML Window Widgets) and the code I use to open that window is



<script type="text/javascript" src="/scripts/popup/dhtmlwindow.js"></script>
<link rel="stylesheet" href="/styles/popup/dhtmlwindow.css" type="text/css" />



<a href="/changetracker/index.php?page=details&id={$value.ID}" onclick="popup_inline('/changetracker/index.php?page=details&id={$value.ID}&hide_tabs=1','Change Tracker Details for ID {$value.ID}');return false;">{$value.BODY|truncate:50}</a>


Extra in dhtmlwindow.css is (to change bar color)


.drag-handle{ /*Overwrite default drag handle bar background color with below*/
background-color: #03277C;
}




popup_inline is a function I created to centralize calling for DHTML window


//Call this function to open popup window
function popup_inline(url,title,properties){
if(typeof title == 'undefined'){
title = url;
}
if(typeof properties == 'undefined'){
properties = "width=700px,height=600px,resize=1,scrolling=1,center=1";
}
var win=dhtmlwindow.open("box", "iframe", url, title,properties )

win.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
return true;
}
}


My CSS for navigation bar is


div#tabmenu {
float:right;
height: 28px;
margin-top: 5px;
margin-right:20px;
font-family: Arial, Helvetica, Geneva, sans-serif;
min-width:500px;
}

div#tabmenu ul {
margin: 0;
padding: 0;
}

div#tabmenu li {
margin: 0;
padding: 0;
padding-right: 2px;
float: left;
list-style: none;
}

div#tabmenu a {
display: block;
float: left;
padding: 0 18px;
height: 28px;
line-height: 30px;
_line-height: 28px;
font-weight: bold;
text-decoration: none;
color:#fff;
}

div#tabmenu a {
color: #FFF;
}

div#tabmenu ul.topnav li.active a {
color: #333333;
}

div#tabmenu ul.topnav li.active ul li.active {
background: #333333;
}
div#tabmenu ul.topnav li.active ul li.active:hover,
div#tabmenu ul.topnav li.active ul li.active.sfHover {
background: #333333;
}




/* Sublevel Up */

div#tabmenu li {
background: #333333 url(/images/green/tab_r.png) 100% -33px no-repeat;
}
div#tabmenu li a {
background: url(/images/green/tab_l.png) 0 -33px no-repeat;
}

div#tabmenu li:hover,
div#tabmenu li.sfHover,
div#tabmenu li.active:hover,
div#tabmenu li.active.sfHover {
background: url(/images/green/tab_r.png) 100% 0 no-repeat;
}

div#tabmenu li:hover a,
div#tabmenu li.sfHover a,
div#tabmenu li.active:hover a,
div#tabmenu li.active.sfHover a {
background: url(/images/green/tab_l.png) 0 0 no-repeat;
color: #333333;
}


#tabmenu li.active,
#tabmenu li.active_menu {
background: url(/images/green/tab_r.png) 100% 0 no-repeat;
}

#tabmenu li.active a,
#tabmenu li.active_menu a {
background: url(/images/green/tab_l.png) 0 0 no-repeat;
color: #333333;
}

#tabmenu li.active li.active,
#tabmenu li.active li.active a {
background: none;
}

/* Sublevel Borders */

.topnav li li {
background:#222;
border-bottom: 1px solid #333333;
border-right: 1px solid #8abb22;
border-left: 1px solid #8abb22;
}
/* Sublevel Over */
.topnav li li:hover,
.topnav li li.sfHover,
#tabmenu li:hover li:hover,
#tabmenu li.sfHover li.sfHover,
#tabmenu li.active li.active {
background: #8abb22;
}



#tabmenu li:hover li a.child:link,
#tabmenu li.sfHover li a.child:link,
#tabmenu li:hover li a.child:visited,
#tabmenu li.sfHover li a.child:visited {
background: url(/images/green/arrow_right.gif) 199px 50% no-repeat;
}
div#tabmenu li li a {
height: 24px;
line-height: 24px;
}
div#tabmenu ul.topnav li li a {
color: #FFF;
}


div#tabmenu li:hover li,
div#tabmenu li.sfHover li,
div#tabmenu li.active:hover li,
div#tabmenu li.active.sfHover li {
background-image: none;
}

div#tabmenu li:hover li a,
div#tabmenu li.sfHover li a,
div#tabmenu li.active:hover li a,
div#tabmenu li.active.sfHover li a {
background-image: none;
}
.topnav, .topnav * {
margin:0;
padding:0;
z-index: 9000;
}

.topnav li.sfHover,
.topnav li:hover {
background: url(/images/green/tab_r.png) 100% 0 no-repeat;
}

.topnav li.sfHover a,
.topnav li:hover a {
background: url(/images/green/tab_l.png) 0 0 no-repeat;
}

.topnav {
line-height:1.0;
float:left;
margin-bottom:1.5em;

}
.topnav ul {
background:#fff;

}

.topnav li {
float:left;
list-style:none;
position:relative;
}

.topnav li li a {
display:block;
padding: 0;
margin-left: -10px;
text-decoration:none;
background-image: none;
float:none;
width:180px;

}
.topnav li ul {
float:none;
top:-999em;
position:absolute;
width: 180px;
z-index: 10000;
}

.topnav li:hover ul,
.topnav li.sfHover ul {
left:2px;
top: 28px;
}
.topnav li:hover li ul,
.topnav li.sfHover li ul {
top:-999em;
}
.topnav li li:hover ul,
.topnav li li.sfHover ul {
left: 200px;
top:0px;
width: 200px;
}
.topnav li li {
float:none;
width: 200px;
}

/* @end */