/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script> <!– var message=â€Shadowâ€; var range=2; var extra=â€font-size:40px;â€; var color1=â€grayâ€; var color2=â€blackâ€; var x = range; var y = range; document.write (â€<span style=’â€+extra+†color:â€+color2+â€; position:absolute\; left:â€+x+â€; top:â€+y+â€;’>â€+message+â€</span>â€); document.write (â€<span style=’â€+extra+†color:â€+color1+â€; position:absolute; left:0; top:0;’>â€+message+â€</span>â€); //–> </script>
URL: http://stylizedweb.com/2008/01/13/outline-text-with-js/