Hi, I'm just wondering if anyone knows a better way to do rollover images for javascript than what I'm currently doing (shown below)...I'm looking for a way where i can basically pass in the name of the file (or image name) and get the rollOn() and rollOut() functions (again, shown below) to use that to determine the src's of the images to show rather than the lengthy if statement so that I can add more images, and not have to change the rollOn()/rollOut() as much as I am for every new rollover image i want to add (currently there's about 7...I've edited some out for simplicity's sake). Anyway, here's what I'm currently doing. The file is also attached.
Thanks for your help.
Chris
Thanks for your help.
Chris