Embedding tracker codes to CSS

Discussion in 'CSS' started by leet, Sep 12, 2006.

  1. #1
    Does anyone know if it's possible ? If it's possible, how to do ? I wanna embed my extreme tracking codes to page footer from style.css. I put my tracker codes in a file named extreme.html. What to do next ? Help me please.
     
    leet, Sep 12, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why would you want to do this? I'm sure you can't use css to pull a html file into your page.

    Can't you use php?
     
    mad4, Sep 12, 2006 IP
  3. leet

    leet Notable Member

    Messages:
    3,423
    Likes Received:
    369
    Best Answers:
    0
    Trophy Points:
    250
    #3
    All pages are in HTML format. I wanna put it in CSS because I don't wanna deal with 50 pages and add the tracker code manually one by one to them :/
     
    leet, Sep 12, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Use a server side include and just add this to all 50 pages.
     
    mad4, Sep 12, 2006 IP
  5. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #5
    html is static, you can;t do it with html alone.
    why do you need a tracker in css?
     
    bobby9101, Sep 12, 2006 IP
  6. leet

    leet Notable Member

    Messages:
    3,423
    Likes Received:
    369
    Best Answers:
    0
    Trophy Points:
    250
    #6
    Like I said, I don't wanna edit every page one by one.
     
    leet, Sep 12, 2006 IP
  7. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #7
    oh i htink i understand... you want one css file for all of your pages?
    easy... use a css include. no extreme tracker (whatever that is) needed.
    in your <head> seaction of all your pages, put <link rel="stylesheet" type="text/css"
    href="style.css" />

    then create a file named style.css, and put your css in there. put it in your folder where all your html docs are.
    make sure you dont include html or php in the css.
    don't use <style type="text/css"> or </style> inside the file
     
    bobby9101, Sep 12, 2006 IP
  8. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Extreme tracker is what he wants to include to each page.
     
    mad4, Sep 12, 2006 IP
  9. leet

    leet Notable Member

    Messages:
    3,423
    Likes Received:
    369
    Best Answers:
    0
    Trophy Points:
    250
    #9
    I already have a CSS file. Extreme tracker is a hit counter.
     
    leet, Sep 12, 2006 IP
  10. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You could use the CSS content style to insert content into every page. Of course Internet Explorer doesn't understand this style. So you'd get no credit for hits coming from Internet Explorer. That might make this particular style unfeasible :)

    The only way to do this that I can see is to setup each page to accept an include file, and then dump things like extreme tracker into the included file.
     
    the_pm, Sep 12, 2006 IP
  11. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #11
    you will have to use php or JS to include the tracker. CSS is for styling not server side includes
     
    bobby9101, Sep 12, 2006 IP
  12. leet

    leet Notable Member

    Messages:
    3,423
    Likes Received:
    369
    Best Answers:
    0
    Trophy Points:
    250
    #12
    Thanks for those who spent time to help me ;) I will include a footer.php to every page.
     
    leet, Sep 12, 2006 IP
  13. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #13
    If you're going to do the work, consider moving all common elements out of your pages and into includes. With a little finesse, you can set up your content area so making sitewide changes anytime to any component is a breeze :)
     
    the_pm, Sep 12, 2006 IP
  14. leet

    leet Notable Member

    Messages:
    3,423
    Likes Received:
    369
    Best Answers:
    0
    Trophy Points:
    250
    #14
    Yea I will do it so :) Because I'm sure I will need to change some other things in the future also.
     
    leet, Sep 12, 2006 IP