www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > Graphics

    Graphics Discussion and technical support for creating and editing graphics for the web.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 02-03-2003, 04:54 AM
    guy1407 guy1407 is offline
    Registered User
     
    Join Date: Feb 2003
    Posts: 9
    Putting an icon in the favorites menu

    Hi All

    How do I put an icon near my link when the user adds the page to his/her
    favorites list (like www.msn.com do)

    TIA
    Guy
    Reply With Quote
      #2  
    Old 02-03-2003, 05:33 AM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Place this in your webpage head section


    <link rel="shortcut icon" href="youricon.ico">
    __________________
    // Stefan Huszics
    Reply With Quote
      #3  
    Old 02-03-2003, 06:01 AM
    guy1407 guy1407 is offline
    Registered User
     
    Join Date: Feb 2003
    Posts: 9
    Thumbs up What if I use CSS

    First thank you!

    I used "redside" style-sheet (visual interdev 6)
    Where should I put the line+what should I do:
    <link rel="shortcut icon" HREF="images/icon.ico">
    If I want all my current pages to get the setting

    TIA
    Guy
    Reply With Quote
      #4  
    Old 02-03-2003, 06:15 AM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    No, you cannot put HTML markup inside your CSS file. It must go in the HTML file.
    __________________
    // Stefan Huszics
    Reply With Quote
      #5  
    Old 02-03-2003, 09:43 AM
    guy1407 guy1407 is offline
    Registered User
     
    Join Date: Feb 2003
    Posts: 9
    Unhappy You are wrong...

    Hi again,
    You are wrong...
    Go to:
    http://forums.webdeveloper.com/
    or
    http://www.msn.com

    show me where is their "icon line"...

    TIA
    Guy
    Reply With Quote
      #6  
    Old 02-04-2003, 11:25 AM
    Robert Wellock's Avatar
    Robert Wellock Robert Wellock is offline
    XHTML Master
     
    Join Date: Nov 2002
    Location: XYZZY - UK
    Posts: 1,805
    As Stefan stated; you cannot place HTML markup within a CSS file, a far better task would have been to look where Micro$oft have placed their DTD reference on their main page, whoops they seem to have forgot that minor detail.

    If you want to see where I have placed my address bar icon on my beta site: http://www.xhtmlcoder.com/worthvalley/ then you are welcome, but remember Micro$oft IE probably won't display the file you'd have to use a more "web standards" compliant browser like Mozilla or Opera 7.0.

    I also forgot to mention you could use the server to push the icon rather than define it within the HTML.
    __________________

    };-) http://www.xhtmlcoder.com/

    Last edited by Robert Wellock; 02-04-2003 at 12:43 PM.
    Reply With Quote
      #7  
    Old 02-05-2003, 06:04 AM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Re: You are wrong...

    Quote:
    Originally posted by guy1407
    show me where is their "icon line"...
    Excuse me providing the solution that will work in all favicon capable browsers, not just MS IE (which automatically spams requests to every server it visits about a favicon, even if noone exsists).

    Quote:
    You are wrong...
    Perhaps you should bother to at least TRY THE CODE, before you state I'm wrong?
    __________________
    // Stefan Huszics
    Reply With Quote
      #8  
    Old 02-05-2003, 07:00 AM
    guy1407 guy1407 is offline
    Registered User
     
    Join Date: Feb 2003
    Posts: 9
    Cool Hmmm

    When I said you are wrong - I was talking about this line:

    "It must go in the HTML file."

    Right click www.msn.com and select view source - you wont find it there...

    Cheers
    Guy
    Reply With Quote
      #9  
    Old 02-05-2003, 07:50 AM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Re: Hmmm

    Quote:
    Originally posted by guy1407
    When I said you are wrong - I was talking about this line:

    "It must go in the HTML file."
    That was in reply to your "can I place it in the CSS file".

    Never the less I am still right, it MUST go into the HTML file. The way you get the favicon in some browsers anyway (even if it's not in the HTML) is as I have already stated, they randomly spam the visted webserver for an iconfile, even if one is not specified ANYWHERE in the webpage files.
    __________________
    // Stefan Huszics
    Reply With Quote
      #10  
    Old 02-05-2003, 11:15 AM
    Robert Wellock's Avatar
    Robert Wellock Robert Wellock is offline
    XHTML Master
     
    Join Date: Nov 2002
    Location: XYZZY - UK
    Posts: 1,805
    Theoretically if you place a file expressively called: "favicon.ico" of the type "image/x-icon" within your root directory of your site Micro$oft IE 6.0 will use that if you don't use the (X)HTML link method. It's just one of the many design faults of Micro$oft IE.
    __________________

    };-) http://www.xhtmlcoder.com/
    Reply With Quote
      #11  
    Old 02-06-2003, 01:48 AM
    guy1407 guy1407 is offline
    Registered User
     
    Join Date: Feb 2003
    Posts: 9
    Thank you!!!

    Many thanks mates
    All methods are working fine!
    Guy
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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 Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:19 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.