Skip navigation
Currently Being Moderated

Javascript works on one site, but not any other

Jul 22, 2012 2:13 PM

I have a javascript to copyright my websites with the current year.

 

It works fine on these:

 

http://www.bringwowiehome.com/

http://www.homephysiciancare.com/index.html

http://www.whitakercdlsafety.com/

 

 

but not on these:

 

http://www.garegion2ems.org/

http://www.amerimedems.com/

http://www.amerimedmedical.net/

 

And for the life of me, I cant figure out why

 

Please help???

 
Replies
  • Currently Being Moderated
    Jul 22, 2012 2:56 PM   in reply to BcSurvivor08

    In those places where it's not working, change this -

     

    <p>Karen Moody <span id="copyright">...</span>&copy;  All rights reserved</p>

     

    to this -

     

    <p>Karen Moody <span id="copyright">...</span>&copy;  All rights reserved</p>

    <script type="text/javascript">copyDate();</script>

     

    See if that helps.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 22, 2012 4:56 PM   in reply to BcSurvivor08

    On those pages where it wasn't working, it appeared that the javascripts was not being initialized by the window.load command.  I don't know why.  Putting an explicit call to the copyDate function below its use on the page did the trick.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points