Results 1 to 4 of 4

Thread: script conflict . help me

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default script conflict . help me

    1) Script Title: Scrollable content II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

    3) Describe problem: confilct


    i need to make it work . i dont kno how to resolve the conflict

    i have 6 scripts one page like this an dont know wath to modify .

  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

    This type of question is specifically excluded in the guidelines. But that just means that we aren't likely to help, not that we won't at least perhaps try.

    As I'm sure you understand, something like this can be quite complex. But sometimes it can be rather simple. If it is just an onload event conflict, there are several ways to easily deal with it.

    If that's all that it is, one way would be to remove:

    Code:
    window.onload=getcontent_height
    from the Scrollable content II code, and replace it with:

    Code:
    if(window.addEventListener)
    window.addEventListener('load', getcontent_height, false);
    else if(window.attachEvent)
    window.attachEvent('onload', getcontent_height);
    If that fixes it, great! Otherwise, if you want 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
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default dont work

    Quote Originally Posted by jscheuer1 View Post
    This type of question is specifically excluded in the guidelines. But that just means that we aren't likely to help, not that we won't at least perhaps try.

    As I'm sure you understand, something like this can be quite complex. But sometimes it can be rather simple. If it is just an onload event conflict, there are several ways to easily deal with it.

    If that's all that it is, one way would be to remove:

    Code:
    window.onload=getcontent_height
    from the Scrollable content II code, and replace it with:

    Code:
    if(window.addEventListener)
    window.addEventListener('load', getcontent_height, false);
    else if(window.attachEvent)
    window.attachEvent('onload', getcontent_height);
    If that fixes it, great! Otherwise, if you want more help:

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

    i make theese changes but does`n work for me

    this is my link : click here

  4. #4
    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

    I see, you are trying to use that script more than one time on the page. You need a script that can be used that way, here's one:

    http://home.comcast.net/~jscheuer1/s...side_table.htm
    - John
    ________________________

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

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
  •