Jquery :: .slideToggle - .slideToggle Script To Show Big Images When Thumbnails Are Clicked
May 11, 2009
Recently I've been using a .slideToggle script to show big images when thumbnails are clicked.
However, the <div> that is revealed does not Toggle Up when multiple thumbs are clicked, so I'm left with a bunch of open <div>s on the page.
I'm not sure what to do -- I think it has something to do with the siblings of the class "largeexamples" but I'm not sure. I've also been reading about eq, but I'm not there yet.
I work on a website and the client wants jQuery on the menu. When a user clicks on "webdesign" link menu a shadow goes down with some text on it(you can try it).Right now when I click on that webdesign menu link, the other one "ipone apps" goes down too, but the owner doesn't like this. He likes that shadow, but he doesn't want to see that other menu link to be moved when he clicks on other menu link.
I'm newbie to jQuery and java script, i try to make show/hide effect for block with product info like here URL... (square images with rollover info).For example i have code this code (effect could be slideToggle or show/hide):[code]But when i add some tags inside div "bo2" like <div>some text 1</div> or <p>some text 2</p> etc. this parent div start flickering on mouse moves.
I have a table that Im hiding during the initial load that has a considerable amount of data. (I dont design'em, I just code 'em).
During the .show, .hide ... functions I would like to display a please wait msg. But I cant seem to find a way to do an async function. As the callback functions only deal with sync ...(I think)
The purpose of the code is to slideToggle open one of two hidden sub-nav bars when either of two different menu items are clicked upon - instead of a drop down menu. What doesn't work is the hiding of the div that is not required, if it is already open. Viewing in firebug shows that the appropriate classes are being applied - I suspect the reason is that slideToggle has been somehow set and cannot be unset via another object - but perhaps that is not it at all?
$(document).ready(function() { //add .toggle function to appropriate li element $('#hozmenu li:nth-child(4)').toggle(function () { //set 4th menu links colour to be green whilst div is shown $('#hozmenu li:nth-child(4) a').css('color', '#95d890'); $('#toggle_nav_services').removeClass('toggle_show'); [Code]....
I have a series of 30 thumbnails. When a user clicks on the thumbnail I would like to add the enlarged photo to to the "bigSample" div. Because the photos file sizes are large, I think it would be best to add them on the fly using addChild. I will be using an external script with initAll and I think I might be able to use this.parent.href, but my Javascript skills have only improved slightly. It would also be nice to toggle them so that if they clicked the thumbnail again the enlarged photo would go away, but maybe that's too greedy a request.
Is there a way to tell the state of slideToggle? My problem is I have two buttons that change a div and also toggle it open/close. But if you click one button then click the other, the changes take effect and then it will close. So is there something like if(slideToggle() == open) or something along those lines?
i'm using slideToggle which reveals a large element upwards;
[URL]
Given that the element revealed is very high the anchor tag that is used to show/hide sometimes disappears. I've tried return false; but that doesn't fix it
I use two jQuery plugins in my page : slideToggle (for a top panel) and wslide (for showing two examples with images and captions).The problem is, the content of my wslide goes down and downer each time we open the toppanel. Is there any way of getting around this problem and make the content stick to where it should be? Here's some code :
I'm using a slideToggle() to show or hide a div in the bottom of my page.When the div is shown the view don't "follow" the div that is appearing.How can i make the view sliding down with the div that is appearing?
This works fine, except if you move your mouse over the child-element before the animation is complete.then it gets stuck in an endless bouncing up and down loop. Tried so many different possibilities with flagging the element while it was animating, stopping animations, adding delays and what not.
I am trying to make a form that collects "Number of Children" a parent has. If they select "4" from the select input, then I want to slidetoggle out the appropriate divs, one for each child.
[Code]...
I have been able to use slidetoggle in the past when attached to a button, but this one has me lost. Anyone know how to accomplish this?
For my work i need to make a form. At some points you have to choose an option from a dropdown select box. After you have chosen one of those some other field appear under the dropdown thing. I use the slideToggle event for this effect. In firefox its all working fine, but in ie 6.0 and 7.0 it doesnt work. What do need:A dropdown menu with a few options in it. You can choose one of those and after you select it a few other options apear under the dropdown menu.
I just included some Jquery on my portfolio page. Every project slide open and close when you click on it. [url]
But I just found out that it doesn't work in Firefox on my mac. It does in Safari (I can't test on windows).
I put everything in a <dl id=workcontent>, so the project names in a <dt> and the content in <dd>. I let Jquery look for the <dt> and if you click on it, it will slide open.
Just like in the tutorial on the jquery page. Also all the subheadings are missing, you can only see the first one (video), but there are more (animation, web, other).
Now where does the problem lie? Should I use all <a> links instead of <dt> ? And how can I let Jquery act the same way then as it does now?
I'm trying to piece together a little div which slides out and shows various links to sites like Digg, Reddit to share the story with. I've got it kind of working but when there are multiple divs on the page, named the same like in each article of a post on a Wordpress blog. Only the top ones work and the rest don't do anything...I'm trying to get it do something like the image => HereThis is an example I'm trying to get to work but the second "slickbox" div never shows
I am trying to get my divs to resize but i am having a number of difficulties. I am new to jQuery so be gentle! Here is what i am trying to achieve:
1) When the "About me" div is clicked - resize the "About Me" div and hide the other divs. (Which i have managed to get working)
2) When the initialanimation has finished, wait for another click before resizing the div to its original size/position. (This is working but I have had to use the delay function to "pause" the animation - which is not ideal).
I need to toggle my lists independently within my <sidebar> div. As current, it will minimize or maximize them all upon click. My aim is for them all minimized to begin with, and upon individual selection, i wish them to maximize. Heres what i currently have:
I'm using mouseenter and mouseleave to call a slideToggle on a dropdown menu. What's bothering me though is if my mouse moves in and out of the menu a few times before the toggle animation is complete and replays the open close a few times before stopping. [URL]... Is there a way to kill the queue so that it doesn't play if the mouse is not over it anymore?
i'm looking for some help with a weird problem I've come across. So, I'm using jQuery's toggle() function to hide and show a html element, for example a <div>. Then I put the current state in a cookie ( visible / not ) and when I refresh the page I get the data from the cookie and if the state says non-visible I hide the element. So far so good. However, I wanted to add some animation to the whole thing so I've put slideToggle() instead of toggle() and it works, but when I refresh the page, the element won't hide. Any idea what's the problem? Am I wrong going for slideToggle?
I'm having a problem with toggling certain links, if a link is clicked. I don't know why, and I have no idea about jQuery, but somehow whenever I click on a link, it displays all of them.
The problem: [url]
"Start" should be the link that is clicked, and toggles the link within this links only.
I am doing a simple slidetoggle with a click function. Meaning I am basically sliding a div (content) into nothing with another div (button) using a click event. This works all fine and dandy but now here is the problem.. I want to change the class of the div(button) so that I may show a different background image depending on the state of the open or closed content div.
Here is the code so far... $(document).ready(function() { $('.Button').click(function() { $('.Content').slideToggle('normal'); if($(this).next().is(':hidden') == false) { $(this).addClass('off'); alert ('You should see See More button.'); }}); Then obviously I have CSS that has the classes I need including an "on" class that I could not get to fire.
When i click on the link a panel should open, but when i click on the other link that panel should open but the first panel should get closed before the new one opens.
I have a slideToggle div, when clicked slides down like a normal slideToggle. However, I have multiple slideToggle divs on top of each other, similar to an Accordion. Is there a way to use the collapsible characteristic for slideToggles like used in an accordion? Meaning when one slideToggle div is open, and then another is clicked, the previously opened one automatically closes. I am trying not to use an accordion due to other factors with my site.
I am trying to use slideToggle to drop down a hidden DIV.This hidden div is in the footer.As the div drops down, I would like that the window scrolls down with the div rather than just opening the div and forcing the user to then scroll down with their mouse.I tried setting the button to an element below the DIV as follows <a href="#element below hidden div"></a>And it works sorta, but not completely.