View Full Version : Modifying Catagory tree
mudpaws
05-13-06, 12:28 AM
My question is, how do you add rollover effects to catagory tree? I know you can upload images for each catagory, but is there a way to specify image swap/rollover? Or is this something that could only be done by using one of the add-on modules, and if so, can anyone recommend which one I should get.
sebenza
05-13-06, 06:57 AM
Our Category Tree Template (http://www.sebenza.com/products/SS-CATTREE5.html?a_aid=forum) module will allow you do this:
http://www.sebenza.com/products/SS-CATTREE5.html (http://www.sebenza.com/products/SS-CATTREE5.html?a_aid=forum)
Also see: http://www.mvwiki.com/w/Category_Tree_Rollover_Images
mudpaws
05-14-06, 06:05 AM
Following your recommendations I have installed your Category Tree Template module and I tried copy&pasting the template code provided on www.mvwiki.com (http://www.mvwiki.com) page, but I'm still not able to get it to work. Am I doing this correctly?
sebenza
05-14-06, 06:04 PM
Can you show us your tree template code?
mudpaws
05-14-06, 07:03 PM
Can you show us your tree template code?
Ok,
So, I basically deleted the default category tree template and replaced it with:
<script language="JavaScript">
function imgswap(imgNumber, imgsource)
{
document[imgNumber].src = imgsource }
</script>
<a href="&mvt:global:sessionurl;Screen=CTGY&Category_Code=&mvta:tree:code;" onMouseOver="imgswap('&mvte:tree:code;', '/images/&mvte:tree:code;_on.gif'); return true;" onMouseOut="imgswap('&mvte:tree:code;','&mvte:tree:image;'); return true;"> <img border="0: name="&mvte:tree:code;" src="&mvte:tree:image;" return true;></a>
I then followed the instructions on saving the rollover images into a directory "images" after naming them each by its category code_on.gif. All that resulted in no images being displayed. I also tried pasting the above code into the existing default template, basically replacing the <a href= , but that resulted in an error message.
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.