22/9/2008



Add an email widget to make it easy for people to email you and hide your email address from bad guys collecting emails.

Before closing head tag (</head>):

<script src="http://castr.appspot.com/js/helpers/form_mail_helper.js" type="text/javascript"></script>

Html and CSS code that created the email widget:

<div>
<script type="text/javascript" charset="utf-8">
var greeting = 'Send me a message';
var pretty_name = 'castr';
var to = 'valde.maximus';
var domain = 'gmail.com'
var text_box_columns = '17';
var window_width = '200px';
var window_height = '250px';
var custom_style = "body{margin:0px;padding:0px;} #form_mail_widget{color:white;} p{margin-bottom:0px;padding-bottom:0px;} textarea,input{border:1px black solid;}";
draw_form_mail_widget(greeting, pretty_name, to, domain, text_box_columns, window_width, window_height, custom_style);
</script>
</div>
Comments (View)
blog comments powered by Disqus