如何 隐藏链接呀,有个链接我把鼠标放上去时,状态栏显示 1.htm,我点击时页面导向 2.htm
这个链接怎么设置呀

解决方案 »

  1.   

    http://www2.flash8.net/teach/4058.htm
      

  2.   

    你想钓鱼啊!!!window的defaultStatus可以设置,不过很多浏览器会对这个属性有限制.(为了抵制钓鱼)
      

  3.   

    在链接的onmouseover里面写
    window.status='1.htm'然后在链接的onclick事件里面写
    window.location='2.htm'
      

  4.   

    是啊。只能用js,状态栏显示javascript:goto('1.html')!
    <script>
    function goto(url)
    {
      window.location=url;
    }
    </script>
    <a href="javascript:goto('1.html')"></a>
      

  5.   

    这个自己试了一下,发现还是有些地方要注意一下的
    要把<a>的所有onmouse事件(除了onmouseout)设置成cheat(),不然你会露出马脚,嘎嘎..
    <script>
    function cheat(){
        window.defaultStatus="http://www.baidu.com";
    }
    function cls(){
        window.defaultStatus="";
    }
    </script><a href="http://www.google.com" onmouseover="cheat()" onmousemove="cheat()" onmousedown="cheat()" onmouseup="cheat()" onmouseout="cls()" >go to baidu</a>