Results 1 to 3 of 3

Thread: problems with frog code

  1. #1
    Join Date
    Oct 2006
    Location
    Nottingham, england
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question problems with frog code

    1) Script Title: Frog JS code

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex4/frogjs/index.htm

    3) Describe problem:
    I have this working on one of my pages,(http://alichristie.info/vstrom/2006/test.htm) but can't get it working on another. Both pages are in different folders, so have their own scripts folder.

    http://alichristie.info/trips/bike/s...d2007/test.htm

    It is coming up with an error:
    Line 52
    Char 4
    Error ‘getElementsByTagName(…).0’ is null or not an object
    Code 0

    And I don't know how to resolve it. I have copied over all the scripts from the working folder, and again from the zip file from the dynamic drive.

    Can anyone resolve this for me please?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Sloppy coding inside the FrogJS division. You have a tags with no image (img) tags inside them, example:

    HTML Code:
    <a href="images/scotland2007_06.jpg">
    </a>
    You do something like that a few times. Get rid of those.
    - John
    ________________________

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

  3. #3
    Join Date
    Oct 2006
    Location
    Nottingham, england
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks.

    I thought I had gotton rid of these in my editing program prior to the upload, so I didn't check that. I obviously didn't.

    Works like a treat now.
    Always useful to have other people look over things, so thanks for taking the time.

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
  •