JS初学者一个小问题,求大神指教

 <!DOCTYPE html >
<html lang="en" >
<head>
    <meta charset="utf-8" />
    <title>这是啥?</title>
    <link rel="stylesheet" href="css/layout.css" media="screen" />
</head>

<body>
    <h1>不知道啊</h1>
    <ul id="imagegallery">
        <li>
            <a href="image/1.jpg" onclick="showPic(this); return false;" title="This is One">One</a>
        </li>
        <li>
            <a href="image/2.jpg" title="This is Two">Two</a>
        </li>
        <li>
            <a href="image/3.jpg" title="This is Three">Three</a>
        </li>
        <li>
            <a href="image/4.jpg" title="This is Four">Four</a>
        </li>
    </ul>

    <img id="placeholder"  height="270" width="480" src="image/sb.jpg" alt="这到底是啥?"/>
    <p id="description">我也不知道啊</p>
    <script type="text/javascript" src="js/mdzz.js"></script>
</body>
</html>
 function showPic(whichpic)
{
    if(!document.getElementById("placeholder")) return false;
    var source = whichpic.getAttribute("href");
    var placeholder = document.getElementById("placeholder");
    if(placeholder.nodeName != "IMG") return false;
    placeholder.setAttribute("src", source);

    if(document.getElementById("description"))
    {
        var text = whichpic.getAttribute("title") ? whichpic.getAttribute("title") : "";
        var description = document.getElementById("description");
        if(description.firstChild.nodeType == 3)
        {
            description.firstChild.nodeValue = text;
        }
    }
    //var gallery = document.getElementById("imagegallery");
    //var links = gallery.getElementsByTagName("a");
    //alert(links[0].onClick);
    //count();
    return true;
}

function prepareGallery()
{
    //if(!document.getElementById) return false;
    //if(!document.getElementsByTagName) return false;
    //if(!document.getElementById("imagegallery")) return false;
    var gallery = document.getElementById("imagegallery");
    var links = gallery.getElementsByTagName("a");
    for(var i = 0; i < links.length; i++)
    {
        links[i].onClick = function()
        {
            showPic(this);
            return showPic(this) ? false : true;
            //showPic(this);
            //return false;
        }
    }
}


function addLoadEvent(func)
{
    var oldonload = window.onload;
    if(typeof window.onload != 'function')
    {
        window.onload = func;
    }
    else
    {
        window.onload = function()
        {
            oldonload();
            func();
        }
    }
}

//window.onload = count;
//addLoadEvent(count);
addLoadEvent(prepareGallery);

感觉这个addLoadEvent函数无法运行,在页面中点击链接时会直接跳转到新的图片的页面,而不是在下面的placeholder里面显示,

这是啥问题?????????????????

这是一段代码,你得把问题说清楚啊

title 是整个页面的标题 显示的位置在浏览器标签的题目 而 h1 是html里面内容的标题
图片说明这个是title

把href设置成name,或则value试试,有href是a的默认动作

原谅我看着看着笑了。。。