点击标签链接之后 让链接失效5秒钟 之后再可以点击 怎么实现 不要告诉小弟我思路,帮小弟我实现 求大神指教 必有重谢

点击<a></a>标签链接之后 让链接失效5秒钟 之后再可以点击 如何实现 不要告诉我思路,帮我实现 求大神指教 必有重谢!
在这个例子中实现

<html>
      
<head>
<script language="javascript">

       function gotostartlottery(){
              
             var itemid= document.getElementById("lotteryItemId").value;
             var scoreValue = document.getElementById("scoreValue").value;
       
  if (confirm("此次抽奖扣除"+scoreValue+"积分!")) {  

var mydata={itemId:itemid};    
   
    $.ajax({
                                         type: "POST",
                                        url: "lotteryEveryDay.do?method=goToStartLottery",
                                        data: mydata,
                                        success: function(msg){
 
                         }
                    });    
  } 
   }
       
   </script >
</head>
<body>

     <a class="spicn" id="time"  onclick="gotostartlottery();" style="cursor:pointer;"  type="我要抽奖"></a>                                    
       


</body>
</html>
------解决思路----------------------
我把a 链接改为按钮的形式测试了下,是可以的,你试试

<html>

<head>
    <script language="javascript">

        function gotostartlottery() {
           
            document.getElementById("time").disabled = true;
            alert("可以点击");
            setTimeout(function () {
                document.getElementById("time").disabled = false;//5秒后可以点击
                
            }, 5000);
        }

    </script>
</head>
<body>

    <button class="spicn" id="time" onclick="gotostartlottery();" style="cursor:pointer;" type="我要抽奖">我要抽奖</button>



</body>
</html>