Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories_infobox_deluxe_v2.1.zip


Recommended Posts

dear users

i'm sorry, mi english is not good

 

i'm using the categories_infobox_deluxe_v2.1

 

i create all strutucte in tables of BD and in insert/edit categories form of the admin panel.

i desire to create a effect that when mouse is over a product a new image appear in the respective categorie. understand?

 

see the code:

 

$item_column_number = 2;		// range of 1 to 9
$item_title_on_newline = true;	// true or false
$valign = top;	                  // middle, top, or bottom (determines the vertical placement of the images)

$hover = on;                        // turns hover effect on or off

// The Following Parameters are for customizing the hover effect
// leave the # in the color values or the border may not show

$hovercolor = "#0066FF";            // color for category when the mouse hovers over it
$hoverborder = "#c0c0c0";           // color for category border when hovered (ignore if $borderwidth is set to 0)
$regcolor = "#ffffff";              // color for category when not hovered
$regborder = "#F8F8F9";             // color for category border when not hovered (ignore if $borderwidth is set to 0) 
$borderwidth = 0;                   // width of border around categories (in pixels, 0 for none)

 

if ($hover == 'on')
{

	$info_box_contents[$row][$col] = array('align' => 'left',
                                         'params' => 'class="smallText" style="border:' . $borderwidth . 'px solid ' . $regborder . '" onMouseOver="window.status=\'' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '\'; this.style.backgroundColor=\'' . $hovercolor . '\'; this.style.cursor=\'hand\'; this.style.border=\'' . $borderwidth . 'px solid ' . $hoverborder . '\';" onMouseOut="window.status=\'\'; this.style.backgroundColor=\'' . $regcolor . '\'; this.style.border=\'' . $borderwidth . 'px solid ' . $regborder . '\';" onclick="location.href=\'' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '\'" width="'.intval(100/$item_column_number).'%" valign="' . $valign . '"',
									   //. tep_image(DIR_WS_IMAGES . $categories['img_hover'], $categories['img_hover']');',
                                         'text' => '<div '. $item_div_options . '><div id="#meu"> <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' .  tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>' . $item_separator . '<!--AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . $categories['categories_name'] . '</a>--><DIV ' . $item_subcategories_options . '>' . $text_subcategories . $spacing . '</DIV></DIV></DIV>');

}

 

i remove the name of the category. but i can not to change the image when the mouse is over.

 

understand?

 

thank you

categories.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...