y2kcarrds

yerimiese crd co wobbly name text

Jun 22nd, 2022
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. <style>
  2. @font-face {
  3. font-family: monster;
  4. src: url(https://dl.dropbox.com/s/130c77g5yd5z1do/MonsterFriendFore.otf);
  5. }
  6. #wobble {
  7. font-family: monster;
  8. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  9. font-size:200%;
  10. font-weight:bold;
  11. color: #F0B6D2;
  12. }
  13. </style>
  14.  
  15. <script type="text/javascript">
  16. // <![CDATA[
  17. var speed=100; // speed of wobbling, lower is faster
  18. var height=3; // height of wobbling in pixels
  19. var alink=""; // page to link text to (set to ="" for no link)
  20.  
  21. /****************************
  22. * Wobbly Text Effect *
  23. *(c) 2003-6 mf2fm web-design*
  24. * http://www.mf2fm.com/rv *
  25. * DON'T EDIT BELOW THIS BOX *
  26. ****************************/
  27. var wobtxt, wobble, wobcnt=0;
  28. window.onload=function() { if (document.getElementById) {
  29. var i, wobli;
  30. wobble=document.getElementById("wobble");
  31. wobtxt=wobble.firstChild.nodeValue;
  32. while (wobble.childNodes.length) wobble.removeChild(wobble.childNodes[0]);
  33. for (i=0; i<wobtxt.length; i++) {
  34. wobli=document.createElement("span");
  35. wobli.setAttribute("id", "wobb"+i);
  36. wobli.style.position="relative";
  37. wobli.appendChild(document.createTextNode(wobtxt.charAt(i)));
  38. if (alink) {
  39. wobli.style.cursor="pointer";
  40. wobli.onclick=function() { top.location.href=alink; }
  41. }
  42. wobble.appendChild(wobli);
  43. }
  44. setInterval("wobbler()", speed);
  45. }}
  46.  
  47. function wobbler() {
  48. for (var i=0; i<wobtxt.length; i++) document.getElementById("wobb"+i).style.top=Math.round(height*Math.sin(i+wobcnt))+"px"
  49. wobcnt++;
  50. }
  51. // ]]>
  52. </script>
  53.  
  54. <div id="wobble">NAME</div>
  55.  
Advertisement
Add Comment
Please, Sign In to add comment