Results 1 to 2 of 2

Thread: 2 of the same script. Not working.

  1. #1
    Join Date
    Sep 2006
    Posts
    108

    2 of the same script. Not working.

    I am trying to place two of the same scripts on a page.

    Their purpose is to create a scrollable box which then can be filled with your content.

    I am using dynamic drive's free script: http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

    The problem I am having is: when I use both scripts, the first script's arrows scroll the second script's content.


    I have tried the suggestion they gave to fix it but, it has not worked for me.
    Their suggested resolution was to delete the:
    window.onload=getcontent_height in both scripts and add this:
    <body onload="dothis();dothat()"> to the body tag.

    So I added this to the body tag:
    <body onload="getcontent_height(); getcontent_height()">
    nothing happened.

    I don't know any java script. I have only used their free scripts. So I am at a loss with this.
    elli

  2. #2
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    394
    Can you link to a live version of the page or paste your entire page's code up here? There's quite a few things that could be screwing this up right now, such as the fact that your onload attribute is just running the same function twice or that you may have redeclared a function by pasting it in twice. In order to fully figure out what's going on I need to be able to see everything.
    Co-founder Aedis IT www.aedisit.com
    Registered Linux User #445070 counter.li.org
    Zend Certified Engineer - CIW Professional - CompTIA Linux+ - CompTIA Network+

Similar Threads

  1. Email script not working
    By djexelta in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 04 Nov 2006, 04:48 AM
  2. Register script not working (php)
    By ilovefishsticks in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 14 May 2006, 01:43 PM

Posting Permissions

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