Forum Moderators: open
I have four overlapping gifs as a background that move around when the user clicks various links. These each have a unique z-index (1, 2, 3, 4).
I have a content box that has its visibility set to hidden and its z-index set to 50.
I've written the js to change the visibility property of the div using but when it appears on the screen it is beneath the background gifs, even though the z-index is higher.
When I click on the div it gets focus and 'comes to the front' so that it looks as it should.
I've tried to simulate a user click on the div with .click() but i get the following error:
document.getElementById("holder").click is not a function This problem only comes up in Safari (v2.0.3) - Firefox (pc & mac), Camino, even IE (pc) display it properly and I'm at a loss regarding next steps.
Any help/suggestions at all would be greatly appreciated.
Gy
The div has position:absolute and a z-index higher than the images that are also position:absolute.
The div has its visble property set to hidden with css, then when a link is clicked, a method to switch the visible property to visible.
The problem I am having is when the property is switched to visible, the z-index seems to become irrelevant until i physcially click on the div, which redeems things.
So is there anyway to assign focus or simulate a click on a div? I've only been using the language for a week, my background is in actionscript/php and I'm not used to having to work around different browsers inability to render the same code in the same way...
why - o - why doesn't everyone use firefox? what reason do people have for using anything else?