SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Mar 2009
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question logo of a website

    I am designing a website and so i wanted to know as to how can we change the image which is default a page at the url link?

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean favicon? The one that is next to the address bar of browser?
    Look here: http://en.wikipedia.org/wiki/Favicon

    I got best results with:
    <link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico">

  3. #3
    SitePoint Addict
    Join Date
    Mar 2009
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <link rel="icon" img src="..images/heart.gif" height="16" width="16">
    <title>xyz.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    i want to diplay the pic heart.gif
    which is the folder ../images/love.gif
    wat changes are to be made in this line
    HTML Code:
    <link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico">

  4. #4
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have to give the full url of the image in the href attribute

    ../images/heart.gif is not good enough (I'm not sure if '..' is allowed in urls, probably not)

  5. #5
    SitePoint Addict
    Join Date
    Mar 2009
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <link rel="icon" type="image/vnd.microsoft.icon" href="http://matri/images/heart.gif height="16" width="16"">
    this is not working

  6. #6
    SitePoint Enthusiast yangyang's Avatar
    Join Date
    Jun 2007
    Location
    kavoir.com
    Posts
    96
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I guess you meant the favicon? It can be specified in the head section of the HTML:

    Code:
    <link rel="shortcut icon" href="/favicon.ico" />
    You may also want to use this image conversion tool to generate your own favicon (.ico would be best, but .png or .gif would also do, though not in older browsers).
    I blog about making websites, technically.
    Online image converter - all formats that you can think of.

  7. #7
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <link href="http://www.yourserver.com/images/heart.gif" rel="icon" type="image/x-icon" /> <!-- change .gif to .ico -->
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •