Log in

View Full Version : Resolved Lightbox image is under navigation bar. Need it to be above and not have navbar show



printman55
09-04-2013, 05:36 PM
1) Script Title: Lightbox image viewer 2.03a

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

3) Describe problem:
The lightbox large image is under the navigation bar. I would like the the image to be on top so the nav bar does not show through.
Thanks

jscheuer1
09-04-2013, 08:07 PM
Using a text only editor like NotePad, around line #109 in the kinshipcomfortbrands.com/p7pmm/p7PMMscripts.js file, cange the zIndex to 50 (as highlighted, change shown in red):


for(k=0;k<p7PMMctl.length;k++){
tM=document.getElementById(p7PMMctl[k][0]);
if(tM){
tM.p7opt=p7PMMctl[k];
if(typeof(opera)!='undefined'||navigator.appVersion.indexOf("MSIE 5")>-1){
tM.p7opt[2]=0;
}
if(P7_PMMisMobile()){
tM.p7opt[15]=2;
}
P7_PMMremClass(tM,'p7PMMnoscript');
tM.pmmshut=true;
tM.style.position='relative';
tM.style.zIndex='50';
tM.p7PMMtmr=null;
tD=tM.getElementsByTagName("DIV");
for(i=0;i<tD.length;i++){
tD[i].setAttribute("id",tM.id+'d'+(i+2));
tD[i].p7state='closed';
tD[i].pmmmenu=tM.id;
}
tM.pmm . . .

The browser cache may need to be cleared and/or the page refreshed to see changes.

printman55
09-04-2013, 10:17 PM
Thanks, John that's it!