I have several divisions with a hidden division within them, like this:
[Code]...
With that script, if I click on one of the parent divisions ALL of the hidden divisions are shown. That's not what I want. I tried several variations of the script using (this), but I just kept getting errors.
I have a vertical navigation menu with the basics (a <ul> with four <li>) but I need one of these list elements to slide to the left and when it finishes show or slide down a nested <ul> with its own li that is now hidden with display: none. and when I click again the first list element I wish everything to close back. or alternatively to close with a timeout. so far I got to this:
I'd like to have an alert of some type, either standard alert or a hidden div, show up when a user selects an option in a select element.
For instance, if a select element has 5 options in it and the user chooses the first one, they would get an alert that says "You have chosen the first option". I'm confident this is something that can be done with a few lines of code, but I'm not sure where to begin.
Here's the logic - I'm just not sure how to write the syntax...
If ("#select option") changes and ("#select option:eq(0):selected"), fade in the div ("alert").
Specifically, assume I have a div tag of absolute dimensions. I need to figure out, first, whether or not the text inside the div tag is partially hidden by the overflow setting, and if so, what the hidden text is.
Is this even possible? Obviously, the rendering engine in the browser "knows" this information, but is it accessible through Javascript?
im trying to hide a div on page load,ive used this.
<script type="text/javascript"> function hideDiv(){ document.getElementById('sidebar').style.display = "none";[code].....
and this in the body tag
<body onload="javascript:hideDiv()">
it works fine hiding the div named sidebar, problem comes when i try to then use an Onclick event to show the hidden div, it just wont show.can this be done?
I am creating a slide show and have placed a <div> with an id ofbg and a <ul> inside it.Each <li> has a class ofbg-image as well as an<input type="hidden" value="./page backgrounds/bg1.jpg">. There are 8 images. I have placed my HTML my CSS and local JS.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title>
So I just finished developing a big app in FF, Chrome adn Safari where everything works great. I switched to IE expecting maybe a few bugs, but almost NONE of my jQuery works. Just to test I put together a simple page to test basic jQuery and it still doesn't work:
[Code]...
I just have a hidden div on my page and want to show it and it doesn't work.
when I try to get the height or any other graphic property of an element which is hidden (in my case, hidden in one jQuery UI tab), I can't manage to get the height of the element. If I do: $("#my_element").outerHeight() I get zero. Whereas If I do the same when the element is visible, I get its height. I work with jQuery 1.3.2 and FF 3.5.
I am working with ASP.net and VB as my code behind. I tried solving this in normal JavaScript with no luck. I have a textbox that when it receives focus I want to make the next 3 controls visible. I have tried the included code with no luck. Here is the Head and Jquery.
How do I get the elements from a form when these elements are named like each other? I'd like to make a list of values and store it in few hidden elements. It is suppose to work like a list of checkbox whose elements have the same name (and same id), but they are diferent indexed. [code]...
I have some contents on my page that are displayed on click or hover.Therefore, initially they are hidden using the hide() method.
They work fine as intended.
But if it is a slow computer, you can see them on the screen for a second or two before they disappear. Or if the user refreshes the page - you get the same thing happen. How can I prevent this?
I have a problem, I have a table which dynamically create <tr> elements with a unique numerical id, this is created on a while loop from a database statement, when I click on a hyperlink on each <tr> I use this:
[Code]...
So in this way, I'm sending the unique code (codigo) and I fadeToggle the <tr> identified with that specific id, it works, no problem, it display with one click, hides with another one, BUT, now I need that, when you click on a hyperlink, if any other <tr> is being displayed at the moment, close all of them, and open the clicked one, is there any way I can do this?
I have a class hidden by default at the document ready state. I use the show() function when its parent has been clicked and I want to be able to apply a click function to this newly visible element - when I write it I am finding that it is overriding the initial hide(). How do I work around this? I should say that this element is just a bit of text that says "close x" and will be used to "close" its parent div down...
My design involves two "layers". On the first layer, I have a circle, with some links in the middle. This is just a div with a background image, and some text in the center. Then I have another circle, same size and shape, on top of the first one, covering it up. This circle just has a one or two word title on it. When a user hovers over the title with their mouse, I want that div to disappear, showing the links underneath it. When you mouse out, the circle with the title should show back up.
Here is the basic HTML:
[Code]...
So what happens, is if you mouse over, the circle fades away just fine. But if you move your mouse at all again, even the slightest bit, the event is triggered again. So the title fades in and then out again real quick. Even if you actually mouse completely out of the CircleTitle div, it still triggers one last time instead of just fading in.
Because mouseenter keeps track of the mouse being over that element, and then that div disappears, it's probably causing some problems. But I don't know any other way to get this to work! If someone has some ideas,
I would like to have an anchor link with hidden text. When I click on the anchor link, I want to see a text drop below showing the Keep trying information. It keeps giving me "object expected" error message. What object I need to put in there. Here is the code:
i am working on a custom drop down list that has hidden #options DIV which is shown when the user clicks on a button. the problem i am having is that the click event does not seem to be attached to the LI elements since they are hidden when the page first loads. if i show the #options DIV when the page loads everything is working as expected.i've tried to attach the click event after i show the hidden UL but that didn't work either.what can i do to make sure the LI click event fires? i tried to put A tag inside of LI and attach click to that but to no avail.
I want the hidden layer to open when the visitor clicks and stay open until they click the close x. I can get the hidden layer to show onMouseover, but not onclick.
Code:
<script type="text/javascript"> // Copyright 2006-2007 javascript-array.com var timeout= 500; var closetimer= 0; var ddmenuitem= 0; // open hidden layer function mopen(id) { // get new layer and show it ddmenuitem = document.getElementById(id);
[Code]....
I find script that does something similar and adapt it to do what I need it to do. Usually, I can work it out on my own - but I have been working on this for several days now.
I got this script of the internet that toggles a hidden div on/off. I have converted this script into a drop down menu so the hidden div is the second level of the menu and is floating above the rest of the content. how to go about modifying the script so that the hidden div is hidden again when i click anywhere on the page other than the div itself instead of having to toggle it.