Kuroi,
I totally don't get the zen_image example. I have opened a thread couple of days ago, asking simmilar question: I need to replace all categories, subcategories and any other sideboxes text with images (let's skip the 'why?')
I have a jscript which is used in other pages on the site. Here is an html example of rollover image (i.e. navnews.jpg = reg. image; navnews_.jpg = rollover image):
<a href="URLHERE" onmouseover="MM_swapImage('navnews','','icons/navigator/newsc_.jpg',1)" onmouseout="MM_swapImgRestore()">
<img src="/icons/navigator/newsc.jpg" name="navnews" width="97" height="30" alt="articles and news" border="0" />
</a>
I was thinking to incorporate what I need (above) around the code in categories.php, but when I read your post about zen_image, I'm getting lost.
I can't find any explanation to what "$box_categories_array[$i]['name']" means...
I don't understand how this code:
zen_image($template->get_template_dir($box_categories_array[$i]['name'] . '.gif', DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . $box_categories_array[$i]['name'] . '.gif', $box_categories_array[$i]['name'])
applies to the zen_image function - which commas are the separators of the properties? what is the '/' stands for? in which folder the images go to?
And, is there a way to incorporate what I have presented above?
Thanks,
Best,
0100000101011010
---------------------------------
It's not magic, it's just math!