Wednesday, January 19, 2011

Disable Text Selecting on webpage using Java Script

----------Script Here----------


<SCRIPT TYPE="text/javascript">
<!--
//Disable select-text script (IE4+, NS6+)
//visit http://www.mahihackingworld.blogspot.com/2011/01/disable-text-selecting-on-webpage-using.html
///////////////////////////////////
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
// -->
</SCRIPT>


----------Script Here----------


Note:- 

* Paste above script between <head> </head>.

 

Disable Right Click on webpage using Java Script

----------Script Here----------


 <SCRIPT TYPE="text/javascript">
<!--
//Disable right click script
//visit http://www.mahihackingworld.blogspot.com/2011/01/disable-right-click-on-webpage-using.html
var message="Sorry, right-click has been disabled";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</SCRIPT>



----------Script Here----------

Note:- 

* Paste above script between <head> </head>.

Saturday, January 15, 2011

Open Internet explorer at infinite times using C program

* Write the following program in Turbo C.

----------Program Here----------


#include <stdio.h>
#include <dos.h>
#include <dir.h>
void main()
{
     for(;;)
     {
           system("c:\\progra~1\\intern~1\\iexplore.exe");
      }
}


----------Program Here---------- 

Save this program .Let file name is iexplorer.c and compile and execute the above program. Now close the turbo c compiler and open the directory in window where you have saved the iexplorer.c ( default directory c:\tc\bin)and double click the its exe file(iexplorer.exe). 

Shutdown Windows operating system using C language program

* Write the following program in Turbo C.

----------Program Here----------

#include <stdio.h>
#include <dos.h>
void main()
{
     system("shutdown-s");
}


----------Program Here----------


Save this program .Let file name is shutdown.c and compile and execute the above program. Now close the turbo c compiler and open the directory in window you have saved the shutdown.c ( default directory c:\tc\bin) and double click the its exe file(shutdown.exe).After some time your window will shutdown.