i stuffed up a little in the first place and forgot that what i did is what i said in the last post.
about the url that is why the files didnt load because i removed the first image in the set in CMS and then it stopped the script from running.
so i guess i really need to make it more user friendly to the end user so they dont forget to put the image name into the url field.
Thanks
Craig
KC Media Solutions
www.kcmedia.biz