Hi!
This one is per request.
How do you implement overLIB in Zen-Cart? This is how I did it...
Installation:
1) Download the overLIB package from http://www.bosrup.com/web/overlib/?Download
2) Extract the files and copy overlib.js to includes/templates/template_default/jscript/ directory
3) IMPORTANT: Rename overlib.js to jscript_overlib.js
4) IMPORTANT: Copy includes/templates/template_default/common/tpl_header.php to includes/templates/*my_template*/common/ directory
5) Edit includes/templates/*my_template*/common/tpl_header.php
5a) Find text: <!--bof-header logo and navigation display-->
5b) On the next row (before start-php-tag) insert: <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div>
5c) Save
Now, implemetation:
6) Choose a text, it might be the header of the sideboxes, the site's slogan, image or whatever as long as you can apply the anchor tag around it.
7a) Type before item selected in 6) <a href="javascript:void(0)" onMouseOver="return overlib('This text shows on mouseover');" onMouseOut="return nd();">
7b) Type after item selected in 6) </a>
7c) Save and test
NOTE: In 7a, the default action when clicking on a overLIBbed link is "no action". The text "javascript:void(0)" can (and sometimes is desired) to link to a page. That's OK - just replace it with your ULR and click it.
Common trap - try to avoid it:
Since it's a javascript function and you might want to insert the ' or the " qutoation character in the text 'This text shows on mouseover' it will generate a javascript-error.
Common trap solution:
Use javascript in appropriate place, i.e.
<script type="text/javascript">
var display_text = "This text shows on mouseover 'til I remove the mouse";
</script>
Replace the text 'This text shows on mouseover' (including the ') with display_text and you'r on the road again.
Customizing overLIB:
RTFM (Read The Fine Manual) @ http://www.bosrup.com/web/overlib/?Documentation


. My only point was with this and with other things like big, bloated javascript dhtml menus, make sure you can justify the large increase in size. If it is necessary for your site, and for some it is, then by all means use it. But if it is only for the cool effects, from a business standpoint, its worth reconsidering. Cool menus and effects have not been proven to make sales and $$$ (unless you are a webdesigner :)), but smaller, more accesible websites do.

