To use different backgrounds (in any desired page element) for each category or page:
Name your background images like smartbg_23.gif or smartbg_shippinginfo.gif and save in /includes/templates/your_template/images/.
Done renamed a pic to smartbg_stuff.jpg
To switch backgrounds for a top category and all its subcats, add its id like _# to smartbg.
To switch backgrounds for a single subcategory, add its cPath like _#_# to smartbg.
To switch backgrounds for all ez-pages, add _page to smartbg.
To switch backgrounds for a single ez-page, add its id like _page# to smartbg.
To switch backgrounds for a particular Zen Cart page, add its name like _pagename to smartbg.
Done. pic now named smartbg_page#2_stuff.jpg
Look in the address bar to get the current page name, ez-page id or cPath.
Combine the smartBG_ class with the class or id of the element you want to affect, per the stylesheet examples below.
In /includes/templates/your_template/common/tpl_main_page.php, this line
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
is replaced with
<body id="<?php echo $body_id . 'Body'; ?>" class="smartBG<?php echo smart_backgrounds();?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
If you want to use jpg or png images instead of gifs, change echo smart_backgrounds() to echo smart_backgrounds('.jpg') or '.png', etc.
Done, changed to use .jpg