Results 1 to 3 of 3

Thread: Cross Browser marquee - conflict CMotion Gallery

  1. #1
    Join Date
    Dec 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Cross Browser marquee - conflict CMotion Gallery

    Cross Browser marquee

    http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

    Could somebody help me to get Cross Browser marquee to work with CMotion Gallery on the same page?
    They both have <script language="JavaScript1.2.1"> and seem to conflict with each other. Any suggestions?
    Thank you!

  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

    Quote Originally Posted by Dave25 View Post
    They both have <script language="JavaScript1.2.1">
    No they don't.

    and seem to conflict with each other.

    I'll take your word for it.

    The language attribute for script tags has been deprecated. In almost all cases, using the now required type attribute instead is the best course:

    Code:
    <script type="text/javascript">
    script code
    </script>
    Or with external code:

    Code:
    <script src="some.js" type="text/javascript">
    /* comments and/or credits, if any */
    </script>
    Getting back to your actual problem, the conflict is at least an onload conflict. There are several ways to resolve this. Here's one:

    The marquee script has:

    Code:
    window.onload=populate
    get rid of that. The Cmotion script has:

    Code:
    window.onload=fillup;
    get rid of that too.

    Now, in your body tag you can do (red, in addition to whatever else is already in your body tag):

    Code:
    <body onload="fillup();populate();">
    There could also be other problems. If you need more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default onload conflict

    search and find
    thanks jscheuer1
    PHP Code:
    <body onload="fillup();populate();"
    fixed it

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
  •