Contributions
Horizontal main menu
Hello!
I created a horizontal menu whitch apears under the header image based on the coolmenu script!
Installation:
1. you will have to insert in every file in catalog/ (just the ones in catalog/)
a. FIND:
</head>
ADD ABOVE IT:
<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>
b. FIND:
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
ADD ABOVE IT:
<!-- coolMenu //-->
<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>
<!-- coolMenu_eof //-->
2. in catalog/includes/column_left.php
FIND :
include(DIR_WS_BOXES . 'categories.php');
and comment it so it looks like this:
//include(DIR_WS_BOXES . 'categories.php');
3. in in catalog/includes/header.php
FIND:
<table border="0" width="100%" cellspacing="0" cellpadding="1">
<tr class="headerNavigation">
<td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> </td>
</tr>
</table>
ADD ABOVE IT:
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td width="100%" align=center>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
//include(DIR_WS_BOXES . 'categories.php');
include(DIR_WS_BOXES . 'coolmenu.php');
}
?>
</td></tr>
</table>
4. upload new files to your ftp
PLEASE BACKUP YOUR FILES FIRST!!!!
Regards,
PinkCrow
http://www.pinkcrow.net
Expand All / Collapse All
hope it's fixed this time
Also (forgot !!! sorry!!!)
Add this to stylesheet.css
/* ----------------- coolMenu ----------------- */
.clCMEvent{
position:absolute;
width:99%; height:99%;
clip:rect(0,100%,100%,0);
left:0;
top:0;
visibility:visible
}
.clCMAbs{
position:absolute;
visibility:hidden;
left:0;
top:0;
}
.clBar{
position:absolute;
width:10;
height:10;
background-color:#214152;
layer-background-color:#214152;
visibility:hidden;
}
.clLevel0,.clLevel0over{
position:absolute;
padding:1px;
font-family:Verdana,arial,helvetica;
font-size:10px;
}
.clLevel0{
background-color:#ffffff;
layer-background-color:#214152;
color:#000000;
}
.clLevel0over{
background-color:#bbc3d3;
layer-background-color:#bbc3d3;
color:#214152;
cursor:pointer;
cursor:hand;
}
.clLevel0border{
position:absolute;
visibility:hidden;
background-color:#c0c0c0;
layer-background-color:white;
}
.clLevel1, .clLevel1over{
position:absolute;
padding:2px;
font-family:Verdana,arial,helvetica;
font-size:10px;
}
.clLevel1{
background-color:#ffffff;
layer-background-color:#214152;
color:#000000;
}
.clLevel1over{
background-color:#bbc3d3;
layer-background-color:#bbc3d3;
color:#214152;
cursor:pointer;
cursor:hand;
}
.clLevel1border{
position:absolute;
visibility:hidden;
background-color:#c0c0c0;
layer-background-color:white;
}
/* ----------------- coolMenu_eof ----------------- */
Hello!
I created a horizontal menu whitch apears under the header image based on the coolmenu script!
Installation:
1. you will have to insert in every file in catalog/ (just the ones in catalog/)
a. FIND:
</head>
ADD ABOVE IT:
<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>
b. FIND:
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
ADD ABOVE IT:
<!-- coolMenu //-->
<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>
<!-- coolMenu_eof //-->
2. in catalog/includes/column_left.php
FIND :
include(DIR_WS_BOXES . 'categories.php');
and comment it so it looks like this:
//include(DIR_WS_BOXES . 'categories.php');
3. in in catalog/includes/header.php
FIND:
<table border="0" width="100%" cellspacing="0" cellpadding="1">
<tr class="headerNavigation">
<td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> </td>
</tr>
</table>
ADD ABOVE IT:
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td width="100%" align=center>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
} else {
//include(DIR_WS_BOXES . 'categories.php');
include(DIR_WS_BOXES . 'coolmenu.php');
}
?>
</td></tr>
</table>
4. upload new files to your ftp
PLEASE BACKUP YOUR FILES FIRST!!!!
Regards,
PinkCrow
http://www.pinkcrow.net
Note: Contributions are used at own risk.