faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 38 people (53%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I change the icon in the titlebar

May 26th, 2003 10:31
Rustam Babadjanov, Jean-Bernard Valentaten, John Marc, Dhruba Chakrabarty, Rustam Babadjanov


> This is not a javascript question!
Correct *g*
> Let us assume you mean in Internet Explorer.  This requires editing 
> the registry.
Incorrect. Of course you can do that, but I would think the question 
meant was how the icon in the title bar of IE can be changed for a 
webpage. The answer is that you have to put a gif in the root of your 
webpage and as far as I remember have it in the meta-tags of your first 
page.
> Here are the entries pertinant to the icons.  The small is a 22X22 
> bitmap, the large a 38X38
> The animated icons are actually very tall bitmaps with the first 
> frame on top and the last on the bottom.  So, a small 10 frame 
> animated icon would be sized 22 X 220 pixels, consisting of 10 22X22 
> frames stacked on top of each other in one file.
>
> REGEDIT4
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main]
> "BigBitmap"="C:\\PROGRA~1\\INTERN~1\\Signup\\38x38_static.bmp"
> "SmallBitmap"="C:\\PROGRA~1\\INTERN~1\\Signup\\22x22_static.bmp"
>
> [HKEY_USERS\jmv\Software\Microsoft\Internet Explorer\Toolbar]
> "BigBitmap"="C:\\PROGRA~1\\INTERN~1\\Signup\\38x38_static.bmp"
> "SmallBitmap"="C:\\PROGRA~1\\INTERN~1\\Signup\\22x22_static.bmp"
> "BrandBitmap"="C:\\PROGRA~1\\INTERN~1\\Signup\\38_ani.bmp"
> "SmBrandBitmap"="C:\\PROGRA~1\\INTERN~1\\Signup\\22_ani.bmp"
You can do this only in HTML Application (HTA) trusted script using 
HTA:APPLICATION tag
See at 
http://msdn.microsoft.com/workshop/author/hta/reference/objects/hta.asp