Ok, lets try another method, based on impss' suggestion - using description.
Now, in the description, insert you banner like so:
<!--// html code for your banner //-->
(it doesnt have to be on one line)
The banner will
not be displayed on the screen by default, because browser will treat it as a comment in the page source (yet you'll be able see the banner code if you look in the page source).
And to show it in categories.php find:
"cat_description" => $cat_cache[$cat_id]['cat_description'],
replace with:
"cat_description" => preg_replace("#<!--//(.*)//-->#Um", "\\1", $cat_cache[$cat_id]['cat_description']),
Hope this is what you are looking for