drop a shadow in a text


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script>
  2. <!–
  3.  
  4. var message=”Shadow”;
  5. var range=2;
  6. var extra=”font-size:40px;”;
  7. var color1=”gray”;
  8. var color2=”black”;
  9. var x = range;
  10. var y = range;
  11.  
  12. document.write (”<span style=’”+extra+” color:”+color2+”; position:absolute\; left:”+x+”; top:”+y+”;’>”+message+”</span>”);
  13. document.write (”<span style=’”+extra+” color:”+color1+”; position:absolute; left:0; top:0;’>”+message+”</span>”);
  14.  
  15. //–>
  16. </script>

URL: http://stylizedweb.com/2008/01/13/outline-text-with-js/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.