![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
![ExpandedBlockStart.gif](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
<!
DOCTYPE html PUBLIC ”-//W3C//DTD XHTML 1.0 Transitional//EN” ”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”
>
< html xmlns =”http://www.w3.org/1999/xhtml” >
< head >
< script language ="JavaScript" >
function clckimg(obj) {
var ctimes = obj.ctimes;
if (parseInt(ctimes) > 0 )
{
alert( ' 请不要重复点击,谢谢! ' );
return false ;
}
else
{
obj.ctimes = " 1 " ;
}
}
</ script >
</ head >
< body >
< a href ="#" onclick ="clckimg(this)" ctimes ="0" > 链接一 </ a >
< a href ="#" onclick ="clckimg(this)" ctimes ="0" > 链接二 </ a >
</ body >
</ html >
< html xmlns =”http://www.w3.org/1999/xhtml” >
< head >
< script language ="JavaScript" >
function clckimg(obj) {
var ctimes = obj.ctimes;
if (parseInt(ctimes) > 0 )
{
alert( ' 请不要重复点击,谢谢! ' );
return false ;
}
else
{
obj.ctimes = " 1 " ;
}
}
</ script >
</ head >
< body >
< a href ="#" onclick ="clckimg(this)" ctimes ="0" > 链接一 </ a >
< a href ="#" onclick ="clckimg(this)" ctimes ="0" > 链接二 </ a >
</ body >
</ html >