Results 1 to 3 of 3

Thread: How can I have two scripts on one page?

  1. #1
    Join Date
    Mar 2007
    Location
    Poland
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How can I have two scripts on one page?

    1) Script Title:
    Image w/ description tooltip and Cross Browser marquee
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...agetooltip.htm
    http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
    3) Describe problem:
    I want to have this two scripts on my page, but they don't work together. Only one works. What can I do?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There is an onload conflict between the two scripts. There could be other problems but, this must be resolved first. There are several ways, here's one -

    Remove:

    Code:
    window.onload = initTip;
    and:

    Code:
    window.onload=populate
    Now, in your body tag have:

    Code:
    <body onload="initTip();populate();">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2007
    Location
    Poland
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank you

    Thank you very much, it works.

Bookmarks

Posting Permissions

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