Return to Snippet

Revision: 51551
at September 28, 2011 03:20 by kbrown


Initial Code
$('#projectPhotos').cycle({ 
    fx:     'fade', 
    speed:  200, 
		sync:   0,
    timeout: 0
});

function pOne() {
	$('#projectPhotos').cycle(0);
	$("#projectInfo").html("<p>copy here</p>");
	clearLinks();
	$('#pLink1').addClass("active");
}

function pTwo() {
	$('#projectPhotos').cycle(1);
	$("#projectInfo").html("<p>copy here</p>");
	clearLinks();
	$('#pLink2').addClass("active");
}


function clearLinks() {
	$('#pLink1,#pLink2').removeClass("active");
}

$(document).ready(function () {
  $('#pLink1').addClass('active');
});




<li id="pLink1"><a href="javascript:pOne();">link name</a></li>

Initial URL

                                

Initial Description

                                

Initial Title
cycle/.html ~ replace photo/info

Initial Tags

                                

Initial Language
JavaScript