728x90
[출처] http://stackoverflow.com/questions/13582710/sharepoint-redirect-site-logo-link-to-the-root-site-collection-home-page
SharePoint Redirect site logo link to the root site collection home page
//read old link id
var oldLogoId = $("#DeltaSiteLogo > a").attr('id');
//change the id
$("#" + oldLogoId).attr('id','CustomSiteLogo');
//create dummy hidden element
$("#DeltaSiteLogo > a").after("<a id='tmpDeltaSiteLogo' href='#' style='display:none'>Dummy</a>");
//set the dummy id with old id value
$("#tmpDeltaSiteLogo").attr("id",oldLogoId );
//alter the link to point to the webroot
$("#CustomSiteLogo").attr('href', window.location.protocol + "//" + window.location.host);
728x90
'SharePoint Designer' 카테고리의 다른 글
Locale IDs Assigned by Microsoft - 다국어처리 코드 (0) | 2014.03.10 |
---|---|
sharepoint 에 foorer 넣기 (0) | 2014.02.11 |
Display Users with Presence in a SharePoint Hosted App (0) | 2014.02.03 |
sharepoint 2013 foundation submenu (0) | 2013.12.09 |
Customizing Master Pages in Windows SharePoint Services (0) | 2013.12.06 |
댓글