not displaying favicon on addressbar

We are trying these code to set the icon on addressbar (just like this site's address bar with 'sun' logo)

<head>

<link rel="shortcut icon" href="http://localhost:7001/public_html/favicon.ico" />

<link rel="shortcut icon" type="image/x-icon" href="http://localhost:7001/public_html/favicon.ico" />

</head>

but it is not working ..plz help us...TIA

[536 byte] By [david_davida] at [2007-11-27 2:41:50]
# 1

You're hardcoding the hostname to "localhost", so the useragent of the client assume that the icon is located at the client PC, not at the server. Because there "localhost" will resolve to 127.0.0.1, which is the client PC ;)

Use a real hostname or use relative paths. For example "/public_html/favicon.ico".

BalusCa at 2007-7-12 3:06:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
It worked... THanks for your suggestion..
david_davida at 2007-7-12 3:06:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...