now my question: I have designed a layout that has a menu in a left div layer (#left-area). When clicking on a link, it creates and opens a new div layer in the right div area (#right-area).
Each of the layers is draggable, sizable etc, but my problem is that the order they are created, is the order the z-index is set as. Explained: if i open "link 1", then "link 2", the "link 2" div will always be on top of the "link 1" div. I want the ability to change the order (z-index??), of the layer just by clicking on the layer, so that if i click on the "link 1" layer, it will bring that to the front, and the "link 2" layer will appear below it.
There must be a way to do this... i have seen examples at pupunzi.com . Is there a way to do it with jQuery. I have searched everywhere, but i cannot see the function/command.
I have 4 Div-Boxes next to each other , which, when I move my mouse over them, get bigger.
Looks basically like this: [box1] [box2] [box3] [box4]
The problem is, that when I move over box 1 or 2, they grow BEHIND the other boxes... So, something with the zindex isnt working properly..I am using the animate function, but I can't seem to use zIndex with animate, because Internet Explorer goes nuts when I do it ...This was my original code, which didnt work, as IE seems to fuck it up, when using zindex in animate
I have made a layout which includes some coloured tabs which make ajax calls to get content.These tabs are partially hidden and onmouseover the tab should move to the front. this works perfectly in Firefox, Chrome, Opera, and Safari, but not in IE. I get no javascript errors and the page validates on W3C Validator without error.Code:
Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
I have two image objects. They both have a zindex of 2. What determines which one appears on top?
I have some code that checks to see zindex to see what image is on top, but it is sometimes wrong when both images have the same zindex. How can I truly figure out what image is on top?
I know that I cannot specify the zIndex of a relatively positioned div BUT it does have a zindex computed by the browser. That's why another div can appear below or above it. So, how do I figure out what it's zindex is so I can dynamically put something above it?
Using .currentStyle/getcomputedstyle doesn't work as it returns "auto".
I'm working on a mysql browser / edit-in-place app which presents the user with a floating UI (think lightbox), that contains widgets appropriate for the given field they've clicked on.
Presently, rather than centering the UI element like a lightbox however, I find it best to keep it relative to their mouse, so that they don't have to traverse halfway across the screen with their mouse to interact with the interface if they've clicked something (for instance) on the bottom left.
The problem however should be apparent: if they click something towards the bottom of the screen, we need to adjust the css top/left properties so that the UI remains within the viewable area and doesn't run beyond the viewport, if possible. I've seen this done tons of times with tooltips.
I've thrown some basic awareness together using$(window).height() / width(), but if anyone could point me to a maturealgorithmfor harvesting the appropriate offset.
When viewed with Firefox. The show/hide function doesn't work as expected (evident when viewed). Anyone know why? Which bit is FF not liking and how can it be altered to be cross browser friendly?
Hey guys, im just learning how to use layers in css, and am trying to change a div like a targeted frame so that I can change content that is floating ontop of another image. So far I got that to work, except when I put in any embedded videos or image tags, then it stops working.[code]
Anyone know of any good beginners guide to layers online, preferably with examples of form elements (initially populated from a database) updating the parent page?
I have the basic functionality working with a popup window and 'opener.document.form1', but this doesn't look that good and I can't get it to fill anything but a form element on the parent page.
When you mouse out of the div, it goes back into hidden. But as soon as I touch any of the links, it hides, thinking I've left the DIV.
Now, I'm assuming this is a z-index layer issue, but I've tried every combination of things I could think of to prevent the mouseout action when mouseing over one of the links.
I tried setting div.popup's z-index higher than a.popuplink's, lower than a.popuplinks, and the same as. (I did set each to a position as well.)
The following code works well in IE5 and Netscape 7, apparently my page is not working in Netscape 4.6 and it has been suggested that i need a third option dwellig around the document.layers object, could someone tell me what line I need to make it compatable for earlier browsers?
I have a layer, which is a DIV that has overflow set to "auto", so it looks like a little pop-up window, even though it's just a layer.
So if the content of that window makes the user scroll down to read it, and the user clicks a link while scrolled down, and the AJAX function calls new data into that DIV, that data, if overflowed, will also be scrolled down.
So basically it's like if you scrolled down to the bottom of slashdot.org, clicked a link to usatoday.com, and when you got to usatoday.com, the page was scrolled to the bottom of the page instead of at the top.
Any way I can make sure when the new data is written to the layer, that the overflow scrolling is scrolled to the top of the layer?
The idea is that the blue help text rechtangle will have to remain visible when mouse over (because there will be soon links in it) and invisible when onmouseout.
I have now placed javascript on the small numbered balls and within the rechtangle itself.
But I have it in a way that when "onmouseout" the blue help rechtangle will be hidden. But now the onmouseout event is acting like onmouseover. Any Ideas to do this correctly? So right now when you onmouseover it it will disappear :S
If I get this working I can start thinking of putting a timeout on the rechtangle for it to disappear within a couple of seconds after "onmouseout"
Below is a script I have that displays a list of summary info for multiple people.When you mouse over some ones summary info, a bio appears below that summary info (pushing everything below it down). What I'd like to do is take it further and allow more layers. For example, when you hover over their bio,more info about them pops up below that, and so on.I know you're probably tired of seeing mousevent /text questions but I'm desperate at this point. If some one could just add a mouseover event to the bio section that displayed more text below it would suffice and I could take it from there.
Heres the code: <p> <script type="text/javascript"> var BrowserDetect = {[code].....
Is it possible to count how many layers have been loaded as they are loading?
What I want to make is a layer containing the text "x of 15 layers loaded" and for x to increase everytime a layer is loaded on the page. (using onload?)
I have a question. If you have a HTML list that pops up as a menu under a graphic in a layer when you mouseover the graphics, how do you instruct that layer to vanish again when you mouseout from the menu?
I can do onMouseOver show the layer and onMouseOut hide the layer, but I'm stuck when it comes to applying that to a larger area (ie: multiple clickable items). I can think of ways of doing it, but they're a bit clunky and I'm assuming there's a good or 'proper' way of achieving this.
I've tested a very good validation script called(fValidate ). Now, I want it to implement into a php-form which has 2 layers. Layers are called with following code:
When I submit the form, the validation script alerts the first "wrong" field which is on layer 1 (invisible because the submit button is on layer 2). Normally it goes to that wrong field, but instead it submits the form...
Does anyone has any experience with validation of layered forms?
There is also the possibility of making a custom validation function. I could make use of it, but then... how does javascript know on which layer the wrong field is/was...?
I am building a dhtml menu system and it works great in ie 4.0+ and nn6 but in nn4.7 the table background color inside the layers doesn't show up. It does in the other two have a look Code:
I'm designing a site that implements popup menus. There are several menus and each one is called by a mouseover event on an image. Each menu is set to show for about 3 seconds, and then it will go away. The only problem I am having is if you roll over two or more different images, both of the popup menus will display. I need some help on showing only one popup at a time. I'm sure it would be something like this...
HTML Code:
i = popup numbers; //which should be either 1 or 0 if (i == 1) { hide(previous popup); show(getElementById); }
else { show(getElementById); } I'm just not sure on how to determine the previous popup. Any suggestions?
I need to find a way to show/hide layers with the help of clicking a check box. I want it to be the default layer, then when a check box is clicked, that layer shows up. I need it to be able to display multiple layers (overlapping) that are linked to which check box is checked or unchecked. Code:
I have seen this in help files and on a few other sites but I am not sure what the correct lingo is for this function but I am looking for a way to hide a layer of text below a heading and then make it appear when the heading is clicked but I need it to push down the text that is below it and not cover it up.