473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using Icons As Images

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/>.
Jul 24 '05 #1
1 1582
"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/
Jul 24 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: todorov-fkt | last post by:
Hi, I know that Windows comes with own icons and bitmaps for menus, toolbars, etc, which are compiled into ressource dlls. Is it possible to use these images into the own program and how do I do...
1
by: James Black | last post by:
I am dynamically generating a table in IE to display some information. I will probably change it to divs later, but I just want to get it working properly first. In my div I have the following...
4
by: Wannabe | last post by:
I am using ASP.Net 2.0 and have a gridview on my page. I have everything working except the delete command. The page reloads except the row I am trying to delete is still there. I believe it is...
0
by: Wannabe | last post by:
I am using ASP.Net 2.0 and have a gridview on my page. I have everything working except the delete command. The page reloads except the row I am trying to delete is still there. I believe it is...
2
by: bahnfire | last post by:
Hi, I am hoping that I finally have the right group :-) I am using Visual C++ Express 2008 and am trying to change the taskbar icon that I am using (notifyIcon1) as some state changes (button...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.