look at toolbar.phtml for changing the onLoad function and the loading of writebuttons...() **********************************************************************************/ /* * WRITE ZOOM SLIDER * called from top.phtml ******************************************************************************/ function writescaleslider($gSlide) { for ($i=0;$i\"1:$sln\" \n"); } } /* * PRINT TOOLBAR BUTTONS, NEW VERSION * called from toolbar.phtml *******************************************************************************/ function writebuttons($buttons, $toolBarOrientation) { echo ("\n"); echo ($toolBarOrientation == "vertical" ? "" : ""); foreach ($buttons as $b => $ba) { echo ($toolBarOrientation == "vertical" ? "" : ""); if (preg_match("/^space/i", $b)) { echo (""); } elseif (preg_match("/^separator/i", $b)) { if ($toolBarOrientation == "vertical") { echo (" "); } else { echo (" "); } } else { echo ("" ); } echo ($toolBarOrientation == "vertical" ? " \n" : "\n"); } echo ($toolBarOrientation == "vertical" ? "" : " \n"); echo ("
\"separator\"\"separator\"\"separator\"" . "\"$ba[0]\"
"); } /* * PRINT TOOLBAR BUTTONS, OLD VERSION WITH IMAGE SWAP * -> swaps images from imgname_on.gif to imgname_off.gif and vice versa * adapt toolbar.phtml (find detailed descriptions there) *******************************************************************************/ function writebuttonsImgSwap($buttons, $toolBarOrientation) { #echo ($toolBarOrientation); exit(); echo ($toolBarOrientation == "vertical" ? "" : ""); foreach ($buttons as $b => $ba) { echo ($toolBarOrientation == "vertical" ? "" : ""); if (preg_match("/^space/i", $b)) { echo (""); } elseif (preg_match("/^separator/i", $b)) { if ($toolBarOrientation == "vertical") { echo (" "); } else { echo (" "); } } else { echo ("" ); } echo ($toolBarOrientation == "vertical" ? " \n" : "\n"); } echo ($toolBarOrientation == "vertical" ? "" : " \n"); } ?>