Click here to get back home

Using Icons As Images

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Using Icons As Images David Ross 06-30-2005
Posted by David Ross on June 30, 2005, 9:14 am
Please log in for more thread options


I am trying to use icons as the image files in the SRC attributes
of IMG elements. This seems to work with Mozilla but not with
other browsers.

The icons were created using an icon editor or extracted from
executable files that contained icons. They all have the extension
.ICO.

My Web server has an .htaccess file that contains
        AddType image/ico ICO

A sample page is at <URL:http://www.rossde.com/test/icons.html>.

Any suggestions? Are not icons valid image files?

On that test page, I also use one of the icons (the DR) as a
favicon, with the following in the HEAD section of the page:
<link rel="shortcut icon" href="../DR.ICO" type="image/x-icon">
<link rel="icon" href="../DR.ICO" type="image/x-icon">
With Mozilla, I see this in the address area of my browser. With
other browsers, this does not seem to work. Do not other browsers
display favicons in the address area?

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.

Posted by Philip Ronan on June 30, 2005, 5:30 pm
Please log in for more thread options


"David Ross" wrote:

> I am trying to use icons as the image files in the SRC attributes
> of IMG elements. This seems to work with Mozilla but not with
> other browsers.

That's because the other browsers don't support images in the ICO format.

Similarly, not all browsers support SVG images, or WBMP images. There are
literally hundreds of different image formats. The ones supported by most
browsers are GIF, JPEG and PNG. Use one of those instead. GIF is probably
the best choice in this case.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/



Similar ThreadsPosted
How can I replace a large image with other large images triggered from small image icons, mouse-overs or whatever??? July 26, 2004, 1:34 am
address bar icons August 5, 2004, 10:40 pm
IExplorer Image Icons off October 21, 2004, 3:06 pm
Website Icons (aka favicons) November 14, 2004, 5:58 pm
changing icons of sites on favourites menu October 21, 2004, 10:19 pm
images won't appear in IE January 3, 2005, 8:40 pm
why a different tag for SVG images? April 4, 2006, 12:18 am
two images i corners December 11, 2004, 4:04 pm
Background images January 25, 2005, 5:19 pm
Horizontal row of images... June 20, 2005, 10:04 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap