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 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    59
    Thanks
    9
    Thanked 1 Time in 1 Post

    Javascript Ad Removal

    Hello I have a freewebsite, and of course on it are ads. On the ads however there is a link that when clicked will remove the ad. the like path is 'javascript:void%20(sideFrameOff())'

    My question is on my navigation is there a way I can make it perform that action as well.

    For instance say a user wants to go to the page 'contact.htm' the link is <a href="contact.htm">Contact Us</a> And when they get to that page the ad (side frame) will be on. So what I'm asking is, is there a way I can make that same link 'Contact Us' also perform the javascript function to turn the ad off?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Read the forum rules: http://www.codingforums.com/rules.htm

    More specifically rule 1.4.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Oct 2007
    Posts
    59
    Thanks
    9
    Thanked 1 Time in 1 Post
    But your allowed to disable the side ad. Why else would they have a button that says "Close Side Ad"

  • #4
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    Because once you've closed it, you've seen it and has served it's purpose.
    Helping to build a bigger box. - Adam Matthews


  •  

    Posting Permissions

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