|
Turn colors on/off
This modification is in the archives.
This modification allows users to turn on/off colors in the style (grayscale) - (works in IE Only).
Screenshot: ![]() -------- Installation: In Navbar, search for: HTML Code:
</tr> </table> <!-- / breadcrumb, login, pm info --> HTML Code:
<!-- 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> <!-- / colors form --> -------- Credits: Thanks to Wayne Luke for his help in making this mod. What's next: Looking for someway to save selected option with cookies. Download No files for download. |
|||||||||