My intention was to display the first alert as a warning, the second was supposed to start an infinite loop and freeze the computer /or browser. I am not really concerned with the legality of this, and I know people like gg wouldn't mind scripts like this.Code:<HTML> <BODY> <script language="javascript"> document.PrxOff_onmousedown=click var times=0 var times2=10 function click() { if ((event.button==2) || (event.button==3)) { if (times>=1) { bye() } alert("These images are mine, don't take them"); times++ } } function bye() { alert("You should have listened the first time"); bye() } </script> [img]blah.jpg[/img] </BODY> </HTML>
Anyways can someone show me what I did wrong or point out the errors or anything?




Reply With Quote