Im making a script to dim the whole of the screens page.
I have created this code.
When you type in javascript:block() into the adress bar in FireFox it works just how I want it!
So I then tryed it in internet explorer. But once I done it I did not get the same results, The whole screen turned black and not the 60% like I want it to do.
I have created this code.
| Code: |
| <script type="text/javascript">
function block(){ document.getElementById('BGDIV').style.width = '100%'; document.getElementById('BGDIV').style.height = '100%'; } function unblock(){ document.getElementById('BGDIV').style.width = '0'; document.getElementById('BGDIV').style.height = '0'; } </script> <div id="BGDIV" style="position:absolute; left:0; top:0; width:0; height:0; alpha(opacity=25);-moz-opacity:.6;opacity:.6; background-color:#000000;"></div> <a href="http://rmb-scripting.com">RMB-Scripting</a> |
When you type in javascript:block() into the adress bar in FireFox it works just how I want it!
So I then tryed it in internet explorer. But once I done it I did not get the same results, The whole screen turned black and not the 60% like I want it to do.
