Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jan 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Advertisment delete

    I am trying to delete or hide better to say advertisment on Forumotion forum.
    http://testforum-lolz.serbianforum.info/

    When you use firebug to inspect you can find this:
    Code:
    html body .w74704f, html body .w74704f iframe, html body iframe[name="google_ads_frame"], html body .w74704f iframe[name="google_ads_frame"], html body #wrap #page-body div.w74704f, html body #page-body .w74704f {
        bottom: inherit !important;
        display: block !important;
        float: none !important;
        left: inherit !important;
        margin: 0 auto !important;
        opacity: 1 !important;
        padding: inherit !important;
        position: inherit !important;
        right: inherit !important;
        text-align: center !important;
        top: inherit !important;
        visibility: visible !important;
        z-index: 9999 !important;
    }
    html body .w74704f, html body .w74704f iframe[name="google_ads_frame"] {
        height: 90px !important;
        min-height: 90px !important;
        width: 728px !important;
    }
    html body .w74704f iframe {
        border: 0 none !important;
    }
    html body iframe[name="google_ads_frame"] {
        height: inherit !important;
        min-height: inherit !important;
        width: 100% !important;
    }
    When i type display:none; in every single code so I can hide it it doesent work. I dont know can there be any javascript for it.
    Maybe this can help:

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Is that consistent with the TOS?

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New Coder
    Join Date
    Jan 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Tos??????

  • #4
    New Coder
    Join Date
    Dec 2011
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts
    could you set the iframes width to 0px?
    Code:
    <script>
    $(document).ready(function() {
    $("iframe").css("width", "0px");
    
    });
    
    </script>

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Quote Originally Posted by Mr.Joker View Post
    Tos??????
    Tems Of Service. Are you allowed to interfere with or suppress the display
    of advertisements under the terms of your contract?

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #6
    New Coder
    Join Date
    Jan 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you also add height to 0?

  • #7
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    This definitely sounds like something that's against the TOS of the service in question. Due to this I'm closing this thread. Please do not repost the question.
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •