Learn how to use jQuery at the Blog

Creative Happy « visit

  • Added 9 months ago
  • 32 Lines of Code shown
  • 1 Links of Interest
http://creativehappy.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 Creative Happy - http://creativehappy.com

$(document).ready(function(){	
	$(".img-container").each(function(i,el) {
 
    		var workImgs;
    		var prev;
    		var next;
 
    		el.id = el.className + i;
 
    		var workImgs = $("#" + el.id + " .work-imgs");
    		var prev = $("#" + el.id + " .slide-left");
    		var next = $("#" + el.id + " .slide-right");
 
    		workImgs.attr( { id: workImgs.attr("class") + i } )
    		next.attr( { id: next.attr("class") + i } )
    		prev.attr( { id: prev.attr("class") + i } )
 
    		$(workImgs).easySlider({prevId: prev.attr("id"),nextId: next.attr("id"),controlsShow: false,continuous: true});
    	});
	
	  $("#logo").mouseover(function ()
	  {
		$("#logo img").remove();
		$(this).attr("id", "logo_wink");
	  });
	
	  $("#logo").mouseout(function ()
	  {
		$(this).attr("id", "logo");
	  });

});