SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Oct 1999
    Location
    New York, NY
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Reporting.net code vs. design issue

    Hi -

    I have a website header where a 468x60 banner fits snuggly into its space making it a nice a neat area. I recently tried adding code from some affiliates through reporting.net and a design issue arises. A sample code they provide is:
    Code:
    <IMG SRC="http://service.bfast.com/bfast/serve?
    bfmid=26298982&siteid=39960766&bfpage=468x60_business_or_p"
     BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >
    <A HREF="http://service.bfast.com/bfast/click?
    bfmid=26298982&siteid=39960766&bfpage=468x60_business_or_p" TARGET="_top">
    <IMG SRC="http://www.vistaprint.com/vp/images/affiliates/
    468x60_Business_or_pleasure.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT=""></A>
    When I uploaded that into my pages, I noticed that the nice and snug banner was no longer, uh, nice or snug! The image tag in the code alters the entire header by creating a significant space above the banner.

    What is that first image tag for anyway? For reporting to track my links? What if I just used the code from the <a href> to the </a>?? If there's no solution, am I just not able to use reporting.net on my site? (I have no design issues when I use commision junction but I wanted to try reporting.net too.)

    Thanks.

    Josh

  2. #2
    SitePoint Wizard Crowe's Avatar
    Join Date
    Nov 2001
    Location
    Huntsville
    Posts
    1,117
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The first image code does look like it's there to track. HTML rendering almost always uses some "space". Because the characters themselves take up space. You could always put that first image tag elsewhere on your page. Perhaps above the header, below the footer. It shouldn't hurt anything as long as it loads. I would put it above the header, right after the body tag if you have the room.

    Then just put the banner code wherever you wanted to put it and you should be in good shape.
    Chrispian H. Burks
    Nothing To Say

  3. #3
    SitePoint Guru
    Join Date
    Oct 1999
    Location
    New York, NY
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Crowe -

    Your solution to place the image tag elsewhere on my page would work, except I'm using a banner rotator script to load several different banners into the space... so that kinda leaves me with no real options?? That sucks! I like some of reporting.net's affiliates...

    I wish there was some other solution for this...

    Josh

  4. #4
    SitePoint Wizard Crowe's Avatar
    Join Date
    Nov 2001
    Location
    Huntsville
    Posts
    1,117
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Try changing the first image tag to this, let me know how it works out.

    Code:
    Original:
    <IMG SRC="http://service.bfast.com/bfast/serve?
    bfmid=26298982&siteid=39960766&bfpage=468x60_business_or_p"
     BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE >
    
    Modified:
    <IMG SRC="http://service.bfast.com/bfast/serve?
    bfmid=26298982&siteid=39960766&bfpage=468x60_business_or_p"
     BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE hspace="0" vspace="0">
    Also, make sure you collapse any white space on that line. Make it just one long line if you haven't already.
    Chrispian H. Burks
    Nothing To Say

  5. #5
    SitePoint Guru
    Join Date
    Oct 1999
    Location
    New York, NY
    Posts
    826
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Crowe -

    Part of your suggestion fixed the issue! Funny enough, it wasn't adding the hspace="0" vspace="0" part... it was simply "Make it just one long line if you haven't already."

    I just needed to pull the start of the <a href...> tag to the very end of that <img> tag and that solved the problem! In the code reporting.net supplied, it was put on the next line, which I guess made all the difference to me.

    There is still a minor break because of the image being 1x1, but a little tweaking in my design should have it fixed. No biggie, though!

    Thanks for the info.

    Josh


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
  •