Learn how to use jQuery at the Blog

Top Value Performer « visit

  • Added 11 months ago
  • 42 Lines of Code shown
  • 1 Links of Interest
http://topvalueperformer.com
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to Top Value Performer - http://topvalueperformer.com

	$(document).ready(function(){
	
	$('#hero').cycle({ 
    	fx:     'scrollHorz', 
    	speed:  'fast', 
    	timeout: 0,
		pager:  '#hero_nav',
		pagerAnchorBuilder: function(idx, slide) { 
    	// return selector string for existing anchor 
    	return '#hero_nav a:eq(' + idx + ') img';
    	} 
	});
	
	gotoPoll();
	if(si){clearInterval(si);}
	var si = setInterval('gotoPoll()',3000000);
	
	
	//$('.vote').attr('onclick',"function(){$('#hero').cycle(5);return false;}");
	
	/*$('.vote').click(function() { 
    $('#hero').cycle(5); 
    return false; 
	});
	*/
	
	$('.tryagain').click(function() { 
    $('#hero').cycle(5); 
    return false; 
	});
	
	$('.error').click(function() { 
    $('#hero').cycle(6); 
    return false; 
	});
	
	$('.confirm').click(function() { 
    $('#hero').cycle(7); 
    return false; 
	}); 
	
	});