$(function(){$("#rotating.gradient").each(function(intIndex){var jImg=$(this);var jParent=null;var jDiv=null;var intStep=0;jParent=jImg.parent();jParent.css("position","relative").width(jImg.width()).height(jImg.height());for(intStep=0;intStep<=150;intStep++){jDiv=$("<div></div>");jDiv.css({backgroundColor:"#000",opacity:(intStep*0.00666666666667),bottom:((150-(intStep*1))+"px"),left:"0px",position:"absolute"}).width(jImg.width()).height(1);jParent.append(jDiv)}})})