Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Change favicon icon depending on browser type

Reply
Thread Tools

Change favicon icon depending on browser type

 
 
mistral
Guest
Posts: n/a
 
      04-24-2008
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.
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      04-24-2008
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)
 
Reply With Quote
 
 
 
 
mistral
Guest
Posts: n/a
 
      04-24-2008
On 25 Сав, 01:20, "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
> 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
 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      04-24-2008
mistral wrote on 25 apr 2008 in comp.lang.javascript:

> On 25 Сав, 01:20, "Evertjan." <exjxw.hannivo...@interxnl.net> wrote:
>> 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)
 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      04-24-2008
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.net> wrote:
>>> 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)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Favicon is not showing in the browser Harry Bellafonte HTML 2 12-14-2007 11:17 AM
Let browser icon flash in taskbar when browser not focused ... meagain Javascript 1 03-11-2007 07:46 PM
Can I change my code depending on the build type? =?Utf-8?B?bXVzb3NkZXY=?= ASP .Net 10 05-12-2006 10:42 AM
Favicon Icon Drawing Program humbads HTML 5 05-03-2005 01:38 PM
refreshing a sibling (?) frame works depending on the browser jazzdman@gmail.com Javascript 0 04-30-2005 04:30 AM



Advertisments