Turn forum colors on/off

Daz

New Member
This modification allows end-users to turn on/off colors in the style (grayscale)


examplest9.gif


Installation:

In Navbar, search for:


PHP:
<!-- / breadcrumb, login, pm info -->

Above it, add:

PHP:
<!-- colors form -->
<td class="alt1">
<script language="JavaScript">
<!--
function ColorsOff()
{
 ht = document.getElementsByTagName("html");
 ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
}
function ColorsOn()
{
 ht = document.getElementsByTagName("html");
 ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)";
}
function changeButton()
{
 if (document.onoff.B1.value=='Colors Off')
 {
 document.onoff.B1.value='Colors On';
 ColorsOff()
 }
 else
 {
 document.onoff.B1.value='Colors Off';
 ColorsOn()
}
}
//-->
</script>
<form name="onoff">
  <input type="button" value="Colors Off" name="B1" class="button" style="width: 80px;" onClick="changeButton()" />
</form>
</td> 
</tr>
</table>
<!-- / colors form -->

Save & your done
 
Back
Top