'); var imgtitle = ' Upload Logo'; jQuery('.imgCompanyLogo').wrap(''). /*after('
  ' + imgtitle + '
'); Modified by Jam*/ after('
  ' + imgtitle + '
'); /*jQuery('.wrapper0CLogo').hover( function () { jQuery(this).find('.imagecaptionCLogo').animate({ top: "70%" }, 300); jQuery('.imgWrapperhoverCLogo').hide(); }, function () { jQuery(this).find('.imagecaptionCLogo').animate({ top: "100%" }, 100); jQuery('.imgWrapperhoverCLogo').show(); } );*/ jQuery('.imagecaptionCLogo, .imgDistributorCLogo').on("click", function () { var ar = GetAspectRation(); window.location.href = '' + '?h=' + jQuery('[id$="imgCompanyLogo"]').height() + '&w=' + jQuery('[id$="imgCompanyLogo"]').width() + '&ar=' + ar; //var res = xc(); return false; }); jQuery('.imgCompanyLogo').on("click", function () { window.location.href = '/Home/'; return false; }); } else { jQuery('.imgCompanyLogo').on("click", function () { window.location.href = '/Home/'; return false; }); } } function GetAspectRation() { var a = parseFloat(jQuery('[id$="imgCompanyLogo"]').width()); var b = parseFloat(jQuery('[id$="imgCompanyLogo"]').height()); if (isNaN(a) || isNaN(b)) { alert('Enter all fields correctly'); return 0; } var res = (a / b); for (var i = 3; i
 
 

Recommended links