script code inside banners

Hi there

I put JS (script) into one of my text banners, I checked it with the HTML editor and everything was ok, than I added new block, on the right side and choosed the banner with the script. for some reason I the system does nott show the image that my script should show.

why is that?