Im not sure if I am posting this in the right section so apologies if it is wrong :)

I wish to have some banners on my site that crossfade between different images and have a different "link" url for each image.

I can do this using the "Ultimate Fade-In Slideshow" java code from Dynamic Drive (link : http://www.dynamicdrive.com/dynamici...nslideshow.htm)

The code consists of two sections, the actual javascript code that should be placed in the head section of the html page and then, of course, the line of javascript that calls the function in the correct place on your page.

I can get this working just fine by inserting BOTH the javascript function and the code to call it in the html box when creating a banner.

My question is, is this the correct way to do it? I was thinking that it would be better to have the javascript function included in a header somewhere and then, when creating a banner, i could just call the function in the banner html box? If so, where should I insert the function? I am guessing at includes/templates/template_default/common/tpl_main_pge.php
- is that correct?

Thanks in advance for any advice