Having troubles with the intergration of Google Adsense for Search :(

Discussion in 'JavaScript' started by misterdh, Dec 8, 2010.

  1. #1
    Hi there :)

    I am having trouble with Google Adsense for Search..

    http://www.gedoo.com/search/s.php?c...g7gab-62n3&cof=FORID:9&ie=UTF-8&q=php&sa=Søk

    The problem is that the Google javascript is making a HUGE gap at the bottom of the search results... Making it look ugly and unprofessional :(

    Anybody faced the same problem and mabye came up with a solution?

    Here is the code:

    <div id="cse-search-results"></div>
    <script type='text/javascript'>
      var googleSearchIframeName = 'cse-search-results';
      var googleSearchFormName = 'cse-search-box';
      var googleSearchFrameWidth = 795;
      var googleSearchFrameHeight = 80;
      var googleSearchDomain = 'www.google.no';
      var googleSearchPath = '/cse';
    </script>
    <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
    PHP:
    Thanks :)
     
    misterdh, Dec 8, 2010 IP
  2. imocoder

    imocoder Member

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #2
    You've there a CSS class: bottom.
    That height is 250px, so adjust that to a lower value and the gap should disappear.
     
    imocoder, Dec 9, 2010 IP
  3. misterdh

    misterdh Peon

    Messages:
    90
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Nope its not that .. That is jsut something I added as a footer to mask the big ugly gap..

    margin-top: -250px;
    height: 250px;

    Anyways, the bottom class is gone now, but still the ugly gap... It has somehting to do with Googles code.. It is hardcoding a 1650 height or so iframe :/ Is there anything to do with that?
     
    misterdh, Dec 9, 2010 IP