How do I use more than one javascript in my blog?

January 30th, 2010

I can’t get all of my javascript codes to work at the same time. When I added my first java code it worked fine but when I added another code, the first code stopped working and the only the second code worked. Is there a way to get them all to work?

If you name 2 functions the same, only 1 will work. That could be your problem. Just rename the second one. And, if you want one action to run 2 functions, just combine the code for both functions into one.

2 Responses

  1. Colanth Says:

    If you name 2 functions the same, only 1 will work. That could be your problem. Just rename the second one. And, if you want one action to run 2 functions, just combine the code for both functions into one.
    References :

  2. Anthony Says:

    the two javascript codes are conflicting one another. you need to merge they functionality or check what’s causing the conflict.
    References :

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Posted by admin and filed under how to blog | 2 Comments »

|