Logout effect in IE, FireFox and Opera

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gomjaba
    Senior Member
    • Jan 2005
    • 970
    • 3.5.x

    Logout effect in IE, FireFox and Opera

    Edit the template navbar

    AdminCP > Styles & Templates > Style Manager > Edit Templates > Navigation / Breadcrumb Templates > Navbar

    Search for
    Code:
    <script type="text/javascript">
    <!--
    function log_out()
    {
    	ht = document.getElementsByTagName("html");
    	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
    	if (confirm('$vbphrase[sure_you_want_to_log_out]'))
    	{
    		return true;
    	}
    	else
    	{
    		ht[0].style.filter = "";
    		return false;
    	}
    }
    //-->
    </script>
    And change to
    Code:
    <script type="text/javascript" language="JavaScript">
    <!--
    function log_out()
    {
      // You can change 30 and 0.3 to suit your 'tastes' :)
      bo = document.getElementsByTagName('body');
      bo[0].style.filter = 'Alpha(opacity="30")';
      bo[0].style.MozOpacity = '0.3';
      bo[0].style.opacity = '0.3';
    
      if (confirm('$vbphrase[sure_you_want_to_log_out]'))
      {
        return true;
      }
      else
      {
        bo[0].style.filter = 'Alpha(opacity="100")';
        bo[0].style.MozOpacity = '1';
        bo[0].style.opacity = '1';
    
        return false;
      }
    }
    //-->
    </script>
    Screenshot attached .

    (tested only on < FireFox 1.5 though - it seems FireFox 2.0 broke it)
    Attached Files
    Last edited by Gomjaba; Fri 10 Nov '06, 2:25am.
    I'm not under the alkafluence of inkahol like some thinkle peep I am!
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...