Help me?

MY codes:

<html>
<head>

<link href=“fd.css” type=“text/css” rel=“stylesheet” />

<script type=“text/javascript”>

var all_links = document.getElementsByTagName(‘a’);
var sitepoint_link = all_links[0];

sitepoint_link.href = “http://www.google.com/”;
</script>

</head>

<body>

<div id=“codesection”>
<p id=“codepara”>
</p>
<ul>
<li><a href=“http://www.sitepoint.com/” id=“splink”
>SitePoint</a></li>
<li><a href=“http://www.yahoo.com/” id=“yalink”
>Yahoo!</a></li>
</ul>
</div>

</body>
</html>

Question: Why the link splink hasn’t been changed? Something wrong??

I haven’t checked the syntax or other Javascript errors but at a glance, I’d say put the code before </body> or put it in a function that runs when the document has been loaded. Right now, it looks like the link doesn’t exist when the code is run.