|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi !
I'm looking for a way to define the web page icon other than the one provided by IE. I know there is a way i've seen it on different web pages (cnn is a good example) , but i don't know how they've done that. Thank StarLord |
|
#2
|
|||
|
|||
|
Put the tag below inside the <head>...</head>
<link rel="shortcut icon" href="http://www.yourdomain.com/favicon.ico"> Then create an icon with the size of 16x16 of your own and name it as " favicon.ico " and upload it to your server, and you all set to go... |
|
#3
|
|||
|
|||
|
Thank for your quick response wareseeker, i`ll give a try shortly!
StarLord |
|
#4
|
|||
|
|||
|
heres another way to do that, simply just save an image as a .ico file in your root directory and make it 16x16 and you are set
![]()
__________________
Apache Expert |
|
#5
|
|||
|
|||
|
Quote:
Does that mean? I don't have to write any code in my page in order to point to that icon file. Because I used this way <link rel="shortcut icon" href="http://www.yourdomain.com/favicon.ico"> to refer the favicon file. I would love to try a diffrent way if you show us detaily. |
|
#6
|
|||
|
|||
|
Quote:
yes thats correct, no code to write, just stick an .ico file in your root directory and that's it. make sure it's 16x16 and you don't need any details for that. ![]() |
|
#7
|
|||
|
|||
|
I do believe in order to do the "no code" version that:
1) The icon MUST be named favicon.ico and 2) You must put the icon in any directory for which a page exists and you want the icon to show up in the bookmark (or in mozilla/NS in the address bar) If you have lots of static HTML pages, the no-code version may be the best way to go. But if you use a dynamic templating scheme in ASP, PHP, or CF etc., the code way is the preferred method. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Web page icon |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|