• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

z-index example

 
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could someone send me a layer z-index example that works. I'm looking to push a layer to the front after the page has been rendered and would love to see someone's handy work in how to get this working... THANKS!
Dale

------------------
By failing to prepare, you are preparing to fail.
Benjamin Franklin (1706 - 1790)
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
z:index is just if you want the layer to be positioned above another layer. Anyhow here is some code.
The layer:

The javascript:

You should probably do this in a more object oriented way. If youre interrested I have the code.
onload in body

[This message has been edited by Mathias P.W Nilsson (edited September 10, 2001).]
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot place a div or layer over a form element. The only choice you have is to hide the form element (style.visibility = 'hidden') when your layer or div is expanded.
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually I have and it worked. It just seems when I ended up adding the form element later, it ends up on top of my layer. Any ideas??
Dale
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
One thing which i am still unclear is how to solve the Z index problem .. Is there any menu builder which dispalys menu both in netscape and IE even if if menu falls in the form elements like list box.
Regards,
srini
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I honestly don't know. It seems as though on IE, it your layer falls ontop of a dropdown, then the dropdown wins. Not quite sure how to get around this yet.
------------------
By failing to prepare, you are preparing to fail.
Benjamin Franklin (1706 - 1790)
 
reply
    Bookmark Topic Watch Topic
  • New Topic