Click to See Complete Forum and Search --> : How to put icon by favorits


Johanvh
03-27-2003, 02:56 AM
Hello,

I have read that i have to put:

- an icon for example 'logo.ico' in the root and
- <link rel="shortcut icon" href="logo.ico"> in the head of the page

This is my script for the add to function:


<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function addbookmark()
{
bookmarkurl="http://www.abc.com"
bookmarktitle="abc"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
// End -->
</script>

The script works but there is no icon in the favorits.

Where do i have to put '<link rel="shortcut icon" href="logo.ico">' inside or outside the javascript?

What did I wrong or forgot something?

Thanks,
Johan.

gil davis
03-27-2003, 05:37 AM
Where do i have to put ... In the <HEAD> section, all by itself, and not inside the <SCRIPT> tags.

Johanvh
03-27-2003, 06:18 AM
I have placed '<link rel="shortcut icon" href="maes.ico">'
in the head after the javascript (see example) on my page.

The result is the same: add on favorites works but without icon.

Here is the code I use:

<!-- Begin
function addbookmark()
{
bookmarkurl="http://www.maeselectronics.be"
bookmarktitle="Maes Electronics"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
// End -->
</script>
<link rel="shortcut icon" href="maes.ico">

Has someone an answer please.

Thanks.