Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with MouseOver effect in Product Listing


CrassOne

Recommended Posts

I got some javascript to create a mouseover effect on the Product Listing page. It works great in Netscape but in IE there are no products showing.

 

See it here: http://www.crasscommerce.com/catalog/index.php?cPath=3_10

 

This is the javascript code:

<script language="JavaScript" type="text/JavaScript">
<!--
function rowOverEffect(object) {
if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
</script>

 

And this code is replaced...

      if (($rows/2) == floor($rows/2)) {
       $list_box_contents[] = array('params' => 'class="productListing-even"');
     } else {
       $list_box_contents[] = array('params' => 'class="productListing-odd"');
     }

 

...by this:

$list_box_contents[] = array('params' => 'class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onclick="javascript:;"');

 

Thanks in advance for your help.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...