JQuery :: Photo Rotator - How To Add More Than One

Nov 1, 2010

I used the code here for my photo rotator: [URL]. It works when there's one rotator on the page, but I need to add a few and that does not work.
function theRotator() {
//Set the opacity of all images to 0
$('.photos img').css({opacity: 0.0});
//Get the first image and display it (gets set to full opacity)
$('.photos img:first').css({opacity: 1.0});
//Call the rotator function to run the slideshow, 4000 = change to next image after 4 seconds
setInterval('rotate()',4000);
} function rotate() {
//Get the first image
var current = ($('.photos img.show')? $('.photos img.show') : $('.photos img:first'));
var currentButton = ($('.photos a.active')? $('.photos a.active') : $('.photos a:first'));
//Get next image, when it reaches the end, rotate it back to the first image
var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('.photos img:first') :current.next()) : $('.photos img:first'));
var nextButton = ((currentButton.next().length) ? ((currentButton.next().hasClass('active')) ? $('.photos a:first') :currentButton.next()) : $('.photos a:first'));
//Set the fade in effect for the next image, the show class has higher z-index
next.css({opacity: 0.0})
.addClass('show')
.animate({opacity: 1.0}, 1000);
nextButton.addClass('active');
//Hide the current image
current.animate({opacity: 0.0}, 1000)
.removeClass('show');
currentButton.removeClass('active');
};
$(document).ready(function() {
//Load the slideshow
theRotator();});

View 1 Replies


ADVERTISEMENT

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 :: Can't Get Rotator To Work?

Feb 18, 2011

I am trying to make a simple image rotator using JQuery. It seems to work for first loop however it does not iterate back to the start of images once it reaches the last image. I have tested and the code is getting the first image reference but due to some reason it is not working. I have attached my code.

[Code]...

View 2 Replies View Related

JQuery :: Automating An Image Rotator?

Jan 5, 2010

I am looking to include the following image rotator on a website[url]...

However I would like to automate it so that it scrolls through each image/description in an interval.

Is it possible to do with the jQuery used?

View 2 Replies View Related

JQuery :: Use An Image Rotator On A Site?

Jan 24, 2011

I'm trying to use an image rotator on a site. I've been told that we are set up to use Jquery plugins. But I'm not exactly sure what that means. Do I need to upload the jquery files to my server? Or can I just link to them? Here are the two files.

[URL]

Also, currently the rotator moves too quickly. How can I slow it down? Here's the entire script.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>

[Code].....

View 1 Replies View Related

JQuery :: Image Rotator W/o A Plugin?

Nov 10, 2011

I'm trying to do a simple image rotator without a plugin (they're not letting me use a plugin, but I don't need any transition effects, so it should be very simple w/o a plugin.

[Code]...

(I also would to find an approach that I can easily choose whether or not it should loop or not (stop at last photo or go back to the first photo..)

View 2 Replies View Related

JQuery :: Automatic Vertical Image Rotator?

May 17, 2011

I am working on building a website and have been looking for a jquery plugin with no luck. I am wanting something that doesn't show anything but the image. And then after X number of seconds, the image slides UP and the next image slides up from the bottom of the frame.

This is an example of the kind of plugin I'm after.[URL]

That one shows just the image and you can control speed, but it fades in/out. I just want it to slide up!

View 2 Replies View Related

JQuery :: With A Rotator. Displaying In Firefox, But Not Chrome Or IE?

Mar 15, 2011

I made a quote slider on a website im helping build, it works in Firefox, but not Chrome or IE,below is a link to the site, and also my code.

<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"</script>
<script language="javascript">

[code]....

View 1 Replies View Related

JQuery :: Creating Rotator For Home Page

Oct 17, 2010

I'm new to java script and am desperately trying to understand it all. My first question is, I'm trying to create a "rotator" for my companies home page, much like the one on [URL]. And by rotators, I am referring the the deal that right underneath the nav bar that is rotating pics, etc. I found one I like at a different site as well, so I talked to the web developer and he graciously supplied me with the java script code for it. The code is fine, but when I place it in a document, it has the pics and text underneath each other instead if rotating the pics.

View 1 Replies View Related

JQuery :: Use An Banner Rotator - Works On Firefox - Safari And IE8 - On IE7

Aug 3, 2010

I can't get jQuery working at all with IE7. I'm using the jQuery Cycle plugin, but I believe this problem is with jQuery (and the fact that I'm am a newbie). I'm trying to use an banner rotator, which works on Firefox, Safari and IE8. On IE7, it is not even activating... it just shows each div one after another.

Example: [url]

JS: [url]

CSS: [url]

View 2 Replies View Related

JQuery :: Create A Rotator Which Displays A Large Image With Caption And Uses Next/previous Button And Thumbnails For Control?

Feb 17, 2010

New to javascript/jquery, been trying to create a rotator which displays a large image with caption and uses next/previous button and thumbnails for control. Everything works fine but when the rotator gets to the last item i'd like it to go back to the first, and when the previous button is clicked at the first item I'd like it to go to the last.

$(document).ready(function() {
//set to zero
var x = 0;

[code]....

View 1 Replies View Related

Rollover And Rotator

Nov 4, 2005

I would like to be able to load new sets of images everytime I hit refresh and use rollover. Code: uses this idea. Everytime you log into their website, you get a new image. if you roll the mouse over the menu on the left of the picture, you get different rollover text on the picture.

What I have so far is image rotator, which will randomly load differnt photo everytime you access the website. However, I don't how to do the complete thing.

View 5 Replies View Related

Banner Rotator

Feb 1, 2006

I have a space on my page reserved for a banner to denote religious / special events and other notices that may be important for that specific day. At the moment the relevant banner is uploaded the night before ready for the next day.

A bit of research has led me to develop an automated Javascript script that loads up the relevant days banner using the getDate() and getDay() functions. This, however, means I have to name the banner for January 1st as 1.jpg in a folder named &#391;'.

What I am wondering is whether it's possible to draw up a spreadsheet (or text file) so that I can type in a more memorable filename (e.g. 'christmasDay.jpg') and it locates it in the folder and displays it on that relevant day. Is it possible for Javascript to do this sort of thing?

Another thing I've thought of (as an advanced bit, don't want to run before walking!) is perhaps to have a random banner from a selection shown if there isn't a religious date / special event on a specific day.

View 2 Replies View Related

JQuery :: Photo Slide Show Bug / Fix This?

Oct 18, 2011

I am using some excellent code for a photo slide show from ..

The way this slide show gallery works is there are mulitple list items in an UL and within each list item is an image. sequentially one list item has the class .show and this changes the css of that list item so opaque is set to 1. Making it visible. A timer determines when the list items change so the next list item within the hierarchy has .show. Once is reaches the last list item, it goes back to the first item.

The problem I have with my code is that when the page first loads up, the first image displays briefly before changing to the second image. After this happens, the slide show behaves correctly.

In bold are the the important lines of code. First I use jquery to assign .class to first list item. The second line of code in bold is a conditional statement. If no image has .show, assign it to the first list item. This is when the code doesn't work as intended.code...

View 1 Replies View Related

Jquery :: Background Photo Effects?

Jan 26, 2010

I am currently in discussions with a client to build them a website. The client has done the design assuming it will be built with Flash (ie. the pages are all full colour beautiful hi-res photos that fade in and out with the website content and navigation overlaying that.However, i prefer not to make websites with flash because i feel its more difficult to achieve the seo benefits and deep-linking that is so easy with standard website.So i guess my question is can i achieve these same background photo fade effects with Jquery. Ive been trying to find an example online but cant anything not using flash.I guess what im trying to do is similar to http://www.august.com.au/ except with a series of images fading in/out in the background.

View 2 Replies View Related

Banner Rotator Conflict

Dec 27, 2006

I am doing one of my first sites and having a problem with this script for an ad rotator:

<APPLET CODE="KzmAdvertise" WIDTH="200" HEIGHT="435">
<PARAM NAME="copyright"
VALUE="Alex 'Kazuma' Garbagnati, kazuma@energy.it">
<PARAM NAME="scriptfile" VALUE="advertise_2.txt">
<PARAM NAME="imagesdir" VALUE="ads">
<PARAM NAME="welcome" VALUE="Welcome to Let's Bus It">
</APPLET>

It gets blocked by a bunch of anti virus programs. Is there a way to fix this? Also is there a way to make the ads open in a new window?

View 20 Replies View Related

Image Rotator With Links

Aug 27, 2010

Im using this code to rotate images on refresh but dont know how to add links to each image, can't anyone help?

View 3 Replies View Related

JQuery :: Previous And Next Navigation For Photo Gallery

Sep 24, 2009

I am trying to a setup a jquery based navigation for my photo gallery i.e something like facebook using hash url technique. I am using php and mysql in the backend. Is there any example I could look at for implementing it. The reason for using hash urls is that I would like to have an unique url for every pic.

View 1 Replies View Related

JQuery :: Install Photo Gallery On A Website?

Sep 10, 2010

I really need a good photo gallery for my website, which must be done by Sep. 16th! I would like a jquery like fancybox or slimbox. Ican't figure out how to do either of them! I have absolutely no experience with this kind of stuff and would REALLY APPRECIATE if someone could provide a step-by-step instruction for me on how to set it up

View 2 Replies View Related

Looking For Simple IE6 Image Slider / Rotator?

Dec 16, 2010

I just need something that rotates/slides a few images when a page loads. I'd guess Jquery would work best? But it needs to work in all browsers, and I have read some horror stories about ones that don't. Any good recommendations?

View 1 Replies View Related

Image Rotator Missing Pictures

Apr 1, 2011

I have added an image rotator to my website using Java Script.The box for the rotator shows up on the published site but not the pictures.When I click on the box it links to the pictures I have added, and I know they are rotating because it changes every time I click on it.Also, the code does not seem to be showing up when I view the source of the page.

View 6 Replies View Related

Auto Start Page Rotator?

Jun 29, 2009

I launched the following scripts but only the "Auto Start Page Rotator" page appeared.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">

[Code].....

View 3 Replies View Related

Image Rotator Script W/links

Feb 23, 2011

im looking for an image rotator script with links, so every time the page is refreshed a new random image is displayed. The thing is, i need a script that doesnt have the location of the images in the script.I need a script like the current google adsense script, no advertisement links or locations are displayed.

View 2 Replies View Related

JS Rotator Not Working On My Server / Solution For This?

Feb 24, 2010

I have installed an image rotator script on my page however the animation is not working i.e. the rotation between images is not taking place. The script works on my localhost though. code...

View 4 Replies View Related

Image Rotator With Links Not Clickable

Jul 1, 2010

I did a search but didn't find this so if I missed the thread I apologize. I want to show 3 images with a link to the individual dog's page. The images are rotating just fine but none of them are clickable. I'm new to Javascript and took a simple image rotator script and then edited it.

View 2 Replies View Related

Backround Image Rotator In IE And Other Broswers

Jan 20, 2010

I found on this site very good script for rotating images in table background.[code]However, it works perfectly only in IE, while it does not work in any other browser. I understood that problem is with document.getElementById.

View 15 Replies View Related







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