dollcrds

cr angeidiarys codes & cursor

May 12th, 2024 (edited)
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. ---CODES---
  2. <style>
  3.  
  4. @font-face {
  5. font-family: Chemre;
  6. src: url(https://dl.dropbox.com/s/a4vu0khvvhe5lwq/Chemre.ttf);
  7. }
  8. html {
  9. overflow: scroll;
  10. overflow-x: hidden;
  11. }
  12. ::-webkit-scrollbar {
  13. width: 0; /* remove scrollbar space */
  14. background: transparent; /* to make scrollbar invisible */
  15. }
  16. ::-webkit-scrollbar-thumb {
  17. background: transparent;
  18. }
  19. @keyframes blinkingText {
  20. 0% {
  21. color: #fec5e5;
  22. }
  23.  
  24. 49% {
  25. color: #fec5e5;
  26. }
  27.  
  28. 60% {
  29. color: white;
  30. }
  31.  
  32. 99% {
  33. color: white;
  34. }
  35.  
  36. 100% {
  37. color: #fec5e5;
  38. }
  39. }
  40.  
  41. </style>
  42.  
  43. ---CURSOR--- (make sure embed style is "hidden") !!
  44. <script type="text/javascript">
  45. // <![CDATA[
  46. var colours=new Array( '#FFC0D3', '#FFA6D5', 'white', '#F9CEEE', '#FED1EF'); // colours of the stars
  47. var minisize=16; // smallest size of stars in pixels
  48. var maxisize=28; // biggest size of stars in pixels
  49. var stars=66; // maximum number of stars on screen
  50. var over_or_under="over"; // set to "over" for stars to always be on top, or "under" to allow them to float behind other objects
  51.  
  52. /*****************************
  53. *JavaScript Love Heart Cursor*
  54. * (c)2013+ mf2fm web-design *
  55. * http://www.mf2fm.com/rv *
  56. * DON'T EDIT BELOW THIS BOX *
  57. *****************************/
  58. var x=ox=400;
  59. var y=oy=300;
  60. var swide=800;
  61. var shigh=600;
  62. var sleft=sdown=0;
  63. var herz=new Array();
  64. var herzx=new Array();
  65. var herzy=new Array();
  66. var herzs=new Array();
  67. var kiss=false;
  68.  
  69. if (typeof('addRVLoadEvent')!='function') function addRVLoadEvent(funky) {
  70. var oldonload=window.onload;
  71. if (typeof(oldonload)!='function') window.onload=funky;
  72. else window.onload=function() {
  73. if (oldonload) oldonload();
  74. funky();
  75. }
  76. }
  77.  
  78. addRVLoadEvent(mwah);
  79.  
  80. function mwah() { if (document.getElementById) {
  81. var i, heart;
  82. for (i=0; i<stars; i++) {
  83. heart=createDiv("auto", "auto");
  84. heart.style.visibility="hidden";
  85. heart.style.zIndex=(over_or_under=="over")?"1001":"0";
  86. heart.style.color=colours[i%colours.length];
  87. heart.style.pointerEvents="none";
  88. if (navigator.appName=="Microsoft Internet Explorer") heart.style.filter="alpha(opacity=75)";
  89. else heart.style.opacity=0.75;
  90. heart.appendChild(document.createTextNode(String.fromCharCode(9733)));
  91. document.body.appendChild(heart);
  92. herz[i]=heart;
  93. herzy[i]=false;
  94. }
  95. set_scroll();
  96. set_width();
  97. herzle();
  98. }}
  99.  
  100. function herzle() {
  101. var c;
  102. if (Math.abs(x-ox)>1 || Math.abs(y-oy)>1) {
  103. ox=x;
  104. oy=y;
  105. for (c=0; c<stars; c++) if (herzy[c]===false) {
  106. herz[c].firstChild.nodeValue=String.fromCharCode(9733);
  107. herz[c].style.left=(herzx[c]=x-minisize/2)+"px";
  108. herz[c].style.top=(herzy[c]=y-minisize)+"px";
  109. herz[c].style.fontSize=minisize+"px";
  110. herz[c].style.fontWeight='normal';
  111. herz[c].style.visibility='visible';
  112. herzs[c]=minisize;
  113. break;
  114. }
  115. }
  116. for (c=0; c<stars; c++) if (herzy[c]!==false) blow_me_a_kiss(c);
  117. setTimeout("herzle()", 40);
  118. }
  119.  
  120. document.onmousedown=pucker;
  121. document.onmouseup=function(){clearTimeout(kiss);};
  122.  
  123. function pucker() {
  124. ox=-1;
  125. oy=-1;
  126. kiss=setTimeout('pucker()', 100);
  127. }
  128.  
  129. function blow_me_a_kiss(i) {
  130. herzy[i]-=herzs[i]/minisize+i%2;
  131. herzx[i]+=(i%5-2)/5;
  132. if (herzy[i]<sdown-herzs[i] || herzx[i]<sleft-herzs[i] || herzx[i]>sleft+swide-herzs[i]) {
  133. herz[i].style.visibility="hidden";
  134. herzy[i]=false;
  135. }
  136. else if (herzs[i]>minisize+2 && Math.random()<.5/stars) break_my_heart(i);
  137. else {
  138. if (Math.random()<maxisize/herzy[i] && herzs[i]<maxisize) herz[i].style.fontSize=(++herzs[i])+"px";
  139. herz[i].style.top=herzy[i]+"px";
  140. herz[i].style.left=herzx[i]+"px";
  141. }
  142. }
  143.  
  144. function break_my_heart(i) {
  145. var t;
  146. herz[i].firstChild.nodeValue=String.fromCharCode(9676);
  147. herz[i].style.fontWeight='bold';
  148. herzy[i]=false;
  149. for (t=herzs[i]; t<=maxisize; t++) setTimeout('herz['+i+'].style.fontSize="'+t+'px"', 60*(t-herzs[i]));
  150. setTimeout('herz['+i+'].style.visibility="hidden";', 60*(t-herzs[i]));
  151. }
  152.  
  153. document.onmousemove=mouse;
  154. function mouse(e) {
  155. if (e) {
  156. y=e.pageY;
  157. x=e.pageX;
  158. }
  159. else {
  160. set_scroll();
  161. y=event.y+sdown;
  162. x=event.x+sleft;
  163. }
  164. }
  165.  
  166. window.onresize=set_width;
  167. function set_width() {
  168. var sw_min=999999;
  169. var sh_min=999999;
  170. if (document.documentElement && document.documentElement.clientWidth) {
  171. if (document.documentElement.clientWidth>0) sw_min=document.documentElement.clientWidth;
  172. if (document.documentElement.clientHeight>0) sh_min=document.documentElement.clientHeight;
  173. }
  174. if (typeof(self.innerWidth)=='number' && self.innerWidth) {
  175. if (self.innerWidth>0 && self.innerWidth<sw_min) sw_min=self.innerWidth;
  176. if (self.innerHeight>0 && self.innerHeight<sh_min) sh_min=self.innerHeight;
  177. }
  178. if (document.body.clientWidth) {
  179. if (document.body.clientWidth>0 && document.body.clientWidth<sw_min) sw_min=document.body.clientWidth;
  180. if (document.body.clientHeight>0 && document.body.clientHeight<sh_min) sh_min=document.body.clientHeight;
  181. }
  182. if (sw_min==999999 || sh_min==999999) {
  183. sw_min=800;
  184. sh_min=600;
  185. }
  186. swide=sw_min;
  187. shigh=sh_min;
  188. }
  189.  
  190. window.onscroll=set_scroll;
  191. function set_scroll() {
  192. if (typeof(self.pageYOffset)=='number') {
  193. sdown=self.pageYOffset;
  194. sleft=self.pageXOffset;
  195. }
  196. else if (document.body && (document.body.scrollTop || document.body.scrollLeft)) {
  197. sdown=document.body.scrollTop;
  198. sleft=document.body.scrollLeft;
  199. }
  200. else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
  201. sleft=document.documentElement.scrollLeft;
  202. sdown=document.documentElement.scrollTop;
  203. }
  204. else {
  205. sdown=0;
  206. sleft=0;
  207. }
  208. }
  209.  
  210. function createDiv(height, width) {
  211. var div=document.createElement("div");
  212. div.style.position="absolute";
  213. div.style.height=height;
  214. div.style.width=width;
  215. div.style.overflow="hidden";
  216. div.style.backgroundColor="transparent";
  217. return (div);
  218. }
  219. // ]]>
  220. </script>
Advertisement
Add Comment
Please, Sign In to add comment