Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-26-2009, 06:18 PM   PM User | #1
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
JQuery... Why is stopping at the end of the slide show?

I am having trouble with my Simple Slide show as it is stopping at the end of the slide show. How come as it is set with

$(function() {
setInterval("slideSwitch()", 5000);

Any help on how to do this slide show re-starting ?
pimpthatfood is offline   Reply With Quote
Old 09-26-2009, 07:20 PM   PM User | #2
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
This is where I have the Slide show www.pimpthatfood.com. and this is the script I am using.

function slideSwitch() {
var $active = $('#slideshow a.active');
var $next = $active.next();

$active.addClass('active last-active');

$next.css({ opacity: 0.0 })
.addClass('active')
.animate({ opacity: 1.0 }, 1000, function() {
$active.removeClass('active last-active');
});
}

$(function() {
setInterval("slideSwitch()", 5000);
});
pimpthatfood is offline   Reply With Quote
Old 09-26-2009, 08:09 PM   PM User | #3
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
function slideSwitch() {
var $active = $('#slideshow a.active');
var $next = $active.next();

$active.addClass('active last-active');

$next.css({ opacity: 0.0 })
.addClass('active')
.animate({ opacity: 1.0 }, 1000, function() {
$active.removeClass('active last-active');
});
}

setInterval("slideSwitch()", 5000);
seco is offline   Reply With Quote
Old 09-26-2009, 08:35 PM   PM User | #4
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
I've just tried it but it's not working. it is still stopping at the end. Watch how it's showing www.pimpthatfood.com

At least on my browser. Is it working on yours?
pimpthatfood is offline   Reply With Quote
Old 09-26-2009, 09:16 PM   PM User | #5
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
try

setInterval(slideSwitch, 5000);
seco is offline   Reply With Quote
Old 09-26-2009, 09:24 PM   PM User | #6
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
still not working
pimpthatfood is offline   Reply With Quote
Old 09-26-2009, 11:11 PM   PM User | #7
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
use jquery Cycle.
seco is offline   Reply With Quote
Old 09-27-2009, 02:38 PM   PM User | #8
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
I've downloaded the jquery.cycle.all plugin and also I inserted in the coding header and guess what it's not happening. Do you have a link where I can download the one the should work for me?

This is what I have in the header

<link href="/storage/slideshowcentre.css" rel="stylesheet" type="text/css"/>
<script src="/storage/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/storage/newjquerycycle.js" type="text/javascript"></script>
<script src="/storage/jquerycycletrans.js" type="text/javascript"></script>
<script src="/storage/slideshow.js" type="text/javascript"></script>

Are they maybe conflicting? Which one should I remove?
pimpthatfood is offline   Reply With Quote
Old 09-27-2009, 03:52 PM   PM User | #9
pimpthatfood
New Coder

 
Join Date: Sep 2009
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
pimpthatfood is an unknown quantity at this point
Is it in my last active image the problem that I have?

#slideshow {
position:relative;
height:336px;
width:448px;
text-align:center;
left:60px;
}

#slideshow a{
position:absolute;
top:0;
left:0;
z-index:8;
}

#slideshow a img{
border:none;
}

#slideshow a.active {
z-index:10;
}

#slideshow a.last-active {
z-index:9;
}
pimpthatfood is offline   Reply With Quote
Old 10-07-2009, 04:39 AM   PM User | #10
bitbitrid
New to the CF scene

 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bitbitrid is an unknown quantity at this point
Hi everyone, This is where I have the Slide and the script I am using:

function slideSwitch()
{
var $active = $('#slideshow a.active');
var $next = $active.next();

$active.addClass('active last-active');

$next.css({ opacity: 0.0 })
.addClass('active')
.animate({ opacity: 1.0 }, 1000, function() {
$active.removeClass('active last-active');
});
}
_____________________
Financement simulation de credit immobilier de France, Courtier simulation de credit immobilier, Calcul pret et taux credit immobilier
bitbitrid is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:41 AM.


Advertisement
Log in to turn off these ads.