Jquery :: Toggle Plus / Minus Image And Animate Photo

Jun 23, 2011

How to do this but still can't figure it out. I'm currently reading jQuery from novice to ninja but I'm no where close to a ninja. I have a div containing list items, a photo, and a plus/minus button at the bottom of the div. The list items are absolutely positioned behind the photo. When I click on the plus button I want it to change to minus and animate the photo 29px from the top revealing the list-items behind it. Then I want to click the minus button changing it back to plus and animating the photo back up to the top.

I'm trying to accomplish something very similar to what you see on Kyanmedia.com. Except their images animate down and up on hover. I want my image to animate down then up on click and toggle the plus/minus image. I'm new to jQuery so I'm having a real hard time trying to figure this out. Everything I've tried doesn't work. The links to Kyan Media to get an idea of what I'm trying to do.

View 1 Replies


ADVERTISEMENT

Swaps A Toggle Image For News For A Plus Or Minus Sign Showing If The Div Is Open Or Closed

Dec 11, 2009

I have this little snippet of code that swaps a toggle image for news for a plus or minus sign showing if the div is open or closed. This code has worked before but i made a couple modifications today and it stopped working unexpectedly and i'm not sure why its failing. I am presetting the div tag with a plus sign with css and then modifying it with javascript. The problem i am having is that when the div tag has been opened it does not swap the image to min.gif anylonger. It remains max.gif.

[Code]....

View 5 Replies View Related

JQuery :: Classname Of Link Not Toggle Between Plus And Minus

May 10, 2010

I've just recently become enlightened by jQuery and would like to add it to my site, but I'm having a little trouble. I made this basic function:
function showPanel(id) {
var panel = $(".further_info." + id + "");
panel.slideToggle();
$(this).toggleClass("minus");
$(this).toggleClass("plus");
}

To give an example of its use:
<a class="panel_control plus" onclick="showPanel(0);"></a> <div class="further_info 0"></div>
The panel is displayed correctly, but the classname of the link isn't toggled between "plus" and "minus."

View 2 Replies View Related

JQuery :: Toggle The Fadein/fadeout Animate?

May 1, 2010

I would like to have the content container slide out as a dropdown fade effect.I currently have this but i can't get my head around to using the fade

//Hide (Collapse) the toggle containers on load
$(".toggle_container").hide();
//Switch the "Open" and "Close" state per click

[code]....

View 1 Replies View Related

Links Extend Past Text And Toggle Description Without Photo?

Jan 27, 2011

I have a bit of javascript that is supposed to change picture and its accompanying text when you hover over a bit of link text in another area of the page. This is working, however, the text is toggling without the picture due to an invisible area next to each link. I am not sure if it's an issue with applying my javascript to another bit of code or what.

Here is the code that I have that flips the text:
<script type="text/javascript">
function tabOver(which)

[code]....

View 1 Replies View Related

Jquery :: Toggle And Animate - Unable To Get CLICK EVENT In The Script?

Nov 3, 2010

Page 55 of JQuery Novice to Ninja shows the following code. When the page is run you CLICK on the first paragraph and the animation is triggered BUT I do not see any CLICK EVENT in this script. Isn't the document.ready function the trigger? What am I missing?

$(document).ready(function(){
$('p:first').toggle(function() {
$(this).animate( {'height':'+=150px'}, 2000, 'linear')[code]......

View 2 Replies View Related

JQuery :: Toggle & Animate Div Location, Text Displayed & Graphic Rotate?

Jun 19, 2010

Here's what I'm trying to do: When someone clicks on plain text with div of "hdrlink", then div of "slideshow" will close up using toggle. At the same time also need div of "headerNav" to move up 300px. When the user clicks "hdrlink" again, then "slideshow" reappears and "headerNav" move back down 300px (starting position)Here's the script:

<script type="text/javascript">
$j('#hdrlink').click(function(){
$j('#slideshow').toggle(800),

[code]....

View 10 Replies View Related

Photo's / Image Won't Move

Sep 16, 2010

I am currently building a simple photogallery. The photogallery contains a box with a few photo's in it, lined up horizontally. The box where the photo's are placed in is using an overflow so that there are only shown a few photo's. Below the box i have two buttons, left and right. The idea is simple if you click the left button the photo's must go 50 px to the left and visa versa goes with the right. I have coded this but the photo's unfortunately won't move! Have i done something wrong? You can see my code here:

View 2 Replies View Related

Photo Gallery - Activating The New Big Image

Nov 26, 2010

I'm trying to tweak in order to fulfill my specific needs. What I like about it is that the thumbnail gets created automatically by using the actual big picture as a background image. The problem I'm having at the moment is with activating the new big image. I get to the point where I reset visibility for all and can't figure our how to make the new one visible. It's straightforward for the thumbnail because it uses the word this, but I can't use "i" to control which big image becomes visible because "i" has already run to the end (=6).

[Code]..

View 1 Replies View Related

JQuery :: Animate Size Of An Image?

Jun 20, 2010

I'm searching for a short explenation for handling image animation regarding this situation [code]...

when i use this code the image is blowing up from the left top corner to the size i declared in the animate function. but im searching for a animation out of the middle of the current size to the declared one.

so it shoulndt blow up from top left ..more it should blow up to all corners at same time.

can someone show me an example or something like that?

View 1 Replies View Related

JQuery :: Use .animate To Resize The Image?

Jan 18, 2011

I need to have an image of a heart on a site that beats, so essentially it expands and contracts. Whats the best animation effect for this? Should I use .animate to resize the image?

View 7 Replies View Related

JQuery :: Hover Over An Image And Have It Animate Up And Bounce At The End?

Dec 22, 2011

want to hover over an image and have it animate up and bounce at the end. I have tried several lines of Jquery code trying to do this but all I get is an upward movement.

$('.class').hover().animate({height:'20px'},

View 1 Replies View Related

Adding Image Alternate Description From Dynamic Photo Gallery?

Jul 16, 2010

am just about at wits end, and I am hoping someone here will be able to assist. I've searched and searched and have come close but to no avail. I found a nice image gallery code from "David's Kitchen" http://monc.se/kitchen/80/lightweight-image-gallery-with-thumbnails and have tweaked it to eactly what I wanted, however, I want to add an image caption of the alternate image text below the active picture. I've tried everything I could think of (with my limited knowledge) with no successHere is the code I have:

<html>
<head>
<style media="screen,projection" type="text/css">

[code]....

View 4 Replies View Related

Photo Gallery - When The User Clicks On A Thumbnail The Image Displays

Feb 24, 2009

when the user clicks on a thumbnail the image displays. I actually managed to make this work with just two images, but wasn't sure how to make the script work with, say 6 images. Anyway this is what I have so far:

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Gallery</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
[Code]...

View 6 Replies View Related

JQuery :: Animate Background Image, Change With Dropdown Select?

May 9, 2011

I have a dropdown with various options in, when you select an option it changes the background image of a div. However I would like to animate this change to a fade effect.

The code I have for this at the moment is. (The div bgimgtest has a default background attached to it (images/DELETE/FAV1.jpg).)

<div class="bgimgtest"></div>
<select id="shirt_type">
<option>1</option>

[Code].....

View 2 Replies View Related

JQuery :: Animate ZoomIn Image VS CSS3 Animation Scale

Nov 30, 2011

I have problem with using very smooth jquery animate. I need to zoomIn Images with effect depth and walking into image. When i'm using css3 with animation and scale everythink looks like ok, the animation is very smooth but when i using css2 with jQuery animate thats look not good,

View 2 Replies View Related

JQuery :: Single Image Hover Parallax / Animate Effect

Apr 20, 2011

I am looking for a simple parallax/animate like effect, i have a single image and if i hover on it the image should move like the parallax effect. So if i put my mouse in the topleft corner the image should move in the direction bottomright. I know this i very simple but i cant seem to get it working or how to get this working.

View 4 Replies View Related

JQuery :: Select All Inputs That Have A Value Containing A Minus Sign?

May 29, 2010

I am so close to finishing this project and I stumbled upon this block...

<div class="line first">
<input type="text" value="0,00" class="nbr first">
<input type="text" value="" class="date">
<input type="text" value="" class="date2">

[Code]...

I have here two inputs with class nbr. The initial values are set, and those values change programmatically over time. My list of inputs is a lot longer than this but I simplified. You can see the work in progress on [URL]. Just insert two random dates in page1 with the datepicker and the navigation will appear. At the end of a series of calculation I need to grab all inputs with positive numbers, and all inputs with negative numbers.I was thinking of selecting all fields with nbr class first, then use .filter() with a function

edit: nevermind, I found it.

$('input.nbr.first').filter( function(){
if($(this).val().indexOf( "-" ) !== -1) {return true} else {return false}
} )

View 3 Replies View Related

JQuery :: Saving Chain Minus A Selector?

Feb 24, 2010

I've checked Google and searched the jQuery forum and didn't see anything. Is there a way to do the following as I'd like to use the same chain multiple times with with different selectors:

var chain = .attr('value', 'Search Digital Collections').css('color', '#E0E0E0');

View 2 Replies View Related

Photo Gallery - Show Full Screen Image When Thumbnail Is Clicked?

Dec 16, 2009

I have a page, which is actually a photo gallery with a table having 3 rows. First row shows the full screen size pic. Second row displays the Caption of that image and third row shows thumbnail view of six different images and the previous and next button.this is the sample layout:

<table>
<tr>
<td colspan=8>

[code]...

My requirement is whenever the user click on the thumbnail view, which is in the 3rd row, the corresponding full screen size pic should open in 1st row of the table.As my photo gallery should be having more than 6 pics, lets take 20 pics, I want to show only 6 thumbnails in 3rd row at a time. Whenever user press "Next" button the 3rd row having 6 thumbnails should show other 6 thumbnails and previous button should show previous 6 thumbnails.

View 10 Replies View Related

JQuery :: Advanced Image Fader - Animate A Number Of Thumbnails In A Gallery

Oct 27, 2011

I would like to animate a number of thumbnails in a gallery. My idea is to have each thumb transit to another thumb, i.e. you put your mouse over a thumbnail, and it slowly fades to a different image. I have spent a lot of time trying to get this to work, using exhaustive combinations of fadeToggle() and stop(false, false) etc etc and I still can't get a smooth effect.

I have created my own fade engine using a variable that drives the opacity of the image that fades in/out over the other image. My issue is that I would like to get this into a function, as it works beautifully for one image, or if you simply duplicate the code for other thumbnails. The problem is there could be up to 32 thumbnails on the page, which means a lot of repeated code.

[Code]....

View 2 Replies View Related

JQuery :: Registering Toggle In An Image?

Jan 5, 2012

I'm trying to register a toggle event in an image. It works fine for the click event like this:

var img = $("<img/>", {
src: "/Content/Images/expand_icon_left.png",
style: "position:absolute;margin-left:" + marginLeft + ";margin-top:10px;",
click: function() { alert("do toggle"); }
});

I want to do the sabe as shown above, but with toggle event instead of click event.That's wahat I've been trying:

[Code]...

View 2 Replies View Related

JQuery :: Toggle The Source Of An Image?

Nov 19, 2010

I recently discovered the awesomeness of jQuery, and decided to use it.I'm currently using the slideToggle() to toggle my div nicely.The thing is, I also want to have a small icon to change according to wether the div is visible or not.Here's my HTML:

HTML Code:
<div class="box">
<!-- Content of this box will come later -->

[code]....

View 1 Replies View Related

Photo 1 Is Shown For A Little While, Then It Switches To Photo 2?

Apr 28, 2010

I would like to have a code on my page that causes two or more photos to change between each other. For example, photo 1 is shown for a little while, then it switches to photo 2, etc. I would also like to switch text that goes along with the photos. I would like my layout to look like this:Photo / Text about Photoand have both switch after a little while, to the next photo and text.

View 5 Replies View Related

JQuery :: Animate And Click Together - When The User Clicks On The Div The Image Should Stay In The Hover Position

Jun 2, 2009

I've been looking for an "Ajax CMS" but decided to learn jQuery to learn how to code it myself in order to earn some geek-girl cred among my male colleagues. I've learn a lot about jQuery in a week but as you can imagine I still have a lot to learn.

I have successfully animated an image (move to the left and increase opacity) when the mouse hovers a div and reset the image (move it back to its original position and reset the opacity) when the mouse move outside the div. So far so good...

Here comes the question: What I need to do -and don't know how to - is when the user clicks on the div the image should stay in the hover position while still being able to hover any other divs and activate the animation normally.

When a different div is clicked the previous "Clicked" div should return (animate) to its original position and the new "Clicked" div should stay in the hover position. Content will be loaded when the divs are clicked but there won't be page refresh since I'm loading the content by using the load funtion of jQuery.

I'm including the code:

View 1 Replies View Related

JQuery :: Switch Image Source During Toggle?

Oct 2, 2009

I have some divs I am toggling and there is a little + sign image I want to change to a - sign image when the toggle event occurs, but can't quite figure it out. Here is the toggle code I have (taken from

[Code]...

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved