THAT Agency Design Studio Blog

After thinking about doing something with favicons and links, I came up with this very simple jQuery Plugin that would allow all the internal links in your website to actually have your own favicon implemented on the left side of the link.

First of course, you will need jQuery, which you can always download on the jQuery website.

Then you will need the internalFavLink plugin.

Here are some screen shots:

DOM

Add to your DOM Call

Add to your DOM Call

RESULTS

Shown Results

Shown Results

So some things I thought about before adding this to the blog.

1. What if I don’t have a favicon? Well, then either create one from an image and use this favicon creator tool from Dynamic drive, add it to your site and you will be able to use this plugin.

2. What if my favicon is a .png and not an .ico file as in the plugin? This is simple as well, just find the code in the javascript file called favicon.ico and change it to yours.

3. What if I want the favicon to be after the link? This is also simple; in the plugin javascript, just change where it says “prepend” to “append”.

The plugin is very simple. So if anyone has any ideas on how to improve please let me know.

You can also see the Internal Favicon Link jQuery Plugin in action!

Share this article

6 Responses to "Internal Links with Favicon using jQuery"

  1. This is nice, but it would be much more practical if it could show the favicons of external sites.

  2. Yes it would. I actually had that originally. Let me work on that and I will post it up on a blog. I just wanted it to be a little different and actually try to find some branding practice that could be associated with internal links.

  3. Great, I’ll be looking back here to see what you come up with. Good luck!

  4. @Snookerman I actually just read that post this morning. sorry for the delay. Glad you found what you were looking for though.

  5. [...] any more? let us know. Related posts:Internal Links with Favicon using jQueryRefreshing an element at a set time interval using jQuery and a sprinkle of AjaxA useful list [...]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Copyright ©2006-2010 THAT Agency, LLC, a web design firm and web develelopment company. All Rights Reserved.
Partner website: THAT SEO Agency