You still have not provided the page where you have put this. And without looking at the code I don't know what is or isn't working. "swap image" might be a piece of javascript, another iframe, or other function. There is no way to know what or why till we see your page.