PDA

View Full Version : Need HTML/javascript code



{I}{K}{E}
02-04-2005, 11:49 PM
Need a script so I can add a picture next to the URL. (see atach.)
Had a code for it long time ago but I forgot it.

tesco
02-05-2005, 12:31 AM
you mean to add it jsut in your browser...or to add it to a website?
to add it to your website just make an image file calle favicon.ico (has to be in icon format) and put it in the root directory of your site. :)

{I}{K}{E}
02-05-2005, 12:43 AM
to add it to your website just make an image file calle favicon.ico (has to be in icon format) and put it in the root directory of your site. :)

thats it?

Will try right now :P

edit: doesnt work.

I use the free webspace from my ISP. they must have blocked it because I keep seeing the provider logo :frusty:

Vargas
02-05-2005, 01:04 AM
try adding this to you page
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">

{I}{K}{E}
02-05-2005, 01:10 AM
try adding this to you page
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">

nope doesnt work :(

Vargas
02-05-2005, 01:21 AM
put a copy in a different location and use the following tag:

<LINK REL="SHORTCUT ICON" HREF="http://www.yourdomain.com/SomeOtherName.ico">
or maybe you need to clear you cache and/or reboot to see it.

sparsely
02-10-2005, 03:23 AM
favicons can be weird soemtimes, but yeah, make sure you clear your cache, and the image should be 16x16 pixels, named favicon.ico, and in the same directory as the html file with the <link>

the code should be
<link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon" />

Barbarossa
02-10-2005, 09:27 AM
Clearing your cache is what you need to do I think.. Also IE doesn't tend to handle them very well anyway, for them to work in IE, the site has to be in your favourites I think.. :frusty:

They're great in Firefox, Netscape and Opera... :01: