PDA

View Full Version : javascript on top of Lightbox



CarbonTerry
02-27-2008, 11:58 PM
Hello,
I am using a javascript menu ( http://www.usmc-trw.com/ ) on my pages. Whenever an image is opened in Lightbox the menu is on top of the enlarged image. Can I prevent that?

Sorry, but whenever I enter the script here it dissappears.....

Collectors-info
02-28-2008, 09:58 AM
Hi, one of the others had the same problem with flash having the same effect. I assume that you have brought the menus html box to the front of page? If not i can only suggest the Css menu below if of any use? . (Lot less coding)

Place this 1st part in the "Between head tag" of your page. Its set to your menus colors & will auto size to the text in each menu area.


<style type="text/css">
#menu1 {
display:table;
padding:0;
margin:0 auto;
list-style-type:none;
white-space:nowrap;
}
#menu1 li {
display:table-cell;
}
* html #menu2 li {
float:left;
}
#menu1 a {
width:auto;
display:block;
padding:2px 6px;
color:#FFCC00;
background:#454000;
border:1px solid #FFCC00;
text-decoration:none;
}
* html #menu1 a {
float:left;
}
#menu1 a:hover {
color:#000;
background:#FF0000;
}
</style>And place this In a html box where you want your menu to show. Adjusing the #nogo parts for your urls & the text for the links.



<ul id="menu1">
<li><a href="#nogo">Tab One</a></li>
<li><a href="#nogo">Tab Two</a></li>
<li><a href="#nogo">Tab Three</a></li>
<li><a href="#nogo">All tabs will auto extend to the text</a></li>
</ul>Good luck.



.