I want to add a call for 2 external scripts in the page.tpl.php.
The scripts are:
<script type="text/javascript" src="http://use.typekit.com/12345.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
Now in D7 you can call them directly from page.tpl.php like
drupal_add_js()
right?
But I'm working on a D6 site right now.
So within mytheme directory I add to my template.php file
function mytheme_preprocess_page(&$vars, $hook) {
drupal_set_html_head('<script type="text/javascript" src="http://use.typekit.com/12345.js"></script>');
$vars['head'] = drupal_get_html_head();
}
It doesn't work. The page no longer loads.
So the question is, How do I get both those scripts in the head? What should the code look like? I know the real answer is learn php, but in the meantime