Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 5.28 KB | None | 0 0
  1. <                                                                             !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2.  
  3.  
  4. <HTML>
  5. <HEAD>
  6.  
  7. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  8. <META name="GENERATOR" content="IBM Software Development Platform">
  9. <META http-equiv="Content-Style-Type" content="text/css">
  10. <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
  11. <TITLE></TITLE>
  12. <!-- script for disable text selection - function implemented -->
  13. <script type="text/javascript">
  14. <!--
  15. /***********************************************
  16. * Text Selection script- Disable
  17. ***********************************************/
  18.  
  19. function disableMouseSelection(target){
  20. if (typeof target.onselectstart!="undefined") // for IE
  21.        target.onselectstart=function(){return false}
  22. else if (typeof target.style.MozUserSelect!="undefined") // for Firefox
  23.        target.style.MozUserSelect="none"
  24. else //All other route (ie: Opera)
  25.        target.onmousedown=function(){return false}
  26. target.style.cursor = "default"
  27. }
  28. // -->
  29. </script>
  30. </HEAD>
  31. <BODY>
  32. <!-- Script for mouse right click disable -->
  33. <script language=JavaScript>
  34.  
  35. <!--
  36. //Mouse Right click disable
  37. var message="";
  38. function clickinIE() {if (document.all) {(message);return false;}}
  39. function clickinNS(e) {if
  40. (document.layers||(document.getElementById&&!document.all)) {
  41. if (e.which==2||e.which==3) {(message);return false;}}}
  42. if (document.layers)
  43. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickinNS;}
  44. else{document.onmouseup=clickinNS;document.oncontextmenu=clickinIE;}
  45.  
  46. document.oncontextmenu=new Function("return false")
  47. // -->
  48. </script>
  49.  
  50.  
  51.  
  52. <!-- Layer for table background with rows and cols bordrer is 1 -->
  53. <div id="gdgdg" style="position:absolute; left:10; top:15;">
  54. <TABLE bgcolor="#A0A0A0" BORDERCOLOR="#A0A0A0" border="1" CELLPADDING="0" cellsp                                                                             acing="0" WIDTH="170" height="30">
  55. <TR height="10px" bgcolor="#888888">
  56. <TD width="34"></TD>
  57. <TD width="34"></TD>
  58. <TD width="34"></TD>
  59. <TD width="34"></TD>
  60. <TD width="34"></TD>
  61. </TR>
  62. <TR height="5px" bgcolor="#888888"><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>                                                                             <TD></TD></TR>
  63. <TR height="10px" bgcolor="#888888"><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD                                                                             ><TD></TD></TR>
  64. <TR height="5px" bgcolor="#888888"><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD>                                                                             <TD></TD></TR>
  65. </TABLE>
  66. </div>
  67.  
  68. <!-- Layer contains table with 5 cols (width is divide by no of chars) contains                                                                              Captcha Chars  -->
  69. <div id="captchdiv" style="position:absolute; left:10; top:15;">
  70. <TABLE BORDER="0" CELLSPACING="0" WIDTH="170" height="30">
  71.         <tr>
  72.                 <td width="34" align="center" valign="top"><span
  73.                        style="font-family:cursive; FONT-SIZE:13.2 pt; color:#FF                                                                             FFFF; text-decoration:none;">
  74.                 <b>Q</b></span></td>
  75.                 <td width="34" align="center" valign="bottom"><span
  76.                        style="font-family: cursive; FONT-SIZE:13.2 pt; color: #                                                                             FFFFFF; text-decoration: none;">
  77.                 <b>W</b></span></td>
  78.                 <td width="34" align="center" valign="top"><span
  79.                        style="font-family: cursive; FONT-SIZE:13.2 pt; color: #                                                                             FFFFFF; text-decoration: none;">
  80.                 <b>S</b></span></td>
  81.                 <td width="34" align="center" valign="bottom"><span
  82.                        style="font-family: cursive; FONT-SIZE:13.2 pt; color: #                                                                             FFFFFF; text-decoration: none;">
  83.                 <b>T</b></span></td>
  84.                 <td width="34" align="center"><span
  85.                        style="font-family: cursive; FONT-SIZE:13.2 pt; color: #                                                                             FFFFFF; text-decoration: none;">
  86.                 <b>F</b></span></td>
  87.  
  88.         </tr>
  89. </table></div>
  90.  
  91. <!-- script for disable text selection call function above implemented -->
  92. <script type="text/javascript">
  93. disableMouseSelection(document.body) //disable text selection on entire body of                                                                              page
  94. </script><script type="text/javascript">
  95. var somediv=document.getElementById("captchdiv")
  96. disableMouseSelection(somediv) //disable text selection within DIV with id="mydi                                                                             v"
  97. </script><script type="text/javascript">
  98. var alltables=document.getElementsByTagName("table")
  99. for (var i=0; i<alltables.length; i++)
  100. disableMouseSelection(alltables[i]) //disable text selection within all tables o                                                                             n the page
  101. </script>
  102.  
  103. </BODY>
  104. </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement