你在样式表里对已经访问过的链接作出一个不同的样式不就可以标明已经访问过了的吗!!A:VISITED{}

解决方案 »

  1.   

    document.all("idHre").innerText="This is a href  *"
    "idHre" 是<a href>的id
      

  2.   

    to KevinAdmin(Kevin) 
    你写的言不答意啊我问你,你怎么断定idHre的链接是已经访问过的,
    怎么来表达?
      

  3.   

    <a href="http://www.csdn.net" onclick="javascript:this.innerHTML+='*'" target=_blank>csdn</a>
      

  4.   

    <style>
    a:link {visited:false;color:black;font-size:12px;}
    a:visited {visited:true;color:blue;font-size:12px;}
    a:hover { color:red;}
    a:active { color:red;}
    </style>
    <body>
    <script>
    document.body.onload = function() {
    for (var i=0;i<document.links.length;i++) {
    with(document.links[i]) {
    if(currentStyle.visited=="true") innerText += "*";
    }
    }
    }
    </script>
    <a href="###">link</a>
    <a href="http://www.sayee.com/cloudchen/js/select.htm">link</a>
    <a href="http://www.yahoo.com">link</a>
    <a href="http://www.whitehouse.org">link</a>
    <a href="http://expert.csdn.net/Expert/topic/2210/2210261.xml?temp=.5875666">link</a>
    <a href="http://www.xxxyyyzzz.com">这个链接肯定没有访问过</a>