473,387 Members | 1,578 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,387 software developers and data experts.

Change favicon icon depending on browser type

Does it possible change favicon icon depending on browser type:
display favicon.ico for Internet Explorer browsers, and favicon.gif
for the rest browsers? Problem is that ugly MSIE can display only .ICO
favicons, whereas other browsers support any favicon type - gif, png,
jpg. Since gif favicons has much better quality than ico file, I'm
wondering does it possible sort browsers with javascript and show
appropriate favicon type for specific browser?

Regards,
M.
Jun 27 '08 #1
4 3034
mistral wrote on 24 apr 2008 in comp.lang.javascript:
Does it possible change favicon icon depending on browser type:
display favicon.ico for Internet Explorer browsers, and favicon.gif
for the rest browsers?
I suppose you can do that serverside, not with a clientside script.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #2
On 25 Сав, 01:20, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
mistral wrote on 24 apr 2008 in comp.lang.javascript:
Does it possible change favicon icon depending on browser type:
display favicon.ico for Internet Explorer browsers, and favicon.gif
for the rest browsers?

I suppose you can do that serverside, not with a clientside script.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
---------

You mean change it with PHP?

thanks
Jun 27 '08 #3
mistral wrote on 25 apr 2008 in comp.lang.javascript:
On 25 Сав, 01:20, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
>mistral wrote on 24 apr 2008 in comp.lang.javascript:
Does it possible change favicon icon depending on browser type:
display favicon.ico for Internet Explorer browsers, and favicon.gif
for the rest browsers?

I suppose you can do that serverside, not with a clientside script.
[please do not quote signatures on usenet]
You mean change it with PHP?
No, not especially so.

Any serverside language,
so also serverside javascript [ = ASP-jscript].

You could return a stream depending on the reported user agent,
[not neccesarily the factual one].
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #4
Evertjan. wrote on 25 apr 2008 in comp.lang.javascript:
mistral wrote on 25 apr 2008 in comp.lang.javascript:
>On 25 Сав, 01:20, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
>>mistral wrote on 24 apr 2008 in comp.lang.javascript:

Does it possible change favicon icon depending on browser type:
display favicon.ico for Internet Explorer browsers, and favicon.gif
for the rest browsers?

I suppose you can do that serverside, not with a clientside script.

[please do not quote signatures on usenet]
>You mean change it with PHP?

No, not especially so.

Any serverside language,
so also serverside javascript [ = ASP-jscript].

You could return a stream depending on the reported user agent,
[not neccesarily the factual one].
.... or have serverisde change the meta tag.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #5

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

Similar topics

2
by: ATong | last post by:
A VC.net application, the 3 16777216-color icons, 16*16, 32*32 and 48*48, have been modified, but after rebuild the application, the icon does not change. Should we modify anything else to change...
1
by: Hai Ly Hoang | last post by:
Creating an Windows application with C# (a.exe). My program a.exe has default icon (in Windows Explorer). How to change default icon for my program ? (Certainly, not by creating an shortcuts to...
5
by: ACaunter | last post by:
Hi there, I was wondering how to put an Icon up in the top left corner of the browser window?? also, is there a way to know if the user closes the browser window with the X in the top right...
16
by: Phil Hey | last post by:
Hi, I can change the icon for a folder by right clicking on it > going to the customize tab > and selecting Choose Picture. Does anyone know if it is possible to do this programmatically...
1
by: Brett | last post by:
How can I change the icon of a form? This is the icon that appears in the upper left corner. Thanks, Brett
2
by: Rob Roberts | last post by:
In a VS2005 ASP.NET project, I'm trying to find a way to change which css file is linked in based on the browser type. I'd like to use one css file for IE browsers, and a different one for all...
10
by: musosdev | last post by:
I've got a function that needs to work slightly differently on the development server from the production server, but of course I don't want to be changing code just before compiling a release...
1
by: Hutch | last post by:
Is there a way to change the Icon of accessto a different picture? I want to do this in the program some how so when i rewrite the MDE file it will appear as a change on everyones desktop. If i just...
3
by: faraz | last post by:
I have set the exe icon from Project Properties->Application->ico. now i always have the same icon on the exe. how can i change the icon of exe programmatically?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.