Irrelevant ads showing up

Discussion in 'Chitika' started by GPS Mapper, Apr 22, 2006.

  1. #1
    Hi all-

    Occassionally I get irrelevant ads (iPod's, etc.) showing up. It happened again today at the end of this post. Is anybody else having this problem?
     
    GPS Mapper, Apr 22, 2006 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Rich, there is something wrong with the formatting of your javascript code in that location. For example on that particular unit your javascript code shows this:

    ch_width ="" 468;

    Where it should say:

    ch_width ="468";

    Your quotes are not in the correct place. You have two quotes, then a space, then a value, semicolon.... where it should be quote, value, quote, semilcolon.

    In other places in the javascript code you have:

    ch_color_title ="" "#336633";

    Where it should be:

    ch_color_title ="#336633";
     
    tflight, Apr 22, 2006 IP
  3. GPS Mapper

    GPS Mapper Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks. I got sidebanded by someone with a similar comment, and I thought I had extra quotes in there, but now I see that they are just misplaced. I think Typepad is introducing the error. They seem to have some sort of auto-correct mechanism in their post editor. I haven't seen this kind of problem before. Usually the problem is that two Chitika or Google ads show up where I placed one! Maybe I should bite the bullet and move GPSTracklog to WP.
     
    GPS Mapper, Apr 22, 2006 IP
  4. GPS Mapper

    GPS Mapper Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think the syntax is clean now, but I'm still getting an irrelevant ad.
     
    GPS Mapper, Apr 22, 2006 IP
  5. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It looks better, but you've still got a couple of misplaced quotes.

    ch_sid =" "Front page center 180";
    should probably be:
    ch_sid ="Front page center 180";

    var ch_selected="Math.floor((Math.random()*ch_queries.length));"
    should be:
    var ch_selected=Math.floor((Math.random()*ch_queries.length));

    ch_query ="" ch_queries[ch_selected];
    should be:
    ch_query = ch_queries[ch_selected];
     
    tflight, Apr 22, 2006 IP
  6. GPS Mapper

    GPS Mapper Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That did it! That is so bizarre though, such random stuff entering the code, when all I do is copy and paste. I appreciate the help.
     
    GPS Mapper, Apr 22, 2006 IP