Results 1 to 3 of 3

Thread: Step Carousel "Freezes" in IE7/8

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Step Carousel "Freezes" in IE7/8

    Step Carousel Viewer
    http://www.dynamicdrive.com/dynamici...epcarousel.htm

    I have recently "inherited" a webpage that includes the Step Carousel script. There are four tabs loaded, each with a corresponding button that causes the viewer to jump to it. Otherwise it autoscrolls. When loaded in FF or Chrome, there is no issue.

    However, when loaded in IE7 or IE8 (I have not tested 6) upon loading, it displays the first image and then immediately jumps to the last. Once it has done that, any of the buttons may be pressed to cause the viewer to slide to its corresponding tab, but after that the viewer freezes and will not respond further or autoscroll.

    It is implemented on the front page of this website:
    www.4xspower.com

    I am looking through the code right now, but any help would be appreciated as I have not used this script before.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You inherited a nightmare. To fix this one issue is rather simple though, add the highlighted line:

    Code:
    <script type="text/javascript" language="javascript">
    <!--//<![CDATA[
    			stepcarousel.setup({
    				galleryid: 'slider', //id of carousel DIV
    				beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
    				panelclass: 'panel', //class of panel DIVs each holding content
    				autostep: {enable:true, moveby:1, pause:5000},
    				panelbehavior: {speed:500, wraparound:false, persist:true},
    				defaultbuttons: {enable: false, moveby: 1, leftnav: ['', 450, 282], rightnav: ['', -35, 282]},
    				statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
    				onslide:function(){ select_icon(statusA); },
    				contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
    				})
    				function select_icon(q){
    					var $ = jQuery;					
    					for(i=1;i<5 ;i++)
    					{
    					  if(i==q)
    					  {
    					  	$("#service_" + i).removeClass("sliderItem");
    						$("#service_" + i).addClass("sliderItemOn");
    						if(i=="1"){
    							$("#service_" + i).addClass("sliderItemOnFirst");
    						}
    						
    					  }
    					  else
    					  {
    					  	if(i=="1"){
    							$("#service_" + i).removeClass("sliderItemOnFirst");
    						}
    					  	$("#service_" + i).removeClass("sliderItemOn");
    						$('#service_'+i).addClass("sliderItem");
    						
    					  }
    					}
    				}
    	//]]>-->
    
    	</script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    thornghost (04-07-2010)

  4. #3
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much! It works great.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •