PDA

View Full Version : Nagging validation issue


the_pm
March 1st, 2005, 06:43
This is mainly a JavaScript question, and it's nagging at me a bit right now (though I'm not losing too much sleep over it).

I have an ad rotator on a site I'm finishing up - it's compulsory, as the site is part of the Canton Chamber of Commerce Web ring. The ad rotator requires the img tag in the HTML document to use the name attribute, which is not acceptable in XHTML. I'm trying to change this to an ID, but I can't for the life of me find anywhere in the script where that name is being referenced, and therefore I can't make the necessary code changes to switch from name to ID.

Here's the page in question: http://www.leadershipstarkcounty.com/index2.asp

The script is here: http://www.leadershipstarkcounty.com/includes/ads.js

Any thoughts?

the_pm
March 1st, 2005, 06:44
Whoops...I think I found it...

the_pm
March 1st, 2005, 06:55
Ok sorted :)

After finding the right line of code and experimenting with getElementById, I finally got it right. *phew* JS sucks :(

crazyfish
March 1st, 2005, 07:36
that was an interesting conversion with yourself :)

the_pm
March 1st, 2005, 07:38
My cats are good listeners too :lol:

crazyfish
March 1st, 2005, 07:40
My dogs just humor me and look at me like I am crazy, they are probably right. haha