PDA

View Full Version : Miscellaneous Hacks - Mourning Mode [Works with IE]


sharkfin
06-20-2010, 10:00 PM
Mourning Mode [Works with IE]

Many of the bulletin boards are based on a particular community or a nation. And if a natural disaster happened in your area , what about making the color of the site dim? Have you ever thought of having a MOD for that?
OR
If any of your staff/active member died. You really want to express your condolences to them. Right?

This is right mod for the above said purposes. You can turn your site to Morning Mode with this and the whole color of the forum changes to gray scale(only in Internet Explorer).

Installing this MOD

Template Edits

At headinclude template , Add this at bottom :

<script type="text/javascript">
<!--
function dim_color()
{
// Mourning Mode Hack ;)
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
}
dim_color();
//-->
</script>


To temporarily disable this hack
At headinclude template , Find

<script type="text/javascript">
<!--
function dim_color()
{
// Mourning Mode Hack ;)
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
}
dim_color();
//-->
</script>

Remove

dim_color();


And to enable this again , just add that line again. :)

To uninstall / turn off this hack completely :
At headinclude template , Remove this code ..

<script type="text/javascript">
<!--
function dim_color()
{
// Mourning Mode Hack ;)
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
}
dim_color();
//-->
</script>



Please click 'Mark as Installed' if you use liked this hack.

tafreeh
06-21-2010, 05:06 AM
Tagged for future use... (( hopefully not !!! :D lol ))

RobbieZ
06-24-2010, 12:00 AM
You need to make it working across all browser platforms.

Sajeth
06-25-2010, 12:52 PM
Wont work with all designs and only shows effect in Internet Explorer... pretty useless, although I really like the idea behind it ;)

MichaelDance
08-16-2010, 01:39 PM
Id like it if it worked in every browser as most of my users use Chrome or Firefox....