Perhaps use the correct jQuery framework?
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
Also remove the breakline after http://code.jquery.com/... ;)
Like this:
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$.fn.teletype = function(opts) {
var $this = this,
defaults = {
animDelay: 50
},
settings = $.extend(defaults, opts);
$.each(settings.text, function(i, letter) {
setTimeout(function() {
$this.html($this.html() + letter);
}, settings.animDelay * i);
});
};
$(function() {
$('#container').teletype({
animDelay: 100,
text: 'Now is the time for all good men to come to the aid of their country...'
});
});
</script>
</head>
<body>
<div id="container"></div>
</body>
</html>