Assembla home | Assembla project page
 

Changeset 34

Show
Ignore:
Timestamp:
07/26/08 16:44:18 (1 year ago)
Author:
lie2815
Message:

[togglecategories]:
Made the icons have a transparent background.
Made some changes to the JavaScript? from the second-last changeset.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • togglecategories/trunk/manifest.xml

    r32 r34  
    2525        <hook id="hd_index_head"> 
    2626        <![CDATA[ 
     27                $tpl_main = str_replace('<body onLoad="', '<body onLoad="showlinks();', $tpl_main); 
     28                $tpl_main = str_replace('<body>', '<body onLoad="showlinks();">', $tpl_main); 
     29 
    2730                ob_start(); 
    2831                 
    2932?> 
    3033<script type="text/javascript"> 
    31         var elementList = document.getElementsByClassName("hidelink"); 
     34        function showlinks() 
     35        { 
     36                elementList = document.getElementsByClassName("hidelink"); 
    3237         
    33         for (var i = 0; i < elementList.length; i++) 
    34         { 
    35                 elementList.[i].style.display = 'block'; 
     38                for (i = 0; i < elementList.length; i++) 
     39                { 
     40                        elementList.[i].style.display = 'block'; 
     41                } 
    3642        }   
    3743