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 10-02-2012, 08:57 PM   PM User | #1
jestermeister
New to the CF scene

 
Join Date: Oct 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
jestermeister is an unknown quantity at this point
Simple auto slideshow flips out for 10 seconds

Hi all, I'm an aspiring pre-novice in CSS and JS, so I apologize in advance. This might be a simple issue or complex, I haven't a clue.

go to www.michaelsiemsen.com/new in Firefox, Safari, or IE9 and the big banner image flips out for 10 seconds before commencing as it should. The first image is supposed to be handprint, then book, then giant author mugshot. The creators of this site have no clue why it won't work, nor do they care as this banner photo is supposed to be static and I have apparently "ruined" it by attempting to animate it. Ah well...

Here is the code that makes the images cycle:

HTML:
Code:
 <div id="slideshow">
                    <div>
                 <img src="images/img1.jpg">
                	</div>
                    <div>
                 <img src="images/img2.jpg">
                	</div>
                    <div>
                 <img src="images/img3.jpg">
                	</div>
			</div>

CSS:
Code:
 #slideshow {
	margin: 1px 0 6px auto;
	position: relative;
	width: 1172px;
	height: 524px;
	padding: 0;
}

#slideshow > div {
	position: absolute;
	top: 1px;
	left: 1px;
	right: 1px;
	bottom: 1px
}
JS:
Code:
$("#slideshow > div:gt(0)").hide();

setInterval(function() { 
  $('#slideshow > div:first')
    .fadeOut(1000)
    .next()
    .fadeIn(1000)
    .end()
    .appendTo('#slideshow');
},  4000);
Thanks in advance to anyone that can help! And again, sorry if I am dumb!
jestermeister is offline   Reply With Quote
Old 10-04-2012, 05:14 PM   PM User | #2
jestermeister
New to the CF scene

 
Join Date: Oct 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
jestermeister is an unknown quantity at this point
Not so simple I guess?

No takers? Did I leave out important information? Do I need to pay someone to fix this? If so, who?
jestermeister is offline   Reply With Quote
Old 10-05-2012, 11:58 AM   PM User | #3
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 530 Times in 524 Posts
devnull69 will become famous soon enough
The URL has a 404
devnull69 is offline   Reply With Quote
Users who have thanked devnull69 for this post:
jestermeister (10-06-2012)
Old 10-06-2012, 02:06 AM   PM User | #4
jestermeister
New to the CF scene

 
Join Date: Oct 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
jestermeister is an unknown quantity at this point
Sorry, It didn't seem like anyone was seeing my post so I went elsewhere and it's all fixed now. Thanks for checking it, though!
jestermeister is offline   Reply With Quote
Old 10-06-2012, 03:00 AM   PM User | #5
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 453 Times in 451 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
would you mind posting the solution? I have seen questions about the same problem with the slideshow script a couple of times, but I have never seen anybody with a way to fix it.
xelawho is offline   Reply With Quote
Users who have thanked xelawho for this post:
jestermeister (10-08-2012)
Old 10-08-2012, 11:44 PM   PM User | #6
jestermeister
New to the CF scene

 
Join Date: Oct 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
jestermeister is an unknown quantity at this point
Sure, sorry... in the js file, the script must be bracketed by the following code:

Code:
$(document).ready(function(){

$(javascript code here);

});
Hope that helps!
jestermeister is offline   Reply With Quote
Reply

Bookmarks

Tags
javascript slideshow

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 11:14 AM.


Advertisement
Log in to turn off these ads.