Changing the homepage link

Some of you have figured out that you can change the smugmug logo in the top left to something that suits your site.

But did you know that with some javascript you can also change what the image is linked to:


onload = changeHomelink;
function changeHomelink () {
     document.getElementById('homelink').href = 'http://www.dgrin.com';
}

One Response to “Changing the homepage link”

  1. bigwebguy Says:

    haha, am i the posterchild for logo defamation now? I was hoping that i wouldn’t ruffle too many feathers by changing the logo….and i wasn’t really sure that i was gonna keep it up.

    guess i kinda have to now ;-)

    thx for the tip about changing the link…hadn’t crossed my mind to even change it.

Leave a Reply