PDA

View Full Version : problems with frog code



a1i.c
07-10-2007, 12:11 PM
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/scotland2007/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?

jscheuer1
07-10-2007, 01:00 PM
Sloppy coding inside the FrogJS division. You have a tags with no image (img) tags inside them, example:


<a href="images/scotland2007_06.jpg">
</a>

You do something like that a few times. Get rid of those.

a1i.c
07-10-2007, 01:59 PM
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.:D