The script below allows the Tabs on a dashboard to be coloured in differnent colours , Quite cool...
Just insert a Textbox into a dashboard "Contains HTML"
Paste the below code in
<script type="text/javascript">
var tblId=document.getElementById('TabsTable');
tblId.tBodies[0].rows[0].cells[1].className='';
tblId.tBodies[0].rows[0].cells[2].className='';
tblId.tBodies[0].rows[0].cells[3].className='';
tblId.tBodies[0].rows[0].cells[4].className='';
tblId.tBodies[0].rows[0].cells[5].className='';
tblId.tBodies[0].rows[0].cells[6].className='';
tblId.tBodies[0].rows[0].cells[1].style.backgroundColor='red';
tblId.tBodies[0].rows[0].cells[2].style.backgroundColor='red'
tblId.tBodies[0].rows[0].cells[3].style.backgroundColor='white'
tblId.tBodies[0].rows[0].cells[4].style.backgroundColor='white'
tblId.tBodies[0].rows[0].cells[5].style.backgroundColor='blue'
tblId.tBodies[0].rows[0].cells[6].style.backgroundColor='blue'
</script>
Just insert a Textbox into a dashboard "Contains HTML"
Paste the below code in
<script type="text/javascript">
var tblId=document.getElementById('TabsTable');
tblId.tBodies[0].rows[0].cells[1].className='';
tblId.tBodies[0].rows[0].cells[2].className='';
tblId.tBodies[0].rows[0].cells[3].className='';
tblId.tBodies[0].rows[0].cells[4].className='';
tblId.tBodies[0].rows[0].cells[5].className='';
tblId.tBodies[0].rows[0].cells[6].className='';
tblId.tBodies[0].rows[0].cells[1].style.backgroundColor='red';
tblId.tBodies[0].rows[0].cells[2].style.backgroundColor='red'
tblId.tBodies[0].rows[0].cells[3].style.backgroundColor='white'
tblId.tBodies[0].rows[0].cells[4].style.backgroundColor='white'
tblId.tBodies[0].rows[0].cells[5].style.backgroundColor='blue'
tblId.tBodies[0].rows[0].cells[6].style.backgroundColor='blue'
</script>
Note: only a member of this blog may post a comment.