Site Banner: wrap anchor around logo image w/ jQuery

<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js”></script>

<script>

$(document).ready(function(){

$(”#ct100_PlaceHolderGlobalNavigation_CustomSiteBanner_LogoCol img”).each(function(){

var a = $(”<a/>”).attr(”href”,”http://mydomain.com/index.html”);

$(this).wrap(a);

$(this).css(”border”,”none”);

});

})

</script>

Comments are closed.