View Single Post
Old 01-16-2013, 01:24 AM   PM User | #1
BlackReef
Regular Coder

 
Join Date: Apr 2010
Posts: 193
Thanks: 100
Thanked 1 Time in 1 Post
BlackReef is an unknown quantity at this point
Simple Slideshow keeps flickering between slides..?

***Issue has been resolved****


You can view the slideshow here:

http://tinyurl.com/cg7mrm9

It appears fine at first, but after awhile - the slides start 'flickering' back and forth.

Here is the code:

Code:
<style>
.fadein { position:relative; width:990px; height:335px; }
.fadein img { position:absolute; left:0; top:0; }

</style>

<script>
$(function(){
    $('.fadein img:gt(0)').hide();
    setInterval(function(){
      $('.fadein :first-child').fadeOut()
         .next('img').fadeIn()
         .end().appendTo('.fadein');}, 
      4500);
});
</script>


<div id="content" style="background:#540000;">
	<div id="homeFlash" style="background:#540000;">

<div class="fadein">

(image paths - removed)

</div>

Last edited by BlackReef; 01-17-2013 at 11:49 PM..
BlackReef is offline   Reply With Quote