Paste the below script on your Content Editor Webpart, put this webpart in the footer zone.
All webparts will render based on the color specified in the Array order.
- <script type="text/javascript">
- var bcol=new Array("#E18B6B", "#F665AB", "orange", "rose", "blue");
- var rcnt=0;
- var x= document.getElementsByTagName("TD");
- for(var i=0;i<x.length;i++)
- {
- if(x[i].title !="Forums" && x[i].title !="")
- {
- if(rcnt == 5)
- rcnt=0;
- var td =x[i];
- var row =td.parentNode;
- for (var j = 0, col; col = row.cells[j]; j ++) {
- col.style.backgroundColor =bcol[rcnt];
- }
- td.parentNode.style.backgroundColor =bcol[rcnt];
- td.style.backgroundColor=bcol[rcnt];
- rcnt =rcnt +1;
- }
- }</script>
Comments
Post a Comment