Hi All,


I got a java script which is used in VB forums and I want to use this effect in a normal HTML page, but I really want some modifications on the script

the script is:

HTML 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('Are you 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>
As you can see the Msg "Are you sure you want to log out ??" I want to remove this Msg and show the effect without asking anything, just when I put it in my page it'll show me the effect

Can anyone help me here ??


Waiting a reply, & Thanks