|
With the number of websites on the net growing by leaps, it is difficult for a visitor to remember your website URL. This is where bookmarking comes in. Most internet browsers have ways of adding bookmarks or favourite pages, so that the user can go directly to the website without needing to remember or type the URL.
Given below is a script for adding a bookmarking link to your webpage, so that a visitor can add your page to his favourites list.
<script language='JavaScript'>self.focus();</script>
<table border='0' cellspacing='4' cellpadding='2' style='border:1px
solid #CCCCCC' align='center'>
<tr><td colspan="3"><script language="javascript">
if (navigator.appName == "Microsoft Internet Explorer"
&& navigator.appVersion >= "4.0") {
document.write("<u><center><span style='color:BLUE;cursor:hand;'
onClick='window.external.AddFavorite(location.href,document.title);'>Add
this page to your favorites</span></center></u>")}
else
{document.write("<center><font size=2 color=BLUE>Hit
CTRL-D to bookmark this page</font></center>")}
</script>
This is how it looks:
FAVICON.ICO
What are favicons, why should you use them and how to create one.
What Are Favicons?
If you study your server logs or stats, you will find a number of not found errors for favicon.ico . When a visitor bookmarks your webpage, IE5 looks for a custom icon called favicon.ico, and if not found, uses the default IE icon for bookmarking your URL.
Why Use Favicon.ico
If you bookmarked this page, you'll see the difference between using a custom favicon.ico and the default IE icon. Make a good favicon.ico and you'll be amazed at the number of repeat visitors you get. It's like a brand, which forces your website in the consciousness of the web surfer. It makes your bookmark stand out from the rest.
How To Create a Favicon
The actual size of a favicon file is 16 x 16 pixels. Let's assume that you have a custom logo which you use on your website. Open this logo in your photoediting tool and reduce the size to 16 x 16. Note that reducing it such a small size can drastically reduce the quality of your favicon. I suggest a bit of experimentation and if necessary, build one from scratch. Once you have it ready as a jpeg file, you have to convert it into a .ico file using an icon editor such as IconForge. Set the size to 16 x 16 and colors to 256 in Iconforge. Name the file as favicon.ico
Now comes the question of using the favicon.ico file. All you
have to do is upload it to your web root, like so - http://yourdomain.com/favicon.ico . In case of any problems accessing this file from other pages,
such as secure ( https ) pages, use this : <LINK REL="SHORTCUT ICON" HREF="https://www.mydomain.com/favicon.ico">
Change mydomain.com to your own URL.
For full information regarding favicons, click here: FAVICON
|