JQuery :: Sliding Text After Image Click?

Feb 2, 2011

I am very new to jQuery and am trying to learn by incorporating and editing things I have done in tutorials into an actual website design.

The problem I am having is how to get some text to slide down from behind an image after it is clicked. So for instance; I'd have an image which says "Things to do" or whatever then when the image is rolled over/clicked some text will slide down from behind the image with links to pages of different things to do.

I think it might be something like what was done in this tutorial: [URL]..but that tutorial uses two images rather than an image and a div with text in it which is what I am trying to achieve.

[Code]...

View 8 Replies


ADVERTISEMENT

Image / Text - Sliding Semi-transparent Text Layer Over A Thumbnail Image When Hover

Jul 5, 2009

I've been looking all over the place in order to find a script like they use on Foliostars, where you see a sliding semi-transparant text layer over a thumbnail image when you hover. how to achieve this using JS or an Ajax framework (preferably JQuery)?

View 2 Replies View Related

JQuery :: Sliding Elements Into View Port On Click

Jun 21, 2010

Hides the element by sliding it down.
$("div").click(function () { $(this).hide("slide", { direction: "down" }, 1000); });
I am new to Jquery. How do I reverse this code to slide element into viewport as opposed to slide out of view port. This is the link to the effect [URL]. What I want to do is the element will be hidden originally on loading the page and then slides into view with a click anywhere on the page, an anchor or after a few seconds.

View 1 Replies View Related

JQuery :: Swap Image + Text On Click On Anchored Thumbnails?

Aug 15, 2011

I am creating a custom gallery that I require an image and text to swap on click of an anchored thumbnail. I have successfully managed to change the image on click however I can't seem to manage changing the text. Currently when a user clicks on the thumbnail both the image and text is swapped however when the user clicks on another anchored thumbnail (after clicking on the first) the image swaps correctly but the text does not change My Code

HTML
<body>
<div id="container">

[code]....

View 2 Replies View Related

Jquery :: Image Slider Not Sliding In Chrome

Feb 16, 2011

The script is written in Jquery, it's a simple piece of code which I've seen on another website here [URL]. I modified the code a bit to work with a website I made for my portfolio. The problem with the code is that is works fine in firefox but it doesn't on chrome. the code doesn't break entirely but on chrome the images doesn't slide, it just jumps from image to image. here's the code

Code:
var settings = {
startingPosition : 0, //--------------------------------set starting position for images, 0 for first image
slideSpeed : 550, //---------------------------speed of slide, seconds/fast/slow
easing : 'linear', //-------------------------easing type
navigationClass : 'slider_navigation', //--------------class of navigation (the prev and next)
activeItemClass : 'slider-current-active-element', //--name of class to be added to first element
repeat : true, //-----------------------------make gallery neverending .....

Most of it works fine but I'm guessing the animate part in the problem
Code:
//the slide animation
elContainer.animate({
'marginLeft' : animateToWidth
}, opt.slideSpeed, opt.easing,
function(){
//if forward is clicked
if(opt.repeat && direction == 'forward'){
$("> :first", elContainer).appendTo(elContainer).css({opacity : 0}).animate({opacity : 1}, 400);
elPosition += imgWidth;
elContainer.css({
'marginLeft' : elPosition
});}

Here's the dummy site I made [URL]. I'm no expert on javascript so how to make the code better?

View 6 Replies View Related

JQuery :: SlideToggle()'s Parameters Were Expanded To Include A Separate Callback For Sliding Up And Sliding Down

Sep 13, 2011

If slideToggle()'s parameters were expanded to include a separate callback for sliding up and sliding down. Or for backwards compatibility, perhaps include an optional boolean parameter in the callback to more easily discern between a slideUp and slideDown operation.

View 1 Replies View Related

JQuery :: Background Images And Varied Sliding Text?

Feb 12, 2011

My client wants a series of 4 background images that cycle (probably fade), and each time a new image appears, they need text to slide in from either the right or left, depending on the image.I've done the fading background image part quite often, but have never tied another action to the new image loading.

<picture 1, fades in><text for picture 1, slides in from right>
<picture 2, fades in><text for picture 2, slides in from left>
<picture 3, fades in><text for picture 3, slides in from right>
<picture 4, fades in><text for picture 4, slides in from left>

I've seen a lot of tutorials for the two things separately, but not for the two combined. And I'm the first to say I'm a newbie to jQuery and relative newbie to Javascript. So I'm not sure how to go about even knowing if this is do-able.

View 1 Replies View Related

JQuery :: Make The Text Stop Sliding To The Right On Hover?

Jun 30, 2009

how can i make the text stop sliding to the right on hover?

View 2 Replies View Related

JQuery :: Sliding A DIV And Swapping Images/text At The End Of Slide?

Jun 21, 2010

I am trying to create a menu that would look and act like this image illustrates: [URL] Essentially the three boxes slide down when rolled over and menu items appear in the portion that has slid down.So far, I have figured out how to make an image slide using jQuery: [URL]

View 2 Replies View Related

Jquery :: Simple Horizontal Sliding Text Menu

Aug 26, 2011

Im using this javascript plugin on my website and i try to figure it out how to make the shop link work - when i click on shop i want to load another page directly. I'm a new in webdesign (actually this is my first website) and i think that i should change the script.. so take a look at my page source.

View 2 Replies View Related

Jquery :: Sliding Content - Image Scroll Up To Show Bottom

Apr 7, 2011

I thought this would be easy but I'm stuck and I can't describe what's really simple so I've drawn a diagram. [URL]. I have a div containing an image like 1 in the diagram. I only want to show the top of the image like 2 in the diagram. When I hover over the div I want the image to scroll up to show the bottom of the image like 3 in the diagram. [URL].

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[URL]">
<html xmlns="[URL]" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<title>untitled</title>
<style type="text/css" media="screen">
*{
margin:0;
padding:0;
}
#wrap{
margin:50px;
width:700px;
}
ul{
list-style:none;
}

</style>
</head>
<body>
<div id="wrap">
<ul>
<li><a href="#" id="one"><img src="img.gif" width="250" height="200"/></a></li>
</ul>
</div>

<script src="[URL]"type="text/javascript"></script>
<script>
$('li').hover(function(){
$(this).find('img').animate({top: + (-200) + 'px'},200);
})
return false;
</script>
</body>
</html>

View 2 Replies View Related

How To Click An Image, That Creates Text In A Textarea

Sep 10, 2002

Sorta like Vbulliten when clicking on the images, smilies, it creates "" in the textarea box. How do they do that?

View 6 Replies View Related

Can't Get Swap Image And Set Text To Work On Same On Click Event

May 6, 2007

I have image thumbnails on the right of the page. When the user clicks on a thumbnail I want two events to happen.

1. I want the image in the center of the page named "swap" to swap to a larger version of the clicked thumbnail.

2. I want the person's bio to pop up in a div to the right of the bigger picture.

The page looks fine in Firefox 2.0, Ie7, but the image doesn't swap in ie6. The text switches, but the image doesn't pop up.

View 4 Replies View Related

Vertical Scrollbar And Sliding - Move The Scroll Bar On The Right To The Bottom And Then Click On Description Again

Mar 7, 2010

The link is here [URL] Click on description. Move the scroll bar on the right to the bottom and then click on description again. Instead of the thumbnails scrolling up to hide the description, the main image and header move down. Any tips on addressing this. My brains are a bit frazzled at the moment. Do I need to fix the vertical scroll position somehow. What properties do I need to be looking at? (Note : I'm currently animating the height property of the description box.) Second question. I did have auto margins in the wrapper centering the page. When you click on description it causes the scrollbar on the right to appear, which shifts the page over to the left. I've since fixed the margin, but again is there a way around this so that I can center the page again?

View 1 Replies View Related

Click On A Image And Some Text Is Added To A Textarea --javascript Code?

Sep 12, 2009

I am looking for a javascript code for this idea under this messageI want to create a kind of shopping website so when you click on a image or text it will add some text to a textarea,, it will include the name of item and price of an item

View 18 Replies View Related

Sliding Content - Show The Top Of The Image Like 2 In The Diagram

Apr 7, 2011

I have a div containing an image like 1 in the diagram I only want to show the top of the image like 2 in the diagram When I hover over the div I want the image to scroll up to show the bottom of the image like 3 in the diagram It seems really simple but I'm completely stuck

[Code]....

View 1 Replies View Related

Multicolumn Text Flowing Multipage Sliding

Jun 3, 2011

Multicolumn text flowing through multipage sliding, should calculate total column, gap, text size, image size for different browser. To be control with Previous Page & Next Page. At the ending of story the next Page sliding should stop. How to implement with CSS, javascript, jsscript, if any...

View 4 Replies View Related

Simple Sliding Image Gallery With Mouse-over Navigation?

Mar 17, 2009

I'm looking for a super-simple sliding gallery plugin that would produce something similar to this: http://labs.paulicio.us/viewport/ .The only thing is I'd like there to be no visible "next" and "previous" type button until the user mouses-over the gallery. I KNOW I've seen this somewhere but it appears I forgot to bookmark it!

View 2 Replies View Related

JQuery :: Placing An Image Over Existing Image On A Mouse Click Event?

Mar 12, 2011

I've been trying to have an image be placed during a mouse over or mouse click event. The closest to accomplishing this is having the image be replaced by the image I want to overlay.

View 2 Replies View Related

JQuery :: Make An Image Selection, Display Same Image On Page In Unique Id And Save To Hidden Input All In One Click?

May 11, 2010

Using a UI dialog I'd like to load in 10 or so images. Each would be unique and after you click on one the following needs to happen:

1. Image appears on the parent page in a specified ID.

2. A "hidden" field is updated so that when the user submits the db is updated with their selection.

3. Dialog closes automatically.

That's it. Basically it would work similar to "datepicker".I'm using the latest 1.4 and ui and been making great progress as learning basics. I need to do the above and it seems like such a no brainier and or it should already exist but after 2 days of searching and trial and error...

View 6 Replies View Related

To Disable Right Click Or Not - Copy The Images With The Default Right Click Over An Image

Dec 16, 2011

Should I disable the right click option or not? I have a gallery site, I don't want people to be able to copy the images with the default right click over an image. From a professional looking site point of view I suppose I would be messing with the functionality a bit too much, OR is it OK in this instance to disable the click. I know how to write the code to disable the click, but what I was thinking was maybe it would be better to leave the right click but change the menu options? I'm not sure how to change the menu options ere is a link to the site. [URL]

View 12 Replies View Related

Alternative To Document.write To Replace Image On Page - Click Event That Replaces An Image On Page With New Image

Aug 29, 2010

Im trying to have a click event that replaces an image on the page with a new image that has been selected randomly from an array. I have solved PART of this already (can get the random image to appear).

However, instead of appearing on the page where the old image was, the new image appears in a blank page.

My research indicates that this blank page location-problem is a result of using document.write in the Function. Therefore, I know I need to find a different way to accomplish this, but am failing miserably.

I have been trying for hours and hours and HOURS to figure out proper syntax for accomplishing this via elements, functions, variables and mootools.

A bit of my research:

-I found this---but havent figured out how to implement it in my scenario:

Source: [url]

-I found this---but havent figured out how to implement it in my scenario:

Code:

Source: [url]

View 4 Replies View Related

Click Event That Replaces An Image On Page With A New Image That Has Been Selected Randomly From An Array

Aug 29, 2010

Im trying to have a click event that replaces an image on the page with a new image that has been selected randomly from an array. I have solved PART of this already (can get the random image to appear).

However, instead of appearing on the page where the old image was, the new image appears in a blank page.

My research indicates that thisblank page location-problem is a result of using document.write in the Function. Therefore, I know I need to find a different way to accomplish this, but am failing miserably.

I have been trying for hours and hours and HOURS to figure out proper syntax for accomplishing this via elements, functions, variables and mootools.

A bit of my research:

I found this---but havent figured out how to implement it in my scenario:

I found this---but havent figured out how to implement it in my scenario:

Code:

Source: [url]

View 1 Replies View Related

Zoom A Image When Click On The Image It Should Maximize In New Customized Window

Sep 7, 2009

I need a script to zoom a image.when i click on the image it should maximize in new customized window and the main window should be disabled.

View 2 Replies View Related

Keep Track Of Mouse Click On Top Of Image But What When Image Moves?

Feb 27, 2010

I am still designing the website and want some flexibility. I am capturing the mouse clicks fine on top of an image, but the coordinates are absolute and not relative to the image. How can I capture mouse clicks relative to the image so that I can move the image anywhere in my website?

View 3 Replies View Related

Click An Image To Open Another Image In A Wordpress Post?

Dec 22, 2009

Want to click an image to open another image in a Wordpress Post

View 1 Replies View Related







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