/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#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>
Comments
