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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adsense code stops other scripts from running

    Whenever I try to add a script like a DHTML dropdown box, or any other script like this, they will not work unless I remove all adsense code from the page. How can I get around this?

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,634
    Thanks
    0
    Thanked 649 Times in 639 Posts
    As there is nothing in the adsense code that would normally cause that to happen it must be something in the way you are adding the scripts to your page.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by felgall View Post
    As there is nothing in the adsense code that would normally cause that to happen it must be something in the way you are adding the scripts to your page.
    That's what I thought but I tried adding each of three scripts below to various pages and they would not execute.

    http://www.dynamicdrive.com/dynamicindex11/dhtmlad.htm
    http://www.dynamicdrive.com/dynamici...amazondrop.htm
    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    By process of elimination I found that the only thing stopping them was the adsense code. Remove adsense and they execute perfectly.


  •  

    Posting Permissions

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