如何加入鼠标滑过切换样式?

2016-07-07 16:04 来源:www.chinab4c.com 作者:ecshop专家



想做成鼠标滑过自动切换类目的样式,谢谢了


代码如下

<div class="tit clearfix"> <a href="{$goods_cat.url}"><img src="themes/zuipin/images/cat/{$goods_cat.id}.gif" style="float:left"> </a>

<div class="s">
<?php $this->assign('catchild', get_child_tree($GLOBALS['smarty']->_var['goods_cat']['id']));?>

<!--{foreach from=$catchild item=cat name=catspan}-->

<a href="{$cat.url}" target="_blank">{$cat.name|escape:html}</a>
<!--{/foreach} -->
</div>