|  | Posted by mjones on 07/29/07 16:42 
On Jun 30, 4:58 am, Ben C <spams...@spam.eggs> wrote:> On 2007-06-30, mjones <mich...@quality-computing.com> wrote:
 >
 > > Hi All,
 >
 > > I know this can be done, but I'm not a programmer.  I only know HTML
 > > so I'm hoping there's a simple way to do this.
 >
 > > If it matters, I'm using HTML 4.01 Transitional and utf-8.
 >
 > > I need the code because FireFox and IE6 or 7 behave differently with
 > > image tags and relative positioning.
 >
 > > I've got an iframe over an iframe and I need to force positioning due
 > > to some nasty menu code that has a mind of its own.  The menu has a
 > > division style with z-index:999999, too.  If anyone could explain what
 > > that it, it might help me. I've read about it, but still can't seem to
 > > get my head around it.
 >
 > Basically it means it gets displayed on top of anything with a lower
 > value of z-index, or auto z-index, that's also below the nearest thing
 > above it in the document tree that has non-auto z-index.
 >
 > But often people don't realize that z-index only applies to positioned
 > elements, so they set it all over the place without it doing anything.
 >
 > And 999999 is a silly number. Probably 9 would have been fine.
 
 For those looking for the answer, here's what worked:
 
 In the head -
 
 <script language="JavaScript" type="text/javascript">
 var nav = window.navigator
 var browserType=nav.appName.toUpperCase()
 var browserVersion=nav.appVersion
 var curr_fld
 if (browserType.substring(0,3)=="NET")
 {       browserType="Netscape"
 } else
 
 {       browserType="Microsoft"
 }
 </script>
 
 In the body -
 
 <script language="JavaScript" type="text/javascript">
 if (browserType=="Microsoft") {
 document.write("WHATEVER CODE YOU WANT IF FIREFOX")
 }
 else
 {
 document.write("WHATEVER CODE YOU WANT IF IE")
 }
 </script>
 
 Hope that helps,
 
 Michele
  Navigation: [Reply to this message] |