deviltumor

...

Oct 5th, 2021
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <div id=<a href ="/" style="color: #FFFFFF;
  2. text-shadow: 0px 5px 10px #000001;
  3. text-decoration:none;font-weight:bold;font-size:3em;text-transform:; position:relative; left:0px; top:15px; z-index: 1">
  4. <div id="wobble">VIVEC</div>
  5. <script type="text/javascript">
  6. // <![CDATA[
  7. var speed=100; // speed of wobbling, lower is faster
  8. var height=2; // height of wobbling in pixels
  9. var alink=""; // page to link text to (set to ="" for no link)
  10.  
  11. /****************************
  12. * Wobbly Text Effect *
  13. *(c) 2003-6 mf2fm web-design*
  14. * http://www.mf2fm.com/rv *
  15. * DON'T EDIT BELOW THIS BOX *
  16. ****************************/
  17. var wobtxt, wobble, wobcnt=0;
  18. window.onload=function() { if (document.getElementById) {
  19. var i, wobli;
  20. wobble=document.getElementById("wobble");
  21. wobtxt=wobble.firstChild.nodeValue;
  22. while (wobble.childNodes.length) wobble.removeChild(wobble.childNodes[0]);
  23. for (i=0; i<wobtxt.length; i++) {
  24. wobli=document.createElement("span");
  25. wobli.setAttribute("id", "wobb"+i);
  26. wobli.style.position="relative";
  27. wobli.appendChild(document.createTextNode(wobtxt.charAt(i)));
  28. if (alink) {
  29. wobli.style.cursor="pointer";
  30. wobli.onclick=function() { top.location.href=alink; }
  31. }
  32. wobble.appendChild(wobli);
  33. }
  34. setInterval("wobbler()", speed);
  35. }}
  36.  
  37. function wobbler() {
  38. for (var i=0; i<wobtxt.length; i++) document.getElementById("wobb"+i).style.top=Math.round(height*Math.sin(i+wobcnt))+"px"
  39. wobcnt++;
  40. }
  41. // ]]>
  42. </script>
Advertisement
Add Comment
Please, Sign In to add comment