Hi Sawhorse,
This is my first test using this method, and shows what the button looks like unwindowed.
http://chicagophoto.net/btest/
The main core change was to /includes/functions/html_output.php
Code:
/**
* generate CSS buttons in the current language
* revised code and concepts by Chadderuski and Sir John Steed
* Allows full control of all link and form buttons through CSS stylesheet.
* This revised function replaces the standard zenCssButton() above.
**/
function zenCssButton($image = '', $text, $type, $sec_class , $parameters ) {
if (strrpos($image, '.') !== false) $sec_class = substr($image, 0, strrpos($image, '.'));
if (!empty($parameters)) $parameters = ' ' . $parameters;
// form input button
if ($type == 'submit'){
//$css_button = '<input class="cssButton ' . $sec_class . '" ' . ' type="submit" value="' . '"' . $parameters . ' />';
// $css_button = '<input class="cssButton ' . $sec_class . '" ' . ' type="submit" value="' .$text . '"' . $parameters . ' />';
$css_button = '<button class="cssButton ' . $sec_class . '" ' . ' type="submit" ' . $parameters . ' >' .$text . '</button>';
}
// link button
if ($type=='button'){
$css_button = '<div class="cssButton ' . $sec_class . '"' . $parameters . '>'. $text . '</div>';
}
return $css_button;
}
I may have made changes to zen_image_submit() also ... will have to look at clean code.
placement of the css buttons is not always "right" out of the box, so you may have to modify those pages to get the look you want. Mostly, I've found I've had to use some relative positioning to get them where I want them.
Note that I haven't necessarily honored zencarts css/picture button switches here... a lot of testing and experimentation went into this... but so far working.
I also used the sliding door method on the horizontal navigation. This did require adding a <span></span> in the menu generation code under /includes/classes/categories_ul_generator.php. Those tabs use two images for left/right sides of the button so you can +/- the page and not break them.
Of course, inspiration for this is from Paul's CSS Horizontal Dynamic Menu and this great tutorial:
http://www.alistapart.com/articles/slidingdoors/
I'm sure a more knowledgeable CSS pro could really clean this up. My drop menu's CSS is a bit garish, but works! You can link those direct and see what I did. I sort of hacked away at it until I got it to do what I wanted. But I'm certain there is a cleaner way more elegant way! And there aren't any IE hacks in here to fix IE's bugs (so far they are working though).
-Chadderuski