dollcrds

neocities common codes

May 11th, 2025
6,752
5
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 5 0
  1.  
  2. // change file name + little site icon
  3. // add cover picture when site link is sent/posted
  4. <meta charset="UTF-8">
  5. <link rel="icon" href="https://i.imgur.com/qyDkStE.gif">
  6. <title>lindley's site~</title>
  7. <link href="/style.css" rel="stylesheet" type="text/css" media="all">
  8. <meta property="og:image" content="http://25.media.tumblr.com/tumblr_m3illaAsHw1rv68y7o1_400.gif" />
  9. <meta property="twitter:card" content="summary_large_image">
  10.  
  11. // disable copy and paste
  12. <script language=JavaScript>
  13. <!--
  14.  
  15. //Disable right mouse click Script
  16. //By Maximus ([email protected]) w/ mods by DynamicDrive
  17. //For full source code, visit http://www.dynamicdrive.com
  18.  
  19. var message="please do not directly copy my code ^_^ i obviously cannot stop u if that is ur intention but i would encourage u to reach out on my socials if u need assistance in taking a stab at website building!";
  20.  
  21. ///////////////////////////////////
  22. function clickIE4(){
  23. if (event.button==2){
  24. alert(message);
  25. return false;
  26. }
  27. }
  28.  
  29. function clickNS4(e){
  30. if (document.layers||document.getElementById&&!document.all){
  31. if (e.which==2||e.which==3){
  32. alert(message);
  33. return false;
  34. }
  35. }
  36. }
  37.  
  38. if (document.layers){
  39. document.captureEvents(Event.MOUSEDOWN);
  40. document.onmousedown=clickNS4;
  41. }
  42. else if (document.all&&!document.getElementById){
  43. document.onmousedown=clickIE4;
  44. }
  45.  
  46. document.oncontextmenu=new Function("alert(message);return false")
  47.  
  48. // -->
  49.  
  50. </script>
  51.  
  52. // change highlight color
  53. ::selection {
  54. /* Change highlight background color */
  55. background: #f7abcf;
  56. /* Change highlight text color */
  57. color: #FFFFFF;
  58. }
  59.  
  60. // body code i use for most sites
  61. body {
  62. background-image: url('https://i7.glitter-graphics.org/pub/676/676657yhxq5o5bjd.gif');
  63. background-attachment: fixed;
  64. background-repeat: repeat;
  65. overflow: hidden;
  66. }
  67.  
  68. // hidden scrollbar
  69. html {
  70. overflow: scroll;
  71. overflow-x: hidden;
  72. }
  73. ::-webkit-scrollbar {
  74. width: 0; /* remove scrollbar space */
  75. background: transparent; /* to make scrollbar invisible */
  76. }
  77. ::-webkit-scrollbar-thumb {
  78. background: transparent;
  79. }
  80.  
  81. // links
  82. a {text-decoration: none; color: black; }
Advertisement
Add Comment
Please, Sign In to add comment